network.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef NETWORK_H
00021 #define NETWORK_H
00022
00023 #include <qstringlist.h>
00024 class QListBox;
00025 class QObject;
00026 class QWidget;
00027 struct NetworkInterface;
00028 class Config;
00029
00030 class Network {
00031 public:
00032 static void start(const QString& service=QString::null, const QString& password=QString::null);
00033 static void stop();
00034
00035 static QString settingsDir();
00036 static QString serviceName(const QString& service);
00037 static QString serviceType(const QString& service);
00038 static bool serviceNeedsPassword(const QString& service);
00039 static void connectChoiceChange(QObject* receiver, const char* slot);
00040 static QStringList choices(QListBox* = 0, const QString& dir=QString::null);
00041 static void writeProxySettings( Config &cfg );
00042
00043 static NetworkInterface* loadPlugin(const QString& type);
00044
00045 static int addStateWidgets(QWidget* parent);
00046
00047
00048 static void createServer(QObject* parent);
00049 static bool networkOnline();
00050 };
00051
00052 #endif
This file is part of the documentation for OPIE Version 1.5.5.