summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/mainwindowimp.h
Side-by-side diff
Diffstat (limited to 'noncore/settings/networksettings/mainwindowimp.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/mainwindowimp.h140
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 @@
-#ifndef MAINWINOWIMP_H
-#define MAINWINOWIMP_H
-
-#include "mainwindow.h"
-#include <qmap.h>
-#include <qstringlist.h>
-
-class Module;
-class Interface;
-class QLibrary;
-class KProcess;
-#ifdef QWS
-class QLibrary;
-#else
-class KLibrary;
-class KLibLoader;
-#define QLibrary KLibrary
-#endif
-
-
-class MainWindowImp : public MainWindow {
- Q_OBJECT
-
-public:
- MainWindowImp(QWidget *parent=0, const char *name=0);
- ~MainWindowImp();
-
-private slots:
- void getAllInterfaces();
-
- void addClicked();
- void removeClicked();
- void configureClicked();
- void informationClicked();
-
- void addProfile();
- void removeProfile();
- void changeProfile();
-
- void updateInterface(Interface *i);
- void newProfileChanged(const QString& newText);
-
-private:
- void loadModules(const QString &path);
-
- Module* loadPlugin(const QString &pluginFileName,
- const QString &resolveString = "create_plugin");
-
- // For our local list of names
- QMap<QString, Interface*> interfaceNames;
-
- QMap<Module*, QLibrary*> libraries;
- QMap<Interface*, QListViewItem*> items;
- QMap<QListViewItem*, Interface*> interfaceItems;
-
- QMap<KProcess*, QString> threads;
- QStringList profiles;
-
- bool advancedUserMode;
- QString scheme;
-#ifndef QWS
- KLibLoader *loader;
-#endif
-};
-
-#endif // MAINWINOWIMP_H
-
+#ifndef MAINWINOWIMP_H
+#define MAINWINOWIMP_H
+
+#include "mainwindow.h"
+#include <qmap.h>
+#include <qstringlist.h>
+
+class Module;
+class Interface;
+class QLibrary;
+class KProcess;
+class QCopChannel;
+#ifdef QWS
+class QLibrary;
+#else
+class KLibrary;
+class KLibLoader;
+#define QLibrary KLibrary
+#endif
+
+
+class MainWindowImp : public MainWindow {
+ Q_OBJECT
+
+public:
+ MainWindowImp(QWidget *parent=0, const char *name=0);
+ ~MainWindowImp();
+
+ QCopChannel *channel;
+
+private slots:
+ void getAllInterfaces();
+
+ void addClicked();
+ void removeClicked();
+ void configureClicked();
+ void informationClicked();
+
+ void addProfile();
+ void removeProfile();
+ void changeProfile();
+
+ void updateInterface(Interface *i);
+ void newProfileChanged(const QString& newText);
+
+ void receive (const QCString &, const QByteArray &);
+
+private:
+ void makeChannel();
+ void loadModules(const QString &path);
+
+ Module* loadPlugin(const QString &pluginFileName,
+ const QString &resolveString = "create_plugin");
+
+ // For our local list of names
+ QMap<QString, Interface*> interfaceNames;
+
+ QMap<Module*, QLibrary*> libraries;
+ QMap<Interface*, QListViewItem*> items;
+ QMap<QListViewItem*, Interface*> interfaceItems;
+
+ QMap<KProcess*, QString> threads;
+ QStringList profiles;
+
+ bool advancedUserMode;
+ QString scheme;
+#ifndef QWS
+ KLibLoader *loader;
+#endif
+};
+
+#endif // MAINWINOWIMP_H
+