summaryrefslogtreecommitdiff
path: root/noncore/applets/networkapplet/networkapplet.h
authorzecke <zecke>2004-03-13 21:53:54 (UTC)
committer zecke <zecke>2004-03-13 21:53:54 (UTC)
commit2eb5c075b612498c4b65f3d49389b8612612a930 (patch) (unidiff)
treea0230cd9007f71bbb387b71b8e58684937e0cf70 /noncore/applets/networkapplet/networkapplet.h
parent184a0cd9935d0a249038cdbe05488c181b273d64 (diff)
downloadopie-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/networkapplet.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/networkapplet/networkapplet.h18
1 files changed, 12 insertions, 6 deletions
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
@@ -35,13 +35,19 @@
35#include <qframe.h> 35#include <qframe.h>
36#include <qstring.h> 36#include <qstring.h>
37#include <qtoolbutton.h> 37#include <qtoolbutton.h>
38#include <qlineedit.h> 38#include <qlineedit.h>
39#include <qpixmap.h> 39#include <qpixmap.h>
40 40
41class ONetworkInterface; 41
42namespace Opie {
43namespace Net {
44 class ONetwork;
45 class ONetworkInterface;
46}
47}
42class QShowEvent; 48class QShowEvent;
43class QHideEvent; 49class QHideEvent;
44class QVBoxLayout; 50class QVBoxLayout;
45 51
46class IfaceUpDownButton : public QToolButton 52class IfaceUpDownButton : public QToolButton
47{ 53{
@@ -52,13 +58,13 @@ class IfaceUpDownButton : public QToolButton
52 virtual ~IfaceUpDownButton(); 58 virtual ~IfaceUpDownButton();
53 59
54 public slots: 60 public slots:
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
62class IfaceIPAddress : public QLineEdit 68class IfaceIPAddress : public QLineEdit
63{ 69{
64 Q_OBJECT 70 Q_OBJECT
@@ -68,36 +74,36 @@ class IfaceIPAddress : public QLineEdit
68 virtual ~IfaceIPAddress(); 74 virtual ~IfaceIPAddress();
69 75
70 public slots: 76 public slots:
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
77class NetworkAppletControl : public QFrame 83class 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;
84 90
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:
92 QVBoxLayout* l; 98 QVBoxLayout* l;
93 99
94}; 100};
95 101
96 102
97class NetworkApplet : public OTaskbarApplet 103class 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 );
101 ~NetworkApplet(); 107 ~NetworkApplet();
102 108
103 static int position(); 109 static int position();