author | wimpie <wimpie> | 2004-04-03 21:33:30 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-03 21:33:30 (UTC) |
commit | d82581fff0a7fa02b5c391a5b0bcfbfd1e5a6843 (patch) (side-by-side diff) | |
tree | 32ccf2da6464c498c4c43c750e1391a06a1ad431 /noncore/settings/networksettings2/networksettings.h | |
parent | 41ba1a87a850785caf94d0b50675281fb6561168 (diff) | |
download | opie-d82581fff0a7fa02b5c391a5b0bcfbfd1e5a6843.zip opie-d82581fff0a7fa02b5c391a5b0bcfbfd1e5a6843.tar.gz opie-d82581fff0a7fa02b5c391a5b0bcfbfd1e5a6843.tar.bz2 |
Factored out non-gui data class
Added support for prompting
Diffstat (limited to 'noncore/settings/networksettings2/networksettings.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/networksettings.h | 32 |
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 @@ +#include "nsdata.h" #include "networksettingsGUI.h" #include "resources.h" class ANetNode; class ANetNodeInstance; class QTimer; class QIconViewItem; -class NetworkSettingsData { - -public : - - NetworkSettingsData( void ); - ~NetworkSettingsData( void ); - - void loadSettings( void ); - QString saveSettings( void ); - - QString generateSettings( bool Force = FALSE ); - - bool isModified( void ) - { return IsModified; } - void setModified( bool m ) - { IsModified = m; } - - void forceGeneration( bool m ) - { Force = m; } - -private : - - bool IsModified; - bool Force; - -}; - class NetworkSettings : public NetworkSettingsGUI { Q_OBJECT public : @@ -44,15 +18,12 @@ public : WFlags fl = 0 ); ~NetworkSettings( void ); static QString appName( void ) { return QString::fromLatin1("networksettings"); } - static void canStart( const char * Interface ); - static bool regenerate( void ); - bool isModified( void ) { return NSD.isModified(); } void setModified( bool m ) { NSD.setModified( m ); } public slots : @@ -64,12 +35,13 @@ public slots : void SLOT_CheckState( void ); void SLOT_Enable( void ); void SLOT_On( void ); void SLOT_Connect( void ); void SLOT_GenerateConfig( void ); void SLOT_RefreshStates( void ); + void SLOT_QCopMessage( const QCString&,const QByteArray& ); private : void updateProfileState( QIconViewItem * it ); QTimer * UpdateTimer; NetworkSettingsData NSD; |