summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/networksettings.h
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/networksettings.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/networksettings.h26
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
@@ -7,6 +7,7 @@ class ANetNodeInstance;
7class QTimer; 7class QTimer;
8class QListBoxItem; 8class QListBoxItem;
9class QEvent; 9class QEvent;
10class OLedBox;
10 11
11class NetworkSettings : public NetworkSettingsGUI { 12class NetworkSettings : public NetworkSettingsGUI {
12 13
@@ -17,16 +18,11 @@ public :
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
30public slots : 26public slots :
31 27
32 void SLOT_AddNode( void ); 28 void SLOT_AddNode( void );
@@ -34,10 +30,11 @@ public slots :
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& );
@@ -50,4 +47,13 @@ private :
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};