author | zecke <zecke> | 2004-02-05 16:58:04 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-05 16:58:04 (UTC) |
commit | 416c72588577bca18ba1c9180701143e7e572eed (patch) (unidiff) | |
tree | 216727329d2de8cafce72dc811deee77baf24927 | |
parent | 4c4ed7176231558d01aeca2eb705fc6810ec7766 (diff) | |
download | opie-416c72588577bca18ba1c9180701143e7e572eed.zip opie-416c72588577bca18ba1c9180701143e7e572eed.tar.gz opie-416c72588577bca18ba1c9180701143e7e572eed.tar.bz2 |
"Here we are now entertain US....."
Some janitor tasks... remove ulong ref;
If we use Q_REFCOUNT
31 files changed, 16 insertions, 36 deletions
diff --git a/core/applets/batteryapplet/batteryappletimpl.cpp b/core/applets/batteryapplet/batteryappletimpl.cpp index 9ad0382..7cc5f50 100644 --- a/core/applets/batteryapplet/batteryappletimpl.cpp +++ b/core/applets/batteryapplet/batteryappletimpl.cpp | |||
@@ -13,25 +13,25 @@ | |||
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "battery.h" | 20 | #include "battery.h" |
21 | #include "batteryappletimpl.h" | 21 | #include "batteryappletimpl.h" |
22 | 22 | ||
23 | 23 | ||
24 | BatteryAppletImpl::BatteryAppletImpl() | 24 | BatteryAppletImpl::BatteryAppletImpl() |
25 | : battery(0), ref(0) | 25 | : battery(0) |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | ||
29 | BatteryAppletImpl::~BatteryAppletImpl() | 29 | BatteryAppletImpl::~BatteryAppletImpl() |
30 | { | 30 | { |
31 | delete battery; | 31 | delete battery; |
32 | } | 32 | } |
33 | 33 | ||
34 | QWidget *BatteryAppletImpl::applet( QWidget *parent ) | 34 | QWidget *BatteryAppletImpl::applet( QWidget *parent ) |
35 | { | 35 | { |
36 | if ( !battery ) | 36 | if ( !battery ) |
37 | battery = new BatteryMeter( parent ); | 37 | battery = new BatteryMeter( parent ); |
diff --git a/core/applets/batteryapplet/batteryappletimpl.h b/core/applets/batteryapplet/batteryappletimpl.h index 94f49db..99654e3 100644 --- a/core/applets/batteryapplet/batteryappletimpl.h +++ b/core/applets/batteryapplet/batteryappletimpl.h | |||
@@ -29,16 +29,15 @@ class BatteryAppletImpl : public TaskbarAppletInterface | |||
29 | public: | 29 | public: |
30 | BatteryAppletImpl(); | 30 | BatteryAppletImpl(); |
31 | virtual ~BatteryAppletImpl(); | 31 | virtual ~BatteryAppletImpl(); |
32 | 32 | ||
33 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 33 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
34 | Q_REFCOUNT | 34 | Q_REFCOUNT |
35 | 35 | ||
36 | virtual QWidget *applet( QWidget *parent ); | 36 | virtual QWidget *applet( QWidget *parent ); |
37 | virtual int position() const; | 37 | virtual int position() const; |
38 | 38 | ||
39 | private: | 39 | private: |
40 | BatteryMeter *battery; | 40 | BatteryMeter *battery; |
41 | ulong ref; | ||
42 | }; | 41 | }; |
43 | 42 | ||
44 | #endif | 43 | #endif |
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,18 +1,18 @@ | |||
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 | } |
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 | |||
@@ -6,14 +6,13 @@ 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 | }; |
diff --git a/core/applets/clipboardapplet/clipboardappletimpl.cpp b/core/applets/clipboardapplet/clipboardappletimpl.cpp index 8fcf117..f454529 100644 --- a/core/applets/clipboardapplet/clipboardappletimpl.cpp +++ b/core/applets/clipboardapplet/clipboardappletimpl.cpp | |||
@@ -13,25 +13,25 @@ | |||
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "clipboard.h" | 20 | #include "clipboard.h" |
21 | #include "clipboardappletimpl.h" | 21 | #include "clipboardappletimpl.h" |
22 | 22 | ||
23 | 23 | ||
24 | ClipboardAppletImpl::ClipboardAppletImpl() | 24 | ClipboardAppletImpl::ClipboardAppletImpl() |
25 | : clipboard(0), ref(0) | 25 | : clipboard(0) |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | ||
29 | ClipboardAppletImpl::~ClipboardAppletImpl() | 29 | ClipboardAppletImpl::~ClipboardAppletImpl() |
30 | { | 30 | { |
31 | delete clipboard; | 31 | delete clipboard; |
32 | } | 32 | } |
33 | 33 | ||
34 | QWidget *ClipboardAppletImpl::applet( QWidget *parent ) | 34 | QWidget *ClipboardAppletImpl::applet( QWidget *parent ) |
35 | { | 35 | { |
36 | if ( !clipboard ) | 36 | if ( !clipboard ) |
37 | clipboard = new ClipboardApplet( parent ); | 37 | clipboard = new ClipboardApplet( parent ); |
diff --git a/core/applets/clipboardapplet/clipboardappletimpl.h b/core/applets/clipboardapplet/clipboardappletimpl.h index 0426109..497360c 100644 --- a/core/applets/clipboardapplet/clipboardappletimpl.h +++ b/core/applets/clipboardapplet/clipboardappletimpl.h | |||
@@ -29,16 +29,15 @@ class ClipboardAppletImpl : public TaskbarAppletInterface | |||
29 | public: | 29 | public: |
30 | ClipboardAppletImpl(); | 30 | ClipboardAppletImpl(); |
31 | virtual ~ClipboardAppletImpl(); | 31 | virtual ~ClipboardAppletImpl(); |
32 | 32 | ||
33 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 33 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
34 | Q_REFCOUNT | 34 | Q_REFCOUNT |
35 | 35 | ||
36 | virtual QWidget *applet( QWidget *parent ); | 36 | virtual QWidget *applet( QWidget *parent ); |
37 | virtual int position() const; | 37 | virtual int position() const; |
38 | 38 | ||
39 | private: | 39 | private: |
40 | ClipboardApplet *clipboard; | 40 | ClipboardApplet *clipboard; |
41 | ulong ref; | ||
42 | }; | 41 | }; |
43 | 42 | ||
44 | #endif | 43 | #endif |
diff --git a/core/applets/clockapplet/clockappletimpl.cpp b/core/applets/clockapplet/clockappletimpl.cpp index 2b9cc05..7481f19 100644 --- a/core/applets/clockapplet/clockappletimpl.cpp +++ b/core/applets/clockapplet/clockappletimpl.cpp | |||
@@ -13,25 +13,25 @@ | |||
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "clock.h" | 20 | #include "clock.h" |
21 | #include "clockappletimpl.h" | 21 | #include "clockappletimpl.h" |
22 | 22 | ||
23 | 23 | ||
24 | ClockAppletImpl::ClockAppletImpl() | 24 | ClockAppletImpl::ClockAppletImpl() |
25 | : clock(0), ref(0) | 25 | : clock(0) |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | ||
29 | ClockAppletImpl::~ClockAppletImpl() | 29 | ClockAppletImpl::~ClockAppletImpl() |
30 | { | 30 | { |
31 | delete clock; | 31 | delete clock; |
32 | } | 32 | } |
33 | 33 | ||
34 | QWidget *ClockAppletImpl::applet( QWidget *parent ) | 34 | QWidget *ClockAppletImpl::applet( QWidget *parent ) |
35 | { | 35 | { |
36 | if ( !clock ) | 36 | if ( !clock ) |
37 | clock = new LauncherClock( parent ); | 37 | clock = new LauncherClock( parent ); |
diff --git a/core/applets/clockapplet/clockappletimpl.h b/core/applets/clockapplet/clockappletimpl.h index 0c0912e..1f9c8f0 100644 --- a/core/applets/clockapplet/clockappletimpl.h +++ b/core/applets/clockapplet/clockappletimpl.h | |||
@@ -31,16 +31,15 @@ public: | |||
31 | virtual ~ClockAppletImpl(); | 31 | virtual ~ClockAppletImpl(); |
32 | 32 | ||
33 | #ifndef QT_NO_COMPONENT | 33 | #ifndef QT_NO_COMPONENT |
34 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 34 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
35 | Q_REFCOUNT | 35 | Q_REFCOUNT |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | virtual QWidget *applet( QWidget *parent ); | 38 | virtual QWidget *applet( QWidget *parent ); |
39 | virtual int position() const; | 39 | virtual int position() const; |
40 | 40 | ||
41 | private: | 41 | private: |
42 | LauncherClock *clock; | 42 | LauncherClock *clock; |
43 | ulong ref; | ||
44 | }; | 43 | }; |
45 | 44 | ||
46 | #endif | 45 | #endif |
diff --git a/core/applets/homeapplet/home.cpp b/core/applets/homeapplet/home.cpp index 36307ab..455575f 100644 --- a/core/applets/homeapplet/home.cpp +++ b/core/applets/homeapplet/home.cpp | |||
@@ -1,24 +1,24 @@ | |||
1 | #include <qpe/resource.h> | 1 | #include <qpe/resource.h> |
2 | #include <qpe/qcopenvelope_qws.h> | 2 | #include <qpe/qcopenvelope_qws.h> |
3 | 3 | ||
4 | #include <qapplication.h> | 4 | #include <qapplication.h> |
5 | #include <qiconset.h> | 5 | #include <qiconset.h> |
6 | #include <qpopupmenu.h> | 6 | #include <qpopupmenu.h> |
7 | 7 | ||
8 | #include "home.h" | 8 | #include "home.h" |
9 | 9 | ||
10 | 10 | ||
11 | HomeApplet::HomeApplet ( ) | 11 | HomeApplet::HomeApplet ( ) |
12 | : QObject ( 0, "HomeApplet" ), ref ( 0 ) | 12 | : QObject ( 0, "HomeApplet" ) |
13 | { | 13 | { |
14 | } | 14 | } |
15 | 15 | ||
16 | HomeApplet::~HomeApplet ( ) | 16 | HomeApplet::~HomeApplet ( ) |
17 | { | 17 | { |
18 | } | 18 | } |
19 | 19 | ||
20 | int HomeApplet::position ( ) const | 20 | int HomeApplet::position ( ) const |
21 | { | 21 | { |
22 | return 4; | 22 | return 4; |
23 | } | 23 | } |
24 | 24 | ||
diff --git a/core/applets/homeapplet/home.h b/core/applets/homeapplet/home.h index 1186caf..22ecd47 100644 --- a/core/applets/homeapplet/home.h +++ b/core/applets/homeapplet/home.h | |||
@@ -33,17 +33,15 @@ public: | |||
33 | 33 | ||
34 | virtual int position() const; | 34 | virtual int position() const; |
35 | 35 | ||
36 | virtual QString name ( ) const; | 36 | virtual QString name ( ) const; |
37 | virtual QIconSet icon ( ) const; | 37 | virtual QIconSet icon ( ) const; |
38 | virtual QString text ( ) const; | 38 | virtual QString text ( ) const; |
39 | virtual QString tr( const char* ) const; | 39 | virtual QString tr( const char* ) const; |
40 | virtual QString tr( const char*, const char* ) const; | 40 | virtual QString tr( const char*, const char* ) const; |
41 | virtual QPopupMenu *popup ( QWidget *parent ) const; | 41 | virtual QPopupMenu *popup ( QWidget *parent ) const; |
42 | 42 | ||
43 | virtual void activated ( ); | 43 | virtual void activated ( ); |
44 | 44 | ||
45 | private: | ||
46 | ulong ref; | ||
47 | }; | 45 | }; |
48 | 46 | ||
49 | #endif | 47 | #endif |
diff --git a/core/applets/irdaapplet/irdaappletimpl.cpp b/core/applets/irdaapplet/irdaappletimpl.cpp index 3617698..33d98af 100644 --- a/core/applets/irdaapplet/irdaappletimpl.cpp +++ b/core/applets/irdaapplet/irdaappletimpl.cpp | |||
@@ -13,25 +13,25 @@ | |||
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "irda.h" | 20 | #include "irda.h" |
21 | #include "irdaappletimpl.h" | 21 | #include "irdaappletimpl.h" |
22 | 22 | ||
23 | 23 | ||
24 | IrdaAppletImpl::IrdaAppletImpl() | 24 | IrdaAppletImpl::IrdaAppletImpl() |
25 | : irda(0), ref(0) | 25 | : irda(0) |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | ||
29 | IrdaAppletImpl::~IrdaAppletImpl() | 29 | IrdaAppletImpl::~IrdaAppletImpl() |
30 | { | 30 | { |
31 | delete irda; | 31 | delete irda; |
32 | } | 32 | } |
33 | 33 | ||
34 | QWidget *IrdaAppletImpl::applet( QWidget *parent ) | 34 | QWidget *IrdaAppletImpl::applet( QWidget *parent ) |
35 | { | 35 | { |
36 | if ( !irda ) | 36 | if ( !irda ) |
37 | irda = new IrdaApplet( parent ); | 37 | irda = new IrdaApplet( parent ); |
diff --git a/core/applets/irdaapplet/irdaappletimpl.h b/core/applets/irdaapplet/irdaappletimpl.h index f9e855a..024cc06 100644 --- a/core/applets/irdaapplet/irdaappletimpl.h +++ b/core/applets/irdaapplet/irdaappletimpl.h | |||
@@ -31,16 +31,15 @@ class IrdaAppletImpl : public TaskbarAppletInterface | |||
31 | public: | 31 | public: |
32 | IrdaAppletImpl(); | 32 | IrdaAppletImpl(); |
33 | virtual ~IrdaAppletImpl(); | 33 | virtual ~IrdaAppletImpl(); |
34 | 34 | ||
35 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 35 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
36 | Q_REFCOUNT | 36 | Q_REFCOUNT |
37 | 37 | ||
38 | virtual QWidget *applet( QWidget *parent ); | 38 | virtual QWidget *applet( QWidget *parent ); |
39 | virtual int position() const; | 39 | virtual int position() const; |
40 | 40 | ||
41 | private: | 41 | private: |
42 | IrdaApplet *irda; | 42 | IrdaApplet *irda; |
43 | ulong ref; | ||
44 | }; | 43 | }; |
45 | 44 | ||
46 | #endif | 45 | #endif |
diff --git a/core/applets/logoutapplet/logout.cpp b/core/applets/logoutapplet/logout.cpp index 8d3cdba..92222c9 100644 --- a/core/applets/logoutapplet/logout.cpp +++ b/core/applets/logoutapplet/logout.cpp | |||
@@ -3,25 +3,25 @@ | |||
3 | 3 | ||
4 | #include <qapplication.h> | 4 | #include <qapplication.h> |
5 | #include <qiconset.h> | 5 | #include <qiconset.h> |
6 | #include <qpopupmenu.h> | 6 | #include <qpopupmenu.h> |
7 | #include <qmessagebox.h> | 7 | #include <qmessagebox.h> |
8 | 8 | ||
9 | #include <unistd.h> | 9 | #include <unistd.h> |
10 | 10 | ||
11 | #include "logout.h" | 11 | #include "logout.h" |
12 | 12 | ||
13 | 13 | ||
14 | LogoutApplet::LogoutApplet ( ) | 14 | LogoutApplet::LogoutApplet ( ) |
15 | : QObject ( 0, "LogoutApplet" ), ref ( 0 ) | 15 | : QObject ( 0, "LogoutApplet" ) |
16 | { | 16 | { |
17 | } | 17 | } |
18 | 18 | ||
19 | LogoutApplet::~LogoutApplet ( ) | 19 | LogoutApplet::~LogoutApplet ( ) |
20 | { | 20 | { |
21 | } | 21 | } |
22 | 22 | ||
23 | int LogoutApplet::position ( ) const | 23 | int LogoutApplet::position ( ) const |
24 | { | 24 | { |
25 | return 0; | 25 | return 0; |
26 | } | 26 | } |
27 | 27 | ||
diff --git a/core/applets/logoutapplet/logout.h b/core/applets/logoutapplet/logout.h index 3fcb295..a991f65 100644 --- a/core/applets/logoutapplet/logout.h +++ b/core/applets/logoutapplet/logout.h | |||
@@ -33,17 +33,15 @@ public: | |||
33 | 33 | ||
34 | virtual int position() const; | 34 | virtual int position() const; |
35 | 35 | ||
36 | virtual QString name ( ) const; | 36 | virtual QString name ( ) const; |
37 | virtual QIconSet icon ( ) const; | 37 | virtual QIconSet icon ( ) const; |
38 | virtual QString text ( ) const; | 38 | virtual QString text ( ) const; |
39 | virtual QString tr( const char* ) const; | 39 | virtual QString tr( const char* ) const; |
40 | virtual QString tr( const char*, const char* ) const; | 40 | virtual QString tr( const char*, const char* ) const; |
41 | virtual QPopupMenu *popup ( QWidget *parent ) const; | 41 | virtual QPopupMenu *popup ( QWidget *parent ) const; |
42 | 42 | ||
43 | virtual void activated ( ); | 43 | virtual void activated ( ); |
44 | 44 | ||
45 | private: | ||
46 | ulong ref; | ||
47 | }; | 45 | }; |
48 | 46 | ||
49 | #endif | 47 | #endif |
diff --git a/core/applets/multikeyapplet/multikeyappletimpl.cpp b/core/applets/multikeyapplet/multikeyappletimpl.cpp index adf92c4..9fa6ef1 100644 --- a/core/applets/multikeyapplet/multikeyappletimpl.cpp +++ b/core/applets/multikeyapplet/multikeyappletimpl.cpp | |||
@@ -6,25 +6,25 @@ | |||
6 | ** GNU General Public License version 2 as published by the Free Software | 6 | ** GNU General Public License version 2 as published by the Free Software |
7 | ** Foundation and appearing in the file LICENSE.GPL included in the | 7 | ** Foundation and appearing in the file LICENSE.GPL included in the |
8 | ** packaging of this file. | 8 | ** packaging of this file. |
9 | ** | 9 | ** |
10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
12 | ** | 12 | ** |
13 | **********************************************************************/ | 13 | **********************************************************************/ |
14 | #include "multikey.h" | 14 | #include "multikey.h" |
15 | #include "multikeyappletimpl.h" | 15 | #include "multikeyappletimpl.h" |
16 | 16 | ||
17 | MultikeyAppletImpl::MultikeyAppletImpl() | 17 | MultikeyAppletImpl::MultikeyAppletImpl() |
18 | : kbd(0), ref(0) | 18 | : kbd(0) |
19 | { | 19 | { |
20 | } | 20 | } |
21 | 21 | ||
22 | MultikeyAppletImpl::~MultikeyAppletImpl() | 22 | MultikeyAppletImpl::~MultikeyAppletImpl() |
23 | { | 23 | { |
24 | delete kbd; | 24 | delete kbd; |
25 | } | 25 | } |
26 | 26 | ||
27 | QWidget *MultikeyAppletImpl::applet( QWidget *parent ) | 27 | QWidget *MultikeyAppletImpl::applet( QWidget *parent ) |
28 | { | 28 | { |
29 | if ( !kbd ) | 29 | if ( !kbd ) |
30 | kbd = new Multikey(parent); | 30 | kbd = new Multikey(parent); |
diff --git a/core/applets/multikeyapplet/multikeyappletimpl.h b/core/applets/multikeyapplet/multikeyappletimpl.h index c77e347..68962ee 100644 --- a/core/applets/multikeyapplet/multikeyappletimpl.h +++ b/core/applets/multikeyapplet/multikeyappletimpl.h | |||
@@ -25,16 +25,15 @@ public: | |||
25 | virtual ~MultikeyAppletImpl(); | 25 | virtual ~MultikeyAppletImpl(); |
26 | 26 | ||
27 | #ifndef QT_NO_COMPONENT | 27 | #ifndef QT_NO_COMPONENT |
28 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 28 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
29 | Q_REFCOUNT | 29 | Q_REFCOUNT |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | virtual QWidget *applet( QWidget *parent ); | 32 | virtual QWidget *applet( QWidget *parent ); |
33 | virtual int position() const; | 33 | virtual int position() const; |
34 | 34 | ||
35 | private: | 35 | private: |
36 | Multikey *kbd; | 36 | Multikey *kbd; |
37 | ulong ref; | ||
38 | }; | 37 | }; |
39 | 38 | ||
40 | #endif /* __MULTIKEYAPPLETIMPL_H__ */ | 39 | #endif /* __MULTIKEYAPPLETIMPL_H__ */ |
diff --git a/core/applets/restartapplet/restartappletimpl.cpp b/core/applets/restartapplet/restartappletimpl.cpp index 5b0092d..d8e10d3 100644 --- a/core/applets/restartapplet/restartappletimpl.cpp +++ b/core/applets/restartapplet/restartappletimpl.cpp | |||
@@ -13,25 +13,25 @@ | |||
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "restart.h" | 20 | #include "restart.h" |
21 | #include "restartappletimpl.h" | 21 | #include "restartappletimpl.h" |
22 | 22 | ||
23 | 23 | ||
24 | RestartAppletImpl::RestartAppletImpl() | 24 | RestartAppletImpl::RestartAppletImpl() |
25 | : restart(0), ref(0) | 25 | : restart(0) |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | ||
29 | RestartAppletImpl::~RestartAppletImpl() | 29 | RestartAppletImpl::~RestartAppletImpl() |
30 | { | 30 | { |
31 | delete restart; | 31 | delete restart; |
32 | } | 32 | } |
33 | 33 | ||
34 | QWidget *RestartAppletImpl::applet( QWidget *parent ) | 34 | QWidget *RestartAppletImpl::applet( QWidget *parent ) |
35 | { | 35 | { |
36 | qDebug("restart applet"); | 36 | qDebug("restart applet"); |
37 | if ( !restart ) | 37 | if ( !restart ) |
diff --git a/core/applets/restartapplet/restartappletimpl.h b/core/applets/restartapplet/restartappletimpl.h index cdda49c..db2b821 100644 --- a/core/applets/restartapplet/restartappletimpl.h +++ b/core/applets/restartapplet/restartappletimpl.h | |||
@@ -29,16 +29,15 @@ class RestartAppletImpl : public TaskbarAppletInterface | |||
29 | public: | 29 | public: |
30 | RestartAppletImpl(); | 30 | RestartAppletImpl(); |
31 | virtual ~RestartAppletImpl(); | 31 | virtual ~RestartAppletImpl(); |
32 | 32 | ||
33 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 33 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
34 | Q_REFCOUNT | 34 | Q_REFCOUNT |
35 | 35 | ||
36 | virtual QWidget *applet( QWidget *parent ); | 36 | virtual QWidget *applet( QWidget *parent ); |
37 | virtual int position() const; | 37 | virtual int position() const; |
38 | 38 | ||
39 | private: | 39 | private: |
40 | RestartApplet *restart; | 40 | RestartApplet *restart; |
41 | ulong ref; | ||
42 | }; | 41 | }; |
43 | 42 | ||
44 | #endif | 43 | #endif |
diff --git a/core/applets/restartapplet2/restart.cpp b/core/applets/restartapplet2/restart.cpp index 576087b..a169505 100644 --- a/core/applets/restartapplet2/restart.cpp +++ b/core/applets/restartapplet2/restart.cpp | |||
@@ -33,25 +33,25 @@ static char *restart_xpm[] = { | |||
33 | ".+#@%&%@@&*%@#+.", | 33 | ".+#@%&%@@&*%@#+.", |
34 | ".$@+$&*&&=*$+@$.", | 34 | ".$@+$&*&&=*$+@$.", |
35 | " .--+$&*=&$+--. ", | 35 | " .--+$&*=&$+--. ", |
36 | " .$#++$$++#$. ", | 36 | " .$#++$$++#$. ", |
37 | " .@=$-$++$-$=@. ", | 37 | " .@=$-$++$-$=@. ", |
38 | " .+@-..@@..-@+. ", | 38 | " .+@-..@@..-@+. ", |
39 | " ... .+=. ... ", | 39 | " ... .+=. ... ", |
40 | " .-$. ", | 40 | " .-$. ", |
41 | " .. ", | 41 | " .. ", |
42 | " "}; | 42 | " "}; |
43 | 43 | ||
44 | RestartApplet::RestartApplet ( ) | 44 | RestartApplet::RestartApplet ( ) |
45 | : QObject ( 0, "RestartApplet" ), ref ( 0 ) | 45 | : QObject ( 0, "RestartApplet" ) |
46 | { | 46 | { |
47 | } | 47 | } |
48 | 48 | ||
49 | RestartApplet::~RestartApplet ( ) | 49 | RestartApplet::~RestartApplet ( ) |
50 | { | 50 | { |
51 | } | 51 | } |
52 | 52 | ||
53 | int RestartApplet::position ( ) const | 53 | int RestartApplet::position ( ) const |
54 | { | 54 | { |
55 | return 4; | 55 | return 4; |
56 | } | 56 | } |
57 | 57 | ||
diff --git a/core/applets/restartapplet2/restart.h b/core/applets/restartapplet2/restart.h index 9536886..6939b28 100644 --- a/core/applets/restartapplet2/restart.h +++ b/core/applets/restartapplet2/restart.h | |||
@@ -21,17 +21,15 @@ public: | |||
21 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 21 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
22 | Q_REFCOUNT | 22 | Q_REFCOUNT |
23 | 23 | ||
24 | virtual int position() const; | 24 | virtual int position() const; |
25 | 25 | ||
26 | virtual QString name ( ) const; | 26 | virtual QString name ( ) const; |
27 | virtual QIconSet icon ( ) const; | 27 | virtual QIconSet icon ( ) const; |
28 | virtual QString text ( ) const; | 28 | virtual QString text ( ) const; |
29 | virtual QPopupMenu *popup ( QWidget *parent ) const; | 29 | virtual QPopupMenu *popup ( QWidget *parent ) const; |
30 | 30 | ||
31 | virtual void activated ( ); | 31 | virtual void activated ( ); |
32 | 32 | ||
33 | private: | ||
34 | ulong ref; | ||
35 | }; | 33 | }; |
36 | 34 | ||
37 | #endif | 35 | #endif |
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp index b676c74..cf3f28b 100644 --- a/core/applets/rotateapplet/rotate.cpp +++ b/core/applets/rotateapplet/rotate.cpp | |||
@@ -38,25 +38,25 @@ | |||
38 | #include <qpe/qpeapplication.h> | 38 | #include <qpe/qpeapplication.h> |
39 | #include <qpe/qcopenvelope_qws.h> | 39 | #include <qpe/qcopenvelope_qws.h> |
40 | #include <qpe/resource.h> | 40 | #include <qpe/resource.h> |
41 | using namespace Opie; | 41 | using namespace Opie; |
42 | 42 | ||
43 | /* QT */ | 43 | /* QT */ |
44 | #include <qiconset.h> | 44 | #include <qiconset.h> |
45 | #include <qpopupmenu.h> | 45 | #include <qpopupmenu.h> |
46 | 46 | ||
47 | #include <time.h> | 47 | #include <time.h> |
48 | 48 | ||
49 | RotateApplet::RotateApplet() | 49 | RotateApplet::RotateApplet() |
50 | :QObject( 0, "RotateApplet" ), ref( 0 ), m_flipped( false ) | 50 | :QObject( 0, "RotateApplet" ), m_flipped( false ) |
51 | { | 51 | { |
52 | 52 | ||
53 | #if !defined(QT_NO_COP) | 53 | #if !defined(QT_NO_COP) |
54 | QCopChannel *rotateChannel = new QCopChannel( "QPE/Rotation" , this ); | 54 | QCopChannel *rotateChannel = new QCopChannel( "QPE/Rotation" , this ); |
55 | connect ( rotateChannel, SIGNAL( received( const QCString &, const QByteArray &) ), | 55 | connect ( rotateChannel, SIGNAL( received( const QCString &, const QByteArray &) ), |
56 | this, SLOT ( channelReceived( const QCString &, const QByteArray &) ) ); | 56 | this, SLOT ( channelReceived( const QCString &, const QByteArray &) ) ); |
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | } | 59 | } |
60 | 60 | ||
61 | RotateApplet::~RotateApplet ( ) | 61 | RotateApplet::~RotateApplet ( ) |
62 | {} | 62 | {} |
diff --git a/core/applets/rotateapplet/rotate.h b/core/applets/rotateapplet/rotate.h index 4403c7d..2396993 100644 --- a/core/applets/rotateapplet/rotate.h +++ b/core/applets/rotateapplet/rotate.h | |||
@@ -55,18 +55,17 @@ public: | |||
55 | virtual QString text ( ) const; | 55 | virtual QString text ( ) const; |
56 | /* virtual QString tr( const char* ) const; | 56 | /* virtual QString tr( const char* ) const; |
57 | virtual QString tr( const char*, const char* ) const; | 57 | virtual QString tr( const char*, const char* ) const; |
58 | */ | 58 | */ |
59 | virtual QPopupMenu *popup ( QWidget *parent ) const; | 59 | virtual QPopupMenu *popup ( QWidget *parent ) const; |
60 | virtual void activated ( ); | 60 | virtual void activated ( ); |
61 | virtual void rotateDefault ( ); | 61 | virtual void rotateDefault ( ); |
62 | 62 | ||
63 | private slots: | 63 | private slots: |
64 | void channelReceived( const QCString &msg, const QByteArray & data ); | 64 | void channelReceived( const QCString &msg, const QByteArray & data ); |
65 | 65 | ||
66 | private: | 66 | private: |
67 | ulong ref; | 67 | bool m_flipped : 1; |
68 | bool m_flipped; | ||
69 | 68 | ||
70 | }; | 69 | }; |
71 | 70 | ||
72 | #endif | 71 | #endif |
diff --git a/core/applets/screenshotapplet/screenshotappletimpl.cpp b/core/applets/screenshotapplet/screenshotappletimpl.cpp index 4a7512e..e99ecb0 100644 --- a/core/applets/screenshotapplet/screenshotappletimpl.cpp +++ b/core/applets/screenshotapplet/screenshotappletimpl.cpp | |||
@@ -13,25 +13,25 @@ | |||
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "screenshot.h" | 20 | #include "screenshot.h" |
21 | #include "screenshotappletimpl.h" | 21 | #include "screenshotappletimpl.h" |
22 | 22 | ||
23 | 23 | ||
24 | ScreenshotAppletImpl::ScreenshotAppletImpl() | 24 | ScreenshotAppletImpl::ScreenshotAppletImpl() |
25 | : screenshot(0), ref(0) | 25 | : screenshot(0) |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | ||
29 | ScreenshotAppletImpl::~ScreenshotAppletImpl() | 29 | ScreenshotAppletImpl::~ScreenshotAppletImpl() |
30 | { | 30 | { |
31 | delete screenshot; | 31 | delete screenshot; |
32 | } | 32 | } |
33 | 33 | ||
34 | QWidget *ScreenshotAppletImpl::applet( QWidget *parent ) | 34 | QWidget *ScreenshotAppletImpl::applet( QWidget *parent ) |
35 | { | 35 | { |
36 | if ( !screenshot ) | 36 | if ( !screenshot ) |
37 | screenshot = new ScreenshotApplet( parent ); | 37 | screenshot = new ScreenshotApplet( parent ); |
diff --git a/core/applets/screenshotapplet/screenshotappletimpl.h b/core/applets/screenshotapplet/screenshotappletimpl.h index 00661a5..988a34c 100644 --- a/core/applets/screenshotapplet/screenshotappletimpl.h +++ b/core/applets/screenshotapplet/screenshotappletimpl.h | |||
@@ -29,16 +29,15 @@ class ScreenshotAppletImpl : public TaskbarAppletInterface | |||
29 | public: | 29 | public: |
30 | ScreenshotAppletImpl(); | 30 | ScreenshotAppletImpl(); |
31 | virtual ~ScreenshotAppletImpl(); | 31 | virtual ~ScreenshotAppletImpl(); |
32 | 32 | ||
33 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 33 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
34 | Q_REFCOUNT | 34 | Q_REFCOUNT |
35 | 35 | ||
36 | virtual QWidget *applet( QWidget *parent ); | 36 | virtual QWidget *applet( QWidget *parent ); |
37 | virtual int position() const; | 37 | virtual int position() const; |
38 | 38 | ||
39 | private: | 39 | private: |
40 | ScreenshotApplet *screenshot; | 40 | ScreenshotApplet *screenshot; |
41 | ulong ref; | ||
42 | }; | 41 | }; |
43 | 42 | ||
44 | #endif | 43 | #endif |
diff --git a/core/applets/suspendapplet/suspend.cpp b/core/applets/suspendapplet/suspend.cpp index 63f16b8..e17142b 100644 --- a/core/applets/suspendapplet/suspend.cpp +++ b/core/applets/suspendapplet/suspend.cpp | |||
@@ -1,24 +1,24 @@ | |||
1 | #include <qpe/resource.h> | 1 | #include <qpe/resource.h> |
2 | #include <qpe/qcopenvelope_qws.h> | 2 | #include <qpe/qcopenvelope_qws.h> |
3 | 3 | ||
4 | #include <qapplication.h> | 4 | #include <qapplication.h> |
5 | #include <qiconset.h> | 5 | #include <qiconset.h> |
6 | #include <qpopupmenu.h> | 6 | #include <qpopupmenu.h> |
7 | 7 | ||
8 | #include "suspend.h" | 8 | #include "suspend.h" |
9 | 9 | ||
10 | 10 | ||
11 | SuspendApplet::SuspendApplet ( ) | 11 | SuspendApplet::SuspendApplet ( ) |
12 | : QObject ( 0, "SuspendApplet" ), ref ( 0 ) | 12 | : QObject ( 0, "SuspendApplet" ) |
13 | { | 13 | { |
14 | } | 14 | } |
15 | 15 | ||
16 | SuspendApplet::~SuspendApplet ( ) | 16 | SuspendApplet::~SuspendApplet ( ) |
17 | { | 17 | { |
18 | } | 18 | } |
19 | 19 | ||
20 | int SuspendApplet::position ( ) const | 20 | int SuspendApplet::position ( ) const |
21 | { | 21 | { |
22 | return 2; | 22 | return 2; |
23 | } | 23 | } |
24 | 24 | ||
diff --git a/core/applets/suspendapplet/suspend.h b/core/applets/suspendapplet/suspend.h index 75467c1..8c54cde 100644 --- a/core/applets/suspendapplet/suspend.h +++ b/core/applets/suspendapplet/suspend.h | |||
@@ -33,17 +33,15 @@ public: | |||
33 | 33 | ||
34 | virtual int position() const; | 34 | virtual int position() const; |
35 | 35 | ||
36 | virtual QString name ( ) const; | 36 | virtual QString name ( ) const; |
37 | virtual QIconSet icon ( ) const; | 37 | virtual QIconSet icon ( ) const; |
38 | virtual QString text ( ) const; | 38 | virtual QString text ( ) const; |
39 | virtual QString tr( const char* ) const; | 39 | virtual QString tr( const char* ) const; |
40 | virtual QString tr( const char*, const char* ) const; | 40 | virtual QString tr( const char*, const char* ) const; |
41 | virtual QPopupMenu *popup ( QWidget *parent ) const; | 41 | virtual QPopupMenu *popup ( QWidget *parent ) const; |
42 | 42 | ||
43 | virtual void activated ( ); | 43 | virtual void activated ( ); |
44 | 44 | ||
45 | private: | ||
46 | ulong ref; | ||
47 | }; | 45 | }; |
48 | 46 | ||
49 | #endif | 47 | #endif |
diff --git a/core/applets/vmemo/vmemoimpl.cpp b/core/applets/vmemo/vmemoimpl.cpp index 71d47e5..7779b83 100644 --- a/core/applets/vmemo/vmemoimpl.cpp +++ b/core/applets/vmemo/vmemoimpl.cpp | |||
@@ -10,25 +10,25 @@ | |||
10 | ** | 10 | ** |
11 | *********************************************************************************************/ | 11 | *********************************************************************************************/ |
12 | 12 | ||
13 | /* | 13 | /* |
14 | * $Id$ | 14 | * $Id$ |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "vmemo.h" | 17 | #include "vmemo.h" |
18 | #include "vmemoimpl.h" | 18 | #include "vmemoimpl.h" |
19 | 19 | ||
20 | 20 | ||
21 | VMemoAppletImpl::VMemoAppletImpl() | 21 | VMemoAppletImpl::VMemoAppletImpl() |
22 | : vmemo(0), ref(0) | 22 | : vmemo(0) |
23 | { | 23 | { |
24 | } | 24 | } |
25 | 25 | ||
26 | VMemoAppletImpl::~VMemoAppletImpl() | 26 | VMemoAppletImpl::~VMemoAppletImpl() |
27 | { | 27 | { |
28 | delete vmemo; | 28 | delete vmemo; |
29 | } | 29 | } |
30 | 30 | ||
31 | QWidget *VMemoAppletImpl::applet( QWidget *parent ) | 31 | QWidget *VMemoAppletImpl::applet( QWidget *parent ) |
32 | { | 32 | { |
33 | if ( !vmemo ) | 33 | if ( !vmemo ) |
34 | vmemo = new VMemo( parent ); | 34 | vmemo = new VMemo( parent ); |
diff --git a/core/applets/vmemo/vmemoimpl.h b/core/applets/vmemo/vmemoimpl.h index 0b78609..985138b 100644 --- a/core/applets/vmemo/vmemoimpl.h +++ b/core/applets/vmemo/vmemoimpl.h | |||
@@ -26,16 +26,15 @@ class VMemoAppletImpl : public TaskbarAppletInterface | |||
26 | public: | 26 | public: |
27 | VMemoAppletImpl(); | 27 | VMemoAppletImpl(); |
28 | virtual ~VMemoAppletImpl(); | 28 | virtual ~VMemoAppletImpl(); |
29 | 29 | ||
30 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 30 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
31 | Q_REFCOUNT | 31 | Q_REFCOUNT |
32 | 32 | ||
33 | virtual QWidget *applet( QWidget *parent ); | 33 | virtual QWidget *applet( QWidget *parent ); |
34 | virtual int position() const; | 34 | virtual int position() const; |
35 | 35 | ||
36 | private: | 36 | private: |
37 | VMemo *vmemo; | 37 | VMemo *vmemo; |
38 | ulong ref; | ||
39 | }; | 38 | }; |
40 | 39 | ||
41 | #endif | 40 | #endif |
diff --git a/core/applets/volumeapplet/volumeappletimpl.cpp b/core/applets/volumeapplet/volumeappletimpl.cpp index 80b3e74..4cbab31 100644 --- a/core/applets/volumeapplet/volumeappletimpl.cpp +++ b/core/applets/volumeapplet/volumeappletimpl.cpp | |||
@@ -14,25 +14,25 @@ | |||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "volume.h" | 20 | #include "volume.h" |
21 | #include "volumeappletimpl.h" | 21 | #include "volumeappletimpl.h" |
22 | #include <qpe/qcopenvelope_qws.h> | 22 | #include <qpe/qcopenvelope_qws.h> |
23 | #include <qpe/config.h> | 23 | #include <qpe/config.h> |
24 | 24 | ||
25 | VolumeAppletImpl::VolumeAppletImpl() | 25 | VolumeAppletImpl::VolumeAppletImpl() |
26 | : volume(0), ref(0) | 26 | : volume(0) |
27 | { | 27 | { |
28 | } | 28 | } |
29 | 29 | ||
30 | VolumeAppletImpl::~VolumeAppletImpl() | 30 | VolumeAppletImpl::~VolumeAppletImpl() |
31 | { | 31 | { |
32 | delete volume; | 32 | delete volume; |
33 | } | 33 | } |
34 | 34 | ||
35 | QWidget *VolumeAppletImpl::applet( QWidget *parent ) | 35 | QWidget *VolumeAppletImpl::applet( QWidget *parent ) |
36 | { | 36 | { |
37 | if ( !volume ) | 37 | if ( !volume ) |
38 | volume = new VolumeApplet( parent ); | 38 | volume = new VolumeApplet( parent ); |
diff --git a/core/applets/volumeapplet/volumeappletimpl.h b/core/applets/volumeapplet/volumeappletimpl.h index 9b2952a..a9221c6 100644 --- a/core/applets/volumeapplet/volumeappletimpl.h +++ b/core/applets/volumeapplet/volumeappletimpl.h | |||
@@ -29,16 +29,15 @@ class VolumeAppletImpl : public TaskbarAppletInterface | |||
29 | public: | 29 | public: |
30 | VolumeAppletImpl(); | 30 | VolumeAppletImpl(); |
31 | virtual ~VolumeAppletImpl(); | 31 | virtual ~VolumeAppletImpl(); |
32 | 32 | ||
33 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 33 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
34 | Q_REFCOUNT | 34 | Q_REFCOUNT |
35 | 35 | ||
36 | virtual QWidget *applet( QWidget *parent ); | 36 | virtual QWidget *applet( QWidget *parent ); |
37 | virtual int position() const; | 37 | virtual int position() const; |
38 | 38 | ||
39 | private: | 39 | private: |
40 | VolumeApplet *volume; | 40 | VolumeApplet *volume; |
41 | ulong ref; | ||
42 | }; | 41 | }; |
43 | 42 | ||
44 | #endif | 43 | #endif |
diff --git a/core/obex/obeximpl.h b/core/obex/obeximpl.h index 604eb8f..5cc9205 100644 --- a/core/obex/obeximpl.h +++ b/core/obex/obeximpl.h | |||
@@ -4,19 +4,18 @@ | |||
4 | #include <obexinterface.h> | 4 | #include <obexinterface.h> |
5 | 5 | ||
6 | namespace OpieObex { | 6 | namespace OpieObex { |
7 | class ObexHandler; | 7 | class ObexHandler; |
8 | class ObexImpl : public ObexInterface { | 8 | class ObexImpl : public ObexInterface { |
9 | public: | 9 | public: |
10 | ObexImpl(); | 10 | ObexImpl(); |
11 | virtual ~ObexImpl(); | 11 | virtual ~ObexImpl(); |
12 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | 12 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); |
13 | Q_REFCOUNT | 13 | Q_REFCOUNT |
14 | 14 | ||
15 | private: | 15 | private: |
16 | ulong ref; | ||
17 | ObexHandler *m_handler; | 16 | ObexHandler *m_handler; |
18 | 17 | ||
19 | }; | 18 | }; |
20 | }; | 19 | }; |
21 | 20 | ||
22 | #endif | 21 | #endif |