summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/mainwindow/mainwindowimp.h
authoralwin <alwin>2005-03-07 17:43:40 (UTC)
committer alwin <alwin>2005-03-07 17:43:40 (UTC)
commitb9b5ec22a5969c57a2e2b940faf42ae6f9fd74d2 (patch) (side-by-side diff)
tree4f93456e3f1d4bb9334bccf0e97c04c51d7b2133 /noncore/settings/networksettings/mainwindow/mainwindowimp.h
parent5ab00b78b199b1a03d3f27faa8b1dcffd9a86ff7 (diff)
downloadopie-b9b5ec22a5969c57a2e2b940faf42ae6f9fd74d2.zip
opie-b9b5ec22a5969c57a2e2b940faf42ae6f9fd74d2.tar.gz
opie-b9b5ec22a5969c57a2e2b940faf42ae6f9fd74d2.tar.bz2
let users set hostname via dialog. the same name will set as
IRDA name so user can give their personal device a personal name. ;) ToDO: fixup init scripts in OE so hostname will set on startup into IRDA name
Diffstat (limited to 'noncore/settings/networksettings/mainwindow/mainwindowimp.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/mainwindow/mainwindowimp.h13
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 @@
#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
+namespace Opie {
+namespace Core {
+ class OProcess;
+}
+}
class MainWindowImp : public MainWindow {
Q_OBJECT
public:
static QString appName() { return QString::fromLatin1("networksettings"); }
MainWindowImp(QWidget *parent=0, const char *name=0, WFlags fl = 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 &);
+protected slots:
+ virtual void setHostname();
+ virtual void slotHostname(Opie::Core::OProcess *proc, char *buffer, int buflen);
+
private:
void makeChannel();
void loadModules(const QString &path);
+ void initHostname();
Module* loadPlugin(const QString &pluginFileName,
- const QString &resolveString = "create_plugin");
+ 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;
QStringList m_handledIfaces;
QMap<KProcess*, QString> threads;
QStringList profiles;
bool advancedUserMode;
QString scheme;
+ QString _procTemp;
#ifndef QWS
KLibLoader *loader;
#endif
};
#endif // MAINWINOWIMP_H