author | zecke <zecke> | 2004-02-08 15:22:06 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-08 15:22:06 (UTC) |
commit | 811821ed75b87468f521bef2077cf5988aac9b47 (patch) (side-by-side diff) | |
tree | 46acd55f4faa6abb3e731966d82ab0eacddec5cc /noncore/settings/networksettings/interfaces/interfacesetupimp.h | |
parent | d03af1b4f0e9f00f7d135d4366cac818c6797600 (diff) | |
download | opie-811821ed75b87468f521bef2077cf5988aac9b47.zip opie-811821ed75b87468f521bef2077cf5988aac9b47.tar.gz opie-811821ed75b87468f521bef2077cf5988aac9b47.tar.bz2 |
Document Networksettings API
Diffstat (limited to 'noncore/settings/networksettings/interfaces/interfacesetupimp.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/interfaces/interfacesetupimp.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/noncore/settings/networksettings/interfaces/interfacesetupimp.h b/noncore/settings/networksettings/interfaces/interfacesetupimp.h index 172da6a..f38fba5 100644 --- a/noncore/settings/networksettings/interfaces/interfacesetupimp.h +++ b/noncore/settings/networksettings/interfaces/interfacesetupimp.h @@ -4,20 +4,26 @@ #include "interfacesetup.h" #include "interfaces.h" #include <qdialog.h> class Interface; +/** + * A default implementation for setting up basic + * network config. Like DHCP, IP and other information. + * You can use it in a tab or in any other way* + * On saveChanges() it'll save the changes to Interfaces. + */ class InterfaceSetupImp : public InterfaceSetup { Q_OBJECT - + public: InterfaceSetupImp( QWidget* parent = 0, const char* name = 0, Interface *i = 0, Interfaces *j = 0, WFlags fl = 0); ~InterfaceSetupImp(); bool saveChanges(); - + public slots: void setProfile(const QString &profile); bool saveSettings(); private: Interfaces *interfaces; @@ -28,13 +34,13 @@ private: #include <qlayout.h> class InterfaceSetupImpDialog : public QDialog { Q_OBJECT - + public: InterfaceSetupImpDialog(QWidget* parent = 0, const char* name = 0, Interface *i=0, bool modal = false, WFlags fl = 0) : QDialog(parent, name, modal, fl){ QVBoxLayout *InterfaceSetupLayout = new QVBoxLayout( this ); setCaption("Interface Setup"); interfaceSetup = new InterfaceSetupImp(this, "InterfaceSetup",i); InterfaceSetupLayout->addWidget( interfaceSetup ); |