author | mickeyl <mickeyl> | 2004-03-01 19:19:37 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-03-01 19:19:37 (UTC) |
commit | ddc3d749af5f7afebf69488b79641771fe246b5b (patch) (side-by-side diff) | |
tree | 8ea8614906c568e4677493ef09040724d60dd2d4 /core/applets/irdaapplet/irda.cpp | |
parent | fb0981f47e529f9d1dd77fa005ffa3c3ecedff67 (diff) | |
download | opie-ddc3d749af5f7afebf69488b79641771fe246b5b.zip opie-ddc3d749af5f7afebf69488b79641771fe246b5b.tar.gz opie-ddc3d749af5f7afebf69488b79641771fe246b5b.tar.bz2 |
remove duplicated boiler plate code in favour of the OTaskbarApplet template
Diffstat (limited to 'core/applets/irdaapplet/irda.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/irdaapplet/irda.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/core/applets/irdaapplet/irda.cpp b/core/applets/irdaapplet/irda.cpp index a47f33d..afc0592 100644 --- a/core/applets/irdaapplet/irda.cpp +++ b/core/applets/irdaapplet/irda.cpp @@ -15,8 +15,12 @@ **********************************************************************/ +#include "irda.h" +/* OPIE */ +#include <opie2/otaskbarapplet.h> #include <qpe/resource.h> #include <qpe/qcopenvelope_qws.h> +/* QT */ #include <qpainter.h> #include <qfile.h> @@ -24,4 +28,5 @@ #include <qtextstream.h> +/* STD */ #include <unistd.h> #include <net/if.h> @@ -31,6 +36,4 @@ #include <sys/ioctl.h> -#include "irda.h" - //=========================================================================== @@ -61,4 +64,9 @@ IrdaApplet::IrdaApplet ( QWidget *parent, const char *name ) } +int IrdaApplet::position() +{ + return 6; +} + void IrdaApplet::show() { @@ -351,2 +359,7 @@ void IrdaApplet::slotMessage( const QCString& str, const QByteArray& ar ) { } } + +Q_EXPORT_INTERFACE() +{ + Q_CREATE_INSTANCE( OTaskbarAppletWrapper<IrdaApplet> ); +} |