Diffstat (limited to 'noncore/settings/networksettings2/networksettings.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/networksettings.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/networksettings.h b/noncore/settings/networksettings2/networksettings.h index 987e311..e1c2b80 100644 --- a/noncore/settings/networksettings2/networksettings.h +++ b/noncore/settings/networksettings2/networksettings.h | |||
@@ -1,59 +1,68 @@ | |||
1 | #include "nsdata.h" | 1 | #include "nsdata.h" |
2 | #include "networksettingsGUI.h" | 2 | #include "networksettingsGUI.h" |
3 | #include "resources.h" | 3 | #include "resources.h" |
4 | 4 | ||
5 | class ANetNode; | 5 | class ANetNode; |
6 | class ANetNodeInstance; | 6 | class ANetNodeInstance; |
7 | class QTimer; | 7 | class QTimer; |
8 | class QListBoxItem; | 8 | class QListBoxItem; |
9 | class QEvent; | 9 | class QEvent; |
10 | class OLedBox; | 10 | |
11 | namespace Opie { | ||
12 | |||
13 | namespace Ui { | ||
14 | |||
15 | class OLedBox; | ||
16 | |||
17 | }; | ||
18 | |||
19 | }; | ||
11 | 20 | ||
12 | class NetworkSettings : public NetworkSettingsGUI { | 21 | class NetworkSettings : public NetworkSettingsGUI { |
13 | 22 | ||
14 | Q_OBJECT | 23 | Q_OBJECT |
15 | 24 | ||
16 | public : | 25 | public : |
17 | 26 | ||
18 | NetworkSettings( QWidget *parent=0, | 27 | NetworkSettings( QWidget *parent=0, |
19 | const char *name=0, | 28 | const char *name=0, |
20 | WFlags fl = 0 ); | 29 | WFlags fl = 0 ); |
21 | virtual ~NetworkSettings( void ); | 30 | virtual ~NetworkSettings( void ); |
22 | 31 | ||
23 | static QString appName( void ) | 32 | static QString appName( void ) |
24 | { return QString::fromLatin1("networksettings"); } | 33 | { return QString::fromLatin1("networksettings"); } |
25 | 34 | ||
26 | public slots : | 35 | public slots : |
27 | 36 | ||
28 | void SLOT_AddNode( void ); | 37 | void SLOT_AddNode( void ); |
29 | void SLOT_DeleteNode( void ); | 38 | void SLOT_DeleteNode( void ); |
30 | void SLOT_ShowNode( QListBoxItem * ); | 39 | void SLOT_ShowNode( QListBoxItem * ); |
31 | void SLOT_EditNode( QListBoxItem * ); | 40 | void SLOT_EditNode( QListBoxItem * ); |
32 | void SLOT_CheckState( void ); | 41 | void SLOT_CheckState( void ); |
33 | 42 | ||
34 | void SLOT_Up( void ); | 43 | void SLOT_Up( void ); |
35 | void SLOT_Down( void ); | 44 | void SLOT_Down( void ); |
36 | void SLOT_Disable( bool ); | 45 | void SLOT_Disable( bool ); |
37 | 46 | ||
38 | void SLOT_GenerateConfig( void ); | 47 | void SLOT_GenerateConfig( void ); |
39 | void SLOT_RefreshStates( void ); | 48 | void SLOT_RefreshStates( void ); |
40 | void SLOT_QCopMessage( const QCString&,const QByteArray& ); | 49 | void SLOT_QCopMessage( const QCString&,const QByteArray& ); |
41 | void SLOT_ToProfile( void ); | 50 | void SLOT_ToProfile( void ); |
42 | void SLOT_ToMessages( void ); | 51 | void SLOT_ToMessages( void ); |
43 | void SLOT_CmdMessage( const QString & S ); | 52 | void SLOT_CmdMessage( const QString & S ); |
44 | 53 | ||
45 | private : | 54 | private : |
46 | 55 | ||
47 | void updateProfileState( QListBoxItem * it ); | 56 | void updateProfileState( QListBoxItem * it ); |
48 | QTimer * UpdateTimer; | 57 | QTimer * UpdateTimer; |
49 | NetworkSettingsData NSD; | 58 | NetworkSettingsData NSD; |
50 | /* | 59 | /* |
51 | 60 | ||
52 | no leds : not present, unknown, unchecked or disabled | 61 | no leds : not present, unknown, unchecked or disabled |
53 | (1) down : hardware present but inactive | 62 | (1) down : hardware present but inactive |
54 | (2) available : hardware present and active | 63 | (2) available : hardware present and active |
55 | (3) up : present active and connected | 64 | (3) up : present active and connected |
56 | 65 | ||
57 | */ | 66 | */ |
58 | OLedBox * Leds[3]; | 67 | Opie::Ui::OLedBox * Leds[3]; |
59 | }; | 68 | }; |