author | wimpie <wimpie> | 2004-04-02 18:29:49 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-02 18:29:49 (UTC) |
commit | 5334b639c9f97793bcae4f50f7b47c7a2ada4e2f (patch) (side-by-side diff) | |
tree | f55aebd4314ab878bc39b6b08b8323a8ef78d803 /noncore/settings/networksettings2/networksettings.h | |
parent | 7c8922b37b5bb7696c0ff2cbc999e2936b9b509f (diff) | |
download | opie-5334b639c9f97793bcae4f50f7b47c7a2ada4e2f.zip opie-5334b639c9f97793bcae4f50f7b47c7a2ada4e2f.tar.gz opie-5334b639c9f97793bcae4f50f7b47c7a2ada4e2f.tar.bz2 |
First import of NS2 app
Diffstat (limited to 'noncore/settings/networksettings2/networksettings.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/networksettings.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/networksettings.h b/noncore/settings/networksettings2/networksettings.h new file mode 100644 index 0000000..eb475a3 --- a/dev/null +++ b/noncore/settings/networksettings2/networksettings.h @@ -0,0 +1,77 @@ +#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 : + + NetworkSettings( QWidget *parent=0, + const char *name=0, + 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 : + + void SLOT_AddNode( void ); + void SLOT_DeleteNode( void ); + void SLOT_ShowNode( QIconViewItem * ); + void SLOT_EditNode( QIconViewItem * ); + void SLOT_CheckState( void ); + void SLOT_Enable( void ); + void SLOT_On( void ); + void SLOT_Connect( void ); + void SLOT_GenerateConfig( void ); + void SLOT_RefreshStates( void ); + +private : + + void updateProfileState( QIconViewItem * it ); + QTimer * UpdateTimer; + NetworkSettingsData NSD; + +}; |