author | kergoth <kergoth> | 2003-04-14 02:11:00 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-14 02:11:00 (UTC) |
commit | ffbdd4fe71b0b8cfee3cef57b24ebae4bb075621 (patch) (unidiff) | |
tree | 8f1c25faf57cc741ddaaa4b5cbf20cfff843f134 /noncore/settings/networksettings/interfaces/interfacesetupimp.h | |
parent | ef69f1d1ca947a0b972e3f8d635883ae7ef0ae23 (diff) | |
download | opie-ffbdd4fe71b0b8cfee3cef57b24ebae4bb075621.zip opie-ffbdd4fe71b0b8cfee3cef57b24ebae4bb075621.tar.gz opie-ffbdd4fe71b0b8cfee3cef57b24ebae4bb075621.tar.bz2 |
Add a constructor to InterfaceSetupImp which lets me pass in a pointer to
an already existing Interfaces object, so that it will play nice with a
wireless module that also uses Interfaces.
Diffstat (limited to 'noncore/settings/networksettings/interfaces/interfacesetupimp.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/interfaces/interfacesetupimp.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/noncore/settings/networksettings/interfaces/interfacesetupimp.h b/noncore/settings/networksettings/interfaces/interfacesetupimp.h index 9ec526c..c4ace77 100644 --- a/noncore/settings/networksettings/interfaces/interfacesetupimp.h +++ b/noncore/settings/networksettings/interfaces/interfacesetupimp.h | |||
@@ -2,34 +2,38 @@ | |||
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); | 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); | ||
16 | ~InterfaceSetupImp(); | ||
15 | bool saveChanges(); | 17 | bool saveChanges(); |
16 | 18 | ||
17 | public slots: | 19 | public slots: |
18 | void setProfile(const QString &profile); | 20 | void setProfile(const QString &profile); |
19 | bool saveSettings(); | 21 | bool saveSettings(); |
20 | 22 | ||
21 | private: | 23 | private: |
22 | Interfaces interfaces; | 24 | Interfaces *interfaces; |
23 | Interface *interface; | 25 | Interface *interface; |
26 | |||
27 | bool delInterfaces; | ||
24 | }; | 28 | }; |
25 | 29 | ||
26 | 30 | ||
27 | #include <qlayout.h> | 31 | #include <qlayout.h> |
28 | 32 | ||
29 | class InterfaceSetupImpDialog : public QDialog { | 33 | class InterfaceSetupImpDialog : public QDialog { |
30 | Q_OBJECT | 34 | Q_OBJECT |
31 | 35 | ||
32 | public: | 36 | public: |
33 | InterfaceSetupImpDialog(QWidget* parent = 0, const char* name = 0, Interface *i=0, bool modal = false, WFlags fl = 0) : QDialog(parent, name, modal, fl){ | 37 | 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 ); | 38 | QVBoxLayout *InterfaceSetupLayout = new QVBoxLayout( this ); |
35 | setCaption("Interface Setup"); | 39 | setCaption("Interface Setup"); |