summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/mainwindowimp.h
Unidiff
Diffstat (limited to 'noncore/net/networksetup/mainwindowimp.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/mainwindowimp.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/noncore/net/networksetup/mainwindowimp.h b/noncore/net/networksetup/mainwindowimp.h
new file mode 100644
index 0000000..95ec2a1
--- a/dev/null
+++ b/noncore/net/networksetup/mainwindowimp.h
@@ -0,0 +1,53 @@
1#ifndef MAINWINOWIMP_H
2#define MAINWINOWIMP_H
3
4#include "mainwindow.h"
5#include "module.h"
6#include "interface.h"
7#include "kprocess.h"
8#include <qmap.h>
9
10class QLibrary;
11
12class MainWindowImp : public MainWindow {
13 Q_OBJECT
14
15public:
16 MainWindowImp(QWidget *parent=0, const char *name=0);
17 ~MainWindowImp();
18
19private slots:
20 void addClicked();
21 void removeClicked();
22 void configureClicked();
23 void informationClicked();
24
25 void jobDone(KProcess *process);
26 void getInterfaceList();
27
28 void addProfile();
29 void removeProfile();
30
31 void updateInterface(Interface *i);
32
33private:
34 void loadModules(QString path);
35
36 Module* loadPlugin(QString pluginFileName,
37 QString resolveString = "create_plugin");
38
39 // For our local list of names
40 QMap<QString, Interface*> interfaceNames;
41
42 QMap<Module*, QLibrary*> libraries;
43 QMap<Interface*, Module*> modules;
44 QMap<Interface*, QListViewItem*> items;
45 QMap<QListViewItem*, Interface*> interfaceItems;
46
47 QMap<KProcess*, QString> threads;
48};
49
50#endif
51
52// mainwindowimp.h
53