summaryrefslogtreecommitdiff
path: root/noncore/applets/zkbapplet/zkbapplet.cpp
authormickeyl <mickeyl>2004-03-01 21:10:13 (UTC)
committer mickeyl <mickeyl>2004-03-01 21:10:13 (UTC)
commit77af6f58d59011e123309c82b684695508a46787 (patch) (side-by-side diff)
tree1eeb3b323bc14581af7da9fe5b58c4c611b00575 /noncore/applets/zkbapplet/zkbapplet.cpp
parent7b0bdb05e4ae29b2643d73e3b8f20a86a86dcccc (diff)
downloadopie-77af6f58d59011e123309c82b684695508a46787.zip
opie-77af6f58d59011e123309c82b684695508a46787.tar.gz
opie-77af6f58d59011e123309c82b684695508a46787.tar.bz2
remove boiler plate code in favour of a template
Diffstat (limited to 'noncore/applets/zkbapplet/zkbapplet.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/zkbapplet/zkbapplet.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/noncore/applets/zkbapplet/zkbapplet.cpp b/noncore/applets/zkbapplet/zkbapplet.cpp
deleted file mode 100644
index 6c71568..0000000
--- a/noncore/applets/zkbapplet/zkbapplet.cpp
+++ b/dev/null
@@ -1,49 +0,0 @@
-#include <stdio.h>
-#include <qlabel.h>
-#include <qbutton.h>
-#include <qwindowsystem_qws.h>
-#include "zkbapplet.h"
-#include "zkbwidget.h"
-
-
-ZkbApplet::ZkbApplet() : app(0){
-}
-
-ZkbApplet::~ZkbApplet()
-{
- if (app) delete app;
-}
-
-QWidget* ZkbApplet::applet(QWidget* parent) {
- if (app == 0) {
- app = new ZkbWidget(parent);
- }
-
- return app;
-}
-
-int ZkbApplet::position() const {
- return 8;
-}
-
-QRESULT ZkbApplet::queryInterface(const QUuid& uuid, QUnknownInterface** iface) {
-
- *iface = 0;
- if (uuid == IID_QUnknown) {
- *iface = this;
- } else if (uuid == IID_TaskbarApplet) {
- *iface = this;
- } else {
- return QS_FALSE;
- }
-
- if (*iface) {
- (*iface)->addRef();
- }
-
- return QS_OK;
-}
-
-Q_EXPORT_INTERFACE() {
- Q_CREATE_INSTANCE(ZkbApplet)
-}