diff options
author | Niklas | 2011-08-18 14:50:37 +0200 |
---|---|---|
committer | Niklas | 2011-08-18 14:50:37 +0200 |
commit | 66bd4a4f1cc9424b3adbd14ca38a9bb6509431df (patch) | |
tree | 6fb36b5c0fca3da61586749b4e5e47bc860f3b5c /workspace/LogReceiver/logreceiver.h | |
parent | new function for checkInternetConnection, check with sessions for each config... (diff) | |
download | fbgui-66bd4a4f1cc9424b3adbd14ca38a9bb6509431df.tar.gz fbgui-66bd4a4f1cc9424b3adbd14ca38a9bb6509431df.tar.xz fbgui-66bd4a4f1cc9424b3adbd14ca38a9bb6509431df.zip |
added internet test. each configured interface will be tested if it is possible to ping the server.
Diffstat (limited to 'workspace/LogReceiver/logreceiver.h')
-rw-r--r-- | workspace/LogReceiver/logreceiver.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/workspace/LogReceiver/logreceiver.h b/workspace/LogReceiver/logreceiver.h index fb65d58..06a1f3e 100644 --- a/workspace/LogReceiver/logreceiver.h +++ b/workspace/LogReceiver/logreceiver.h @@ -4,6 +4,10 @@ #include <qprocess.h> #include <qnetworkinterface.h> #include <qnetworkconfigmanager.h> +#include <qnetworkaccessmanager.h> +#include <qnetworksession.h> +#include <qnetworkreply.h> +#include <qsslerror.h> class QLocalServer; class QLocalSocket; @@ -39,17 +43,19 @@ private: QMap<int, QNetworkInterface > interfacesMap; QMap<QString, int> indexToIfaceNameMap; QMap<QLocalSocket *, QLocalSocket *> clients; - QMap<Q_PID, QProcess * > clientProcesses; + QMap<QProcess*, QString> clientProcessToIfNameMap; QString pathToDhcpcdExe; QStringList dhcpcdArguments; - QNetworkConfigurationManager manager; + QNetworkConfigurationManager configurationManager; + QNetworkAccessManager *accessManager; void runDHCPCD(QList<QNetworkInterface> &interfaces); void runDHCPCD(QString interface); void checkCarrierState(QList<QNetworkInterface> &interfaces); bool checkCarrierState(QString interface); - void checkInternetConnection(/*QList<QNetworkInterface> &interfaces*/); + void checkInternetConnection(QString ifName); + void checkInternetConnection(QList<QNetworkInterface> &interfaces); QList<QNetworkInterface> getListOfNetworkInterfaces(); bool checkBlackList(QString i); |