-rw-r--r-- | core/applets/cardmon/cardmonimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/cardmon/cardmonimpl.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/core/applets/cardmon/cardmonimpl.cpp b/core/applets/cardmon/cardmonimpl.cpp index 265214e..7b144d4 100644 --- a/core/applets/cardmon/cardmonimpl.cpp +++ b/core/applets/cardmon/cardmonimpl.cpp | |||
@@ -1,30 +1,30 @@ | |||
1 | #include "cardmon.h" | 1 | #include "cardmon.h" |
2 | #include "cardmonimpl.h" | 2 | #include "cardmonimpl.h" |
3 | 3 | ||
4 | 4 | ||
5 | CardMonitorImpl::CardMonitorImpl() | 5 | CardMonitorImpl::CardMonitorImpl() |
6 | : cardMonitor(0), ref(0) { | 6 | : cardMonitor(0) { |
7 | } | 7 | } |
8 | 8 | ||
9 | CardMonitorImpl::~CardMonitorImpl() { | 9 | CardMonitorImpl::~CardMonitorImpl() { |
10 | delete cardMonitor; | 10 | delete cardMonitor; |
11 | } | 11 | } |
12 | 12 | ||
13 | QWidget *CardMonitorImpl::applet( QWidget *parent ) { | 13 | QWidget *CardMonitorImpl::applet( QWidget *parent ) { |
14 | if ( !cardMonitor ) { | 14 | if ( !cardMonitor ) { |
15 | cardMonitor = new CardMonitor( parent ); | 15 | cardMonitor = new CardMonitor( parent ); |
16 | } | 16 | } |
17 | return cardMonitor; | 17 | return cardMonitor; |
18 | } | 18 | } |
19 | 19 | ||
20 | int CardMonitorImpl::position() const { | 20 | int CardMonitorImpl::position() const { |
21 | return 7; | 21 | return 7; |
22 | } | 22 | } |
23 | 23 | ||
24 | QRESULT CardMonitorImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { | 24 | QRESULT CardMonitorImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { |
25 | *iface = 0; | 25 | *iface = 0; |
26 | if ( uuid == IID_QUnknown ) { | 26 | if ( uuid == IID_QUnknown ) { |
27 | *iface = this; | 27 | *iface = this; |
28 | } else if ( uuid == IID_TaskbarApplet ) { | 28 | } else if ( uuid == IID_TaskbarApplet ) { |
29 | *iface = this; | 29 | *iface = this; |
30 | } else { | 30 | } else { |
diff --git a/core/applets/cardmon/cardmonimpl.h b/core/applets/cardmon/cardmonimpl.h index ec2d871..26b7fe5 100644 --- a/core/applets/cardmon/cardmonimpl.h +++ b/core/applets/cardmon/cardmonimpl.h | |||
@@ -1,19 +1,18 @@ | |||
1 | #include <qpe/taskbarappletinterface.h> | 1 | #include <qpe/taskbarappletinterface.h> |
2 | 2 | ||
3 | class CardMonitor; | 3 | class CardMonitor; |
4 | 4 | ||
5 | class CardMonitorImpl : public TaskbarAppletInterface { | 5 | class CardMonitorImpl : public TaskbarAppletInterface { |
6 | public: | 6 | public: |
7 | CardMonitorImpl(); | 7 | CardMonitorImpl(); |
8 | virtual ~CardMonitorImpl(); | 8 | virtual ~CardMonitorImpl(); |
9 | 9 | ||
10 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 10 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
11 | Q_REFCOUNT | 11 | Q_REFCOUNT |
12 | 12 | ||
13 | virtual QWidget *applet( QWidget *parent ); | 13 | virtual QWidget *applet( QWidget *parent ); |
14 | virtual int position() const; | 14 | virtual int position() const; |
15 | 15 | ||
16 | private: | 16 | private: |
17 | CardMonitor *cardMonitor; | 17 | CardMonitor *cardMonitor; |
18 | ulong ref; | ||
19 | }; | 18 | }; |