author | zecke <zecke> | 2004-03-13 21:53:54 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-13 21:53:54 (UTC) |
commit | 2eb5c075b612498c4b65f3d49389b8612612a930 (patch) (unidiff) | |
tree | a0230cd9007f71bbb387b71b8e58684937e0cf70 /noncore/applets/networkapplet | |
parent | 184a0cd9935d0a249038cdbe05488c181b273d64 (diff) | |
download | opie-2eb5c075b612498c4b65f3d49389b8612612a930.zip opie-2eb5c075b612498c4b65f3d49389b8612612a930.tar.gz opie-2eb5c075b612498c4b65f3d49389b8612612a930.tar.bz2 |
Introduce the namespace
and the new APPLET_EXPORT define
Diffstat (limited to 'noncore/applets/networkapplet') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/networkapplet/networkapplet.cpp | 7 | ||||
-rw-r--r-- | noncore/applets/networkapplet/networkapplet.h | 18 |
2 files changed, 15 insertions, 10 deletions
diff --git a/noncore/applets/networkapplet/networkapplet.cpp b/noncore/applets/networkapplet/networkapplet.cpp index 955ed2e..5eb5ad2 100644 --- a/noncore/applets/networkapplet/networkapplet.cpp +++ b/noncore/applets/networkapplet/networkapplet.cpp | |||
@@ -45,6 +45,8 @@ | |||
45 | 45 | ||
46 | #include <assert.h> | 46 | #include <assert.h> |
47 | 47 | ||
48 | using namespace Opie::Ui; | ||
49 | using namespace Opie::Net; | ||
48 | IfaceUpDownButton::IfaceUpDownButton( QWidget* parent, const char* name ) | 50 | IfaceUpDownButton::IfaceUpDownButton( QWidget* parent, const char* name ) |
49 | :QToolButton( parent, name ) | 51 | :QToolButton( parent, name ) |
50 | { | 52 | { |
@@ -246,9 +248,6 @@ void NetworkApplet::mousePressEvent( QMouseEvent* ) | |||
246 | } | 248 | } |
247 | } | 249 | } |
248 | 250 | ||
251 | EXPORT_OPIE_APPLET_v1( NetworkApplet ) | ||
249 | 252 | ||
250 | Q_EXPORT_INTERFACE() | ||
251 | { | ||
252 | Q_CREATE_INSTANCE( OTaskbarAppletWrapper<NetworkApplet> ); | ||
253 | } | ||
254 | 253 | ||
diff --git a/noncore/applets/networkapplet/networkapplet.h b/noncore/applets/networkapplet/networkapplet.h index 8022537..1e2cac8 100644 --- a/noncore/applets/networkapplet/networkapplet.h +++ b/noncore/applets/networkapplet/networkapplet.h | |||
@@ -38,7 +38,13 @@ | |||
38 | #include <qlineedit.h> | 38 | #include <qlineedit.h> |
39 | #include <qpixmap.h> | 39 | #include <qpixmap.h> |
40 | 40 | ||
41 | class ONetworkInterface; | 41 | |
42 | namespace Opie { | ||
43 | namespace Net { | ||
44 | class ONetwork; | ||
45 | class ONetworkInterface; | ||
46 | } | ||
47 | } | ||
42 | class QShowEvent; | 48 | class QShowEvent; |
43 | class QHideEvent; | 49 | class QHideEvent; |
44 | class QVBoxLayout; | 50 | class QVBoxLayout; |
@@ -55,7 +61,7 @@ class IfaceUpDownButton : public QToolButton | |||
55 | virtual void clicked(); | 61 | virtual void clicked(); |
56 | 62 | ||
57 | private: | 63 | private: |
58 | ONetworkInterface* _iface; | 64 | Opie::Net::ONetworkInterface* _iface; |
59 | }; | 65 | }; |
60 | 66 | ||
61 | 67 | ||
@@ -71,13 +77,13 @@ class IfaceIPAddress : public QLineEdit | |||
71 | virtual void returnPressed(); | 77 | virtual void returnPressed(); |
72 | 78 | ||
73 | private: | 79 | private: |
74 | ONetworkInterface* _iface; | 80 | Opie::Net::ONetworkInterface* _iface; |
75 | }; | 81 | }; |
76 | 82 | ||
77 | class NetworkAppletControl : public QFrame | 83 | class NetworkAppletControl : public QFrame |
78 | { | 84 | { |
79 | public: | 85 | public: |
80 | NetworkAppletControl( OTaskbarApplet* parent, const char* name = 0 ); | 86 | NetworkAppletControl( Opie::Ui::OTaskbarApplet* parent, const char* name = 0 ); |
81 | ~NetworkAppletControl(); | 87 | ~NetworkAppletControl(); |
82 | 88 | ||
83 | virtual QSize sizeHint() const; | 89 | virtual QSize sizeHint() const; |
@@ -85,7 +91,7 @@ class NetworkAppletControl : public QFrame | |||
85 | protected: | 91 | protected: |
86 | virtual void showEvent( QShowEvent* ); | 92 | virtual void showEvent( QShowEvent* ); |
87 | virtual void hideEvent( QHideEvent* ); | 93 | virtual void hideEvent( QHideEvent* ); |
88 | QString guessDevice( ONetworkInterface* iface ); | 94 | QString guessDevice( Opie::Net::ONetworkInterface* iface ); |
89 | void build(); | 95 | void build(); |
90 | 96 | ||
91 | private: | 97 | private: |
@@ -94,7 +100,7 @@ class NetworkAppletControl : public QFrame | |||
94 | }; | 100 | }; |
95 | 101 | ||
96 | 102 | ||
97 | class NetworkApplet : public OTaskbarApplet | 103 | class NetworkApplet : public Opie::Ui::OTaskbarApplet |
98 | { | 104 | { |
99 | public: | 105 | public: |
100 | NetworkApplet( QWidget* parent = 0, const char* name = 0 ); | 106 | NetworkApplet( QWidget* parent = 0, const char* name = 0 ); |