author | benmeyer <benmeyer> | 2002-10-25 19:32:57 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-10-25 19:32:57 (UTC) |
commit | 9adbe632ec54bf155b9882e4e0b51c293259cdf2 (patch) (unidiff) | |
tree | 5bd90a1d9d0178b157f0b70bc0144b839501271c /noncore/net/networksetup/interfaces/interfacesetupimp.h | |
parent | a2275295f506dca663b545eda17b4b4dc2e4ad40 (diff) | |
download | opie-9adbe632ec54bf155b9882e4e0b51c293259cdf2.zip opie-9adbe632ec54bf155b9882e4e0b51c293259cdf2.tar.gz opie-9adbe632ec54bf155b9882e4e0b51c293259cdf2.tar.bz2 |
Initial
Diffstat (limited to 'noncore/net/networksetup/interfaces/interfacesetupimp.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/interfaces/interfacesetupimp.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/noncore/net/networksetup/interfaces/interfacesetupimp.h b/noncore/net/networksetup/interfaces/interfacesetupimp.h new file mode 100644 index 0000000..936f2be --- a/dev/null +++ b/noncore/net/networksetup/interfaces/interfacesetupimp.h | |||
@@ -0,0 +1,49 @@ | |||
1 | #ifndef INTERFACESETUPIMP_H | ||
2 | #define INTERFACESETUPIMP_H | ||
3 | |||
4 | #include "interfacesetup.h" | ||
5 | #include <qdialog.h> | ||
6 | |||
7 | class Interface; | ||
8 | class Interfaces; | ||
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 | void saveChanges(); | ||
16 | |||
17 | public slots: | ||
18 | void setProfile(const QString &profile); | ||
19 | bool saveSettings(); | ||
20 | private: | ||
21 | Interfaces *interfaces; | ||
22 | Interface *interface; | ||
23 | |||
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 | |||
40 | InterfaceSetupImp *interfaceSetup; | ||
41 | |||
42 | protected slots: | ||
43 | void accept(){ interfaceSetup->saveChanges(); }; | ||
44 | }; | ||
45 | |||
46 | #endif | ||
47 | |||
48 | // interfacesetupimp.h | ||
49 | |||