Networksettings API API Documentation

mainwindowimp.h

00001 #ifndef MAINWINOWIMP_H
00002 #define MAINWINOWIMP_H
00003 
00004 #include "mainwindow.h"
00005 #include <qmap.h>
00006 #include <qstringlist.h>
00007 
00008 class Module;
00009 class Interface;
00010 class QLibrary;
00011 class KProcess;
00012 class QCopChannel;
00013 #ifdef QWS
00014 class QLibrary;
00015 #else
00016 class KLibrary;
00017 class KLibLoader;
00018 #define QLibrary KLibrary
00019 #endif
00020 
00021 
00022 class MainWindowImp : public MainWindow {
00023   Q_OBJECT
00024 
00025 public:
00026   static QString appName() { return QString::fromLatin1("networksettings"); }
00027   MainWindowImp(QWidget *parent=0, const char *name=0, WFlags fl = 0);
00028   ~MainWindowImp();
00029 
00030   QCopChannel *channel;
00031 
00032 private slots:
00033   void getAllInterfaces();
00034 
00035   void addClicked();
00036   void removeClicked();
00037   void configureClicked();
00038   void informationClicked();
00039 
00040   void addProfile();
00041   void removeProfile();
00042   void changeProfile();
00043 
00044   void updateInterface(Interface *i);
00045   void newProfileChanged(const QString& newText);
00046 
00047   void receive (const QCString &, const QByteArray &);
00048 
00049 private:
00050   void makeChannel();
00051   void loadModules(const QString &path);
00052 
00053   Module* loadPlugin(const QString &pluginFileName,
00054              const QString &resolveString = "create_plugin");
00055 
00056   // For our local list of names
00057   QMap<QString, Interface*> interfaceNames;
00058 
00059   QMap<Module*, QLibrary*> libraries;
00060   QMap<Interface*, QListViewItem*> items;
00061   QMap<QListViewItem*, Interface*> interfaceItems;
00062   QStringList m_handledIfaces;
00063 
00064   QMap<KProcess*, QString> threads;
00065   QStringList profiles;
00066 
00067   bool advancedUserMode;
00068   QString scheme;
00069 #ifndef QWS
00070   KLibLoader *loader;
00071 #endif
00072 };
00073 
00074 #endif // MAINWINOWIMP_H
00075 
KDE Logo
This file is part of the documentation for OPIE Version 1.0.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:26:44 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001