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