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