Diffstat (limited to 'noncore/settings/networksettings/mainwindow/mainwindowimp.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/mainwindow/mainwindowimp.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/mainwindow/mainwindowimp.h b/noncore/settings/networksettings/mainwindow/mainwindowimp.h index f211d6e..da1bb8f 100644 --- a/noncore/settings/networksettings/mainwindow/mainwindowimp.h +++ b/noncore/settings/networksettings/mainwindow/mainwindowimp.h | |||
@@ -1,75 +1,86 @@ | |||
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 | class QCopChannel; | 12 | class QCopChannel; |
13 | #ifdef QWS | 13 | #ifdef QWS |
14 | class QLibrary; | 14 | class QLibrary; |
15 | #else | 15 | #else |
16 | class KLibrary; | 16 | class KLibrary; |
17 | class KLibLoader; | 17 | class KLibLoader; |
18 | #define QLibrary KLibrary | 18 | #define QLibrary KLibrary |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | namespace Opie { | ||
22 | namespace Core { | ||
23 | class OProcess; | ||
24 | } | ||
25 | } | ||
21 | 26 | ||
22 | class MainWindowImp : public MainWindow { | 27 | class MainWindowImp : public MainWindow { |
23 | Q_OBJECT | 28 | Q_OBJECT |
24 | 29 | ||
25 | public: | 30 | public: |
26 | static QString appName() { return QString::fromLatin1("networksettings"); } | 31 | static QString appName() { return QString::fromLatin1("networksettings"); } |
27 | MainWindowImp(QWidget *parent=0, const char *name=0, WFlags fl = 0); | 32 | MainWindowImp(QWidget *parent=0, const char *name=0, WFlags fl = 0); |
28 | ~MainWindowImp(); | 33 | ~MainWindowImp(); |
29 | 34 | ||
30 | QCopChannel *channel; | 35 | QCopChannel *channel; |
31 | 36 | ||
32 | private slots: | 37 | private slots: |
33 | void getAllInterfaces(); | 38 | void getAllInterfaces(); |
34 | 39 | ||
35 | void addClicked(); | 40 | void addClicked(); |
36 | void removeClicked(); | 41 | void removeClicked(); |
37 | void configureClicked(); | 42 | void configureClicked(); |
38 | void informationClicked(); | 43 | void informationClicked(); |
39 | 44 | ||
40 | void addProfile(); | 45 | void addProfile(); |
41 | void removeProfile(); | 46 | void removeProfile(); |
42 | void changeProfile(); | 47 | void changeProfile(); |
43 | 48 | ||
44 | void updateInterface(Interface *i); | 49 | void updateInterface(Interface *i); |
45 | void newProfileChanged(const QString& newText); | 50 | void newProfileChanged(const QString& newText); |
46 | 51 | ||
47 | void receive (const QCString &, const QByteArray &); | 52 | void receive (const QCString &, const QByteArray &); |
48 | 53 | ||
54 | protected slots: | ||
55 | virtual void setHostname(); | ||
56 | virtual void slotHostname(Opie::Core::OProcess *proc, char *buffer, int buflen); | ||
57 | |||
49 | private: | 58 | private: |
50 | void makeChannel(); | 59 | void makeChannel(); |
51 | void loadModules(const QString &path); | 60 | void loadModules(const QString &path); |
61 | void initHostname(); | ||
52 | 62 | ||
53 | Module* loadPlugin(const QString &pluginFileName, | 63 | Module* loadPlugin(const QString &pluginFileName, |
54 | const QString &resolveString = "create_plugin"); | 64 | const QString &resolveString = "create_plugin"); |
55 | 65 | ||
56 | // For our local list of names | 66 | // For our local list of names |
57 | QMap<QString, Interface*> interfaceNames; | 67 | QMap<QString, Interface*> interfaceNames; |
58 | 68 | ||
59 | QMap<Module*, QLibrary*> libraries; | 69 | QMap<Module*, QLibrary*> libraries; |
60 | QMap<Interface*, QListViewItem*> items; | 70 | QMap<Interface*, QListViewItem*> items; |
61 | QMap<QListViewItem*, Interface*> interfaceItems; | 71 | QMap<QListViewItem*, Interface*> interfaceItems; |
62 | QStringList m_handledIfaces; | 72 | QStringList m_handledIfaces; |
63 | 73 | ||
64 | QMap<KProcess*, QString> threads; | 74 | QMap<KProcess*, QString> threads; |
65 | QStringList profiles; | 75 | QStringList profiles; |
66 | 76 | ||
67 | bool advancedUserMode; | 77 | bool advancedUserMode; |
68 | QString scheme; | 78 | QString scheme; |
79 | QString _procTemp; | ||
69 | #ifndef QWS | 80 | #ifndef QWS |
70 | KLibLoader *loader; | 81 | KLibLoader *loader; |
71 | #endif | 82 | #endif |
72 | }; | 83 | }; |
73 | 84 | ||
74 | #endif // MAINWINOWIMP_H | 85 | #endif // MAINWINOWIMP_H |
75 | 86 | ||