Diffstat (limited to 'noncore/settings/networksettings/interfaces/interfacesetupimp.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/interfaces/interfacesetupimp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/settings/networksettings/interfaces/interfacesetupimp.h b/noncore/settings/networksettings/interfaces/interfacesetupimp.h index c4ace77..172da6a 100644 --- a/noncore/settings/networksettings/interfaces/interfacesetupimp.h +++ b/noncore/settings/networksettings/interfaces/interfacesetupimp.h | |||
@@ -2,25 +2,24 @@ | |||
2 | #define INTERFACESETUPIMP_H | 2 | #define INTERFACESETUPIMP_H |
3 | 3 | ||
4 | #include "interfacesetup.h" | 4 | #include "interfacesetup.h" |
5 | #include "interfaces.h" | 5 | #include "interfaces.h" |
6 | #include <qdialog.h> | 6 | #include <qdialog.h> |
7 | 7 | ||
8 | class Interface; | 8 | class Interface; |
9 | 9 | ||
10 | class InterfaceSetupImp : public InterfaceSetup { | 10 | class InterfaceSetupImp : public InterfaceSetup { |
11 | Q_OBJECT | 11 | Q_OBJECT |
12 | 12 | ||
13 | public: | 13 | public: |
14 | InterfaceSetupImp( QWidget* parent = 0, const char* name = 0, Interface *i = 0, WFlags fl = 0); | ||
15 | InterfaceSetupImp( QWidget* parent = 0, const char* name = 0, Interface *i = 0, Interfaces *j = 0, WFlags fl = 0); | 14 | InterfaceSetupImp( QWidget* parent = 0, const char* name = 0, Interface *i = 0, Interfaces *j = 0, WFlags fl = 0); |
16 | ~InterfaceSetupImp(); | 15 | ~InterfaceSetupImp(); |
17 | bool saveChanges(); | 16 | bool saveChanges(); |
18 | 17 | ||
19 | public slots: | 18 | public slots: |
20 | void setProfile(const QString &profile); | 19 | void setProfile(const QString &profile); |
21 | bool saveSettings(); | 20 | bool saveSettings(); |
22 | 21 | ||
23 | private: | 22 | private: |
24 | Interfaces *interfaces; | 23 | Interfaces *interfaces; |
25 | Interface *interface; | 24 | Interface *interface; |
26 | 25 | ||
@@ -28,25 +27,25 @@ private: | |||
28 | }; | 27 | }; |
29 | 28 | ||
30 | 29 | ||
31 | #include <qlayout.h> | 30 | #include <qlayout.h> |
32 | 31 | ||
33 | class InterfaceSetupImpDialog : public QDialog { | 32 | class InterfaceSetupImpDialog : public QDialog { |
34 | Q_OBJECT | 33 | Q_OBJECT |
35 | 34 | ||
36 | public: | 35 | public: |
37 | InterfaceSetupImpDialog(QWidget* parent = 0, const char* name = 0, Interface *i=0, bool modal = false, WFlags fl = 0) : QDialog(parent, name, modal, fl){ | 36 | InterfaceSetupImpDialog(QWidget* parent = 0, const char* name = 0, Interface *i=0, bool modal = false, WFlags fl = 0) : QDialog(parent, name, modal, fl){ |
38 | QVBoxLayout *InterfaceSetupLayout = new QVBoxLayout( this ); | 37 | QVBoxLayout *InterfaceSetupLayout = new QVBoxLayout( this ); |
39 | setCaption("Interface Setup"); | 38 | setCaption("Interface Setup"); |
40 | interfaceSetup = new InterfaceSetupImp(this, "InterfaceSetup",i,fl); | 39 | interfaceSetup = new InterfaceSetupImp(this, "InterfaceSetup",i); |
41 | InterfaceSetupLayout->addWidget( interfaceSetup ); | 40 | InterfaceSetupLayout->addWidget( interfaceSetup ); |
42 | }; | 41 | }; |
43 | void setProfile(QString &profile){ interfaceSetup->setProfile(profile);}; | 42 | void setProfile(QString &profile){ interfaceSetup->setProfile(profile);}; |
44 | 43 | ||
45 | private: | 44 | private: |
46 | InterfaceSetupImp *interfaceSetup; | 45 | InterfaceSetupImp *interfaceSetup; |
47 | 46 | ||
48 | protected slots: | 47 | protected slots: |
49 | void accept(){ | 48 | void accept(){ |
50 | if(interfaceSetup->saveChanges()) | 49 | if(interfaceSetup->saveChanges()) |
51 | QDialog::accept(); | 50 | QDialog::accept(); |
52 | }; | 51 | }; |