summaryrefslogtreecommitdiff
path: root/core/applets/cardmon/cardmonimpl.cpp
authorharlekin <harlekin>2002-05-27 23:48:06 (UTC)
committer harlekin <harlekin>2002-05-27 23:48:06 (UTC)
commitac5b5e7ecd8972f867aa4c3fa2b055f5789842c1 (patch) (unidiff)
treeeee536a678c92265122f980d94ea5a0f5448d840 /core/applets/cardmon/cardmonimpl.cpp
parenta184f648795a3fa27ad8ce1d1ac3cd4a30c7b8ba (diff)
downloadopie-ac5b5e7ecd8972f867aa4c3fa2b055f5789842c1.zip
opie-ac5b5e7ecd8972f867aa4c3fa2b055f5789842c1.tar.gz
opie-ac5b5e7ecd8972f867aa4c3fa2b055f5789842c1.tar.bz2
new cf/pcmcia/sd/mmc applet, not finished yet, but working (kind off ,-) ) , will replace the old cardmon and sdmon when ready
Diffstat (limited to 'core/applets/cardmon/cardmonimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/cardmon/cardmonimpl.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/core/applets/cardmon/cardmonimpl.cpp b/core/applets/cardmon/cardmonimpl.cpp
new file mode 100644
index 0000000..0aa55de
--- a/dev/null
+++ b/core/applets/cardmon/cardmonimpl.cpp
@@ -0,0 +1,40 @@
1#include "cardmon.h"
2#include "cardmonimpl.h"
3
4
5CardMonitorImpl::CardMonitorImpl()
6 : cardMonitor(0), ref(0) {
7}
8
9CardMonitorImpl::~CardMonitorImpl() {
10 delete cardMonitor;
11}
12
13QWidget *CardMonitorImpl::applet( QWidget *parent ) {
14 if ( !cardMonitor ) {
15 cardMonitor = new CardMonitor( parent );
16 }
17 return cardMonitor;
18}
19
20int CardMonitorImpl::position() const {
21 return 7;
22}
23
24QRESULT CardMonitorImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) {
25 *iface = 0;
26 if ( uuid == IID_QUnknown ) {
27 *iface = this;
28 } else if ( uuid == IID_TaskbarApplet ) {
29 *iface = this;
30 }
31
32 if ( *iface ) {
33 (*iface)->addRef();
34 }
35 return QS_OK;
36}
37
38Q_EXPORT_INTERFACE() {
39 Q_CREATE_INSTANCE( CardMonitorImpl )
40}