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.h32
1 files changed, 2 insertions, 30 deletions
diff --git a/noncore/settings/networksettings2/networksettings.h b/noncore/settings/networksettings2/networksettings.h
index eb475a3..fadf81b 100644
--- a/noncore/settings/networksettings2/networksettings.h
+++ b/noncore/settings/networksettings2/networksettings.h
@@ -1,41 +1,15 @@
1#include "nsdata.h"
1#include "networksettingsGUI.h" 2#include "networksettingsGUI.h"
2#include "resources.h" 3#include "resources.h"
3 4
4class ANetNode; 5class ANetNode;
5class ANetNodeInstance; 6class ANetNodeInstance;
6class QTimer; 7class QTimer;
7class QIconViewItem; 8class QIconViewItem;
8 9
9class NetworkSettingsData {
10
11public :
12
13 NetworkSettingsData( void );
14 ~NetworkSettingsData( void );
15
16 void loadSettings( void );
17 QString saveSettings( void );
18
19 QString generateSettings( bool Force = FALSE );
20
21 bool isModified( void )
22 { return IsModified; }
23 void setModified( bool m )
24 { IsModified = m; }
25
26 void forceGeneration( bool m )
27 { Force = m; }
28
29private :
30
31 bool IsModified;
32 bool Force;
33
34};
35
36class NetworkSettings : public NetworkSettingsGUI { 10class NetworkSettings : public NetworkSettingsGUI {
37 11
38 Q_OBJECT 12 Q_OBJECT
39 13
40public : 14public :
41 15
@@ -44,15 +18,12 @@ public :
44 WFlags fl = 0 ); 18 WFlags fl = 0 );
45 ~NetworkSettings( void ); 19 ~NetworkSettings( void );
46 20
47 static QString appName( void ) 21 static QString appName( void )
48 { return QString::fromLatin1("networksettings"); } 22 { return QString::fromLatin1("networksettings"); }
49 23
50 static void canStart( const char * Interface );
51 static bool regenerate( void );
52
53 bool isModified( void ) 24 bool isModified( void )
54 { return NSD.isModified(); } 25 { return NSD.isModified(); }
55 void setModified( bool m ) 26 void setModified( bool m )
56 { NSD.setModified( m ); } 27 { NSD.setModified( m ); }
57 28
58public slots : 29public slots :
@@ -64,12 +35,13 @@ public slots :
64 void SLOT_CheckState( void ); 35 void SLOT_CheckState( void );
65 void SLOT_Enable( void ); 36 void SLOT_Enable( void );
66 void SLOT_On( void ); 37 void SLOT_On( void );
67 void SLOT_Connect( void ); 38 void SLOT_Connect( void );
68 void SLOT_GenerateConfig( void ); 39 void SLOT_GenerateConfig( void );
69 void SLOT_RefreshStates( void ); 40 void SLOT_RefreshStates( void );
41 void SLOT_QCopMessage( const QCString&,const QByteArray& );
70 42
71private : 43private :
72 44
73 void updateProfileState( QIconViewItem * it ); 45 void updateProfileState( QIconViewItem * it );
74 QTimer * UpdateTimer; 46 QTimer * UpdateTimer;
75 NetworkSettingsData NSD; 47 NetworkSettingsData NSD;