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