Diffstat (limited to 'noncore/settings/networksettings/mainwindowimp.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.h | 140 |
1 files changed, 73 insertions, 67 deletions
diff --git a/noncore/settings/networksettings/mainwindowimp.h b/noncore/settings/networksettings/mainwindowimp.h index c045fe6..a553f75 100644 --- a/noncore/settings/networksettings/mainwindowimp.h +++ b/noncore/settings/networksettings/mainwindowimp.h | |||
@@ -1,67 +1,73 @@ | |||
1 | #ifndef MAINWINOWIMP_H | 1 | #ifndef MAINWINOWIMP_H |
2 | #define MAINWINOWIMP_H | 2 | #define MAINWINOWIMP_H |
3 | 3 | ||
4 | #include "mainwindow.h" | 4 | #include "mainwindow.h" |
5 | #include <qmap.h> | 5 | #include <qmap.h> |
6 | #include <qstringlist.h> | 6 | #include <qstringlist.h> |
7 | 7 | ||
8 | class Module; | 8 | class Module; |
9 | class Interface; | 9 | class Interface; |
10 | class QLibrary; | 10 | class QLibrary; |
11 | class KProcess; | 11 | class KProcess; |
12 | #ifdef QWS | 12 | class QCopChannel; |
13 | class QLibrary; | 13 | #ifdef QWS |
14 | #else | 14 | class QLibrary; |
15 | class KLibrary; | 15 | #else |
16 | class KLibLoader; | 16 | class KLibrary; |
17 | #define QLibrary KLibrary | 17 | class KLibLoader; |
18 | #endif | 18 | #define QLibrary KLibrary |
19 | 19 | #endif | |
20 | 20 | ||
21 | class MainWindowImp : public MainWindow { | 21 | |
22 | Q_OBJECT | 22 | class MainWindowImp : public MainWindow { |
23 | 23 | Q_OBJECT | |
24 | public: | 24 | |
25 | MainWindowImp(QWidget *parent=0, const char *name=0); | 25 | public: |
26 | ~MainWindowImp(); | 26 | MainWindowImp(QWidget *parent=0, const char *name=0); |
27 | 27 | ~MainWindowImp(); | |
28 | private slots: | 28 | |
29 | void getAllInterfaces(); | 29 | QCopChannel *channel; |
30 | 30 | ||
31 | void addClicked(); | 31 | private slots: |
32 | void removeClicked(); | 32 | void getAllInterfaces(); |
33 | void configureClicked(); | 33 | |
34 | void informationClicked(); | 34 | void addClicked(); |
35 | 35 | void removeClicked(); | |
36 | void addProfile(); | 36 | void configureClicked(); |
37 | void removeProfile(); | 37 | void informationClicked(); |
38 | void changeProfile(); | 38 | |
39 | 39 | void addProfile(); | |
40 | void updateInterface(Interface *i); | 40 | void removeProfile(); |
41 | void newProfileChanged(const QString& newText); | 41 | void changeProfile(); |
42 | 42 | ||
43 | private: | 43 | void updateInterface(Interface *i); |
44 | void loadModules(const QString &path); | 44 | void newProfileChanged(const QString& newText); |
45 | 45 | ||
46 | Module* loadPlugin(const QString &pluginFileName, | 46 | void receive (const QCString &, const QByteArray &); |
47 | const QString &resolveString = "create_plugin"); | 47 | |
48 | 48 | private: | |
49 | // For our local list of names | 49 | void makeChannel(); |
50 | QMap<QString, Interface*> interfaceNames; | 50 | void loadModules(const QString &path); |
51 | 51 | ||
52 | QMap<Module*, QLibrary*> libraries; | 52 | Module* loadPlugin(const QString &pluginFileName, |
53 | QMap<Interface*, QListViewItem*> items; | 53 | const QString &resolveString = "create_plugin"); |
54 | QMap<QListViewItem*, Interface*> interfaceItems; | 54 | |
55 | 55 | // For our local list of names | |
56 | QMap<KProcess*, QString> threads; | 56 | QMap<QString, Interface*> interfaceNames; |
57 | QStringList profiles; | 57 | |
58 | 58 | QMap<Module*, QLibrary*> libraries; | |
59 | bool advancedUserMode; | 59 | QMap<Interface*, QListViewItem*> items; |
60 | QString scheme; | 60 | QMap<QListViewItem*, Interface*> interfaceItems; |
61 | #ifndef QWS | 61 | |
62 | KLibLoader *loader; | 62 | QMap<KProcess*, QString> threads; |
63 | #endif | 63 | QStringList profiles; |
64 | }; | 64 | |
65 | 65 | bool advancedUserMode; | |
66 | #endif // MAINWINOWIMP_H | 66 | QString scheme; |
67 | 67 | #ifndef QWS | |
68 | KLibLoader *loader; | ||
69 | #endif | ||
70 | }; | ||
71 | |||
72 | #endif // MAINWINOWIMP_H | ||
73 | |||