summaryrefslogtreecommitdiffstats
path: root/workspace/LogReceiver/logreceiver.h
diff options
context:
space:
mode:
authorNiklas2011-08-16 14:32:01 +0200
committerNiklas2011-08-16 14:32:01 +0200
commit3069686075559d7bfce594c40e919a0b1683a064 (patch)
tree21e81b5ace87f013a4c3efb140bb22d82f9fabf6 /workspace/LogReceiver/logreceiver.h
parentadded some log statements to the dhcpcd client. But unfortunately it seems th... (diff)
downloadfbgui-3069686075559d7bfce594c40e919a0b1683a064.tar.gz
fbgui-3069686075559d7bfce594c40e919a0b1683a064.tar.xz
fbgui-3069686075559d7bfce594c40e919a0b1683a064.zip
new function for checkInternetConnection, check with sessions for each config and test if you can get a valid response with a qhostInfo
Diffstat (limited to 'workspace/LogReceiver/logreceiver.h')
-rw-r--r--workspace/LogReceiver/logreceiver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/workspace/LogReceiver/logreceiver.h b/workspace/LogReceiver/logreceiver.h
index 561b406..fb65d58 100644
--- a/workspace/LogReceiver/logreceiver.h
+++ b/workspace/LogReceiver/logreceiver.h
@@ -3,6 +3,7 @@
#include <qprocess.h>
#include <qnetworkinterface.h>
+#include <qnetworkconfigmanager.h>
class QLocalServer;
class QLocalSocket;
@@ -41,12 +42,14 @@ private:
QMap<Q_PID, QProcess * > clientProcesses;
QString pathToDhcpcdExe;
QStringList dhcpcdArguments;
+ QNetworkConfigurationManager manager;
void runDHCPCD(QList<QNetworkInterface> &interfaces);
void runDHCPCD(QString interface);
void checkCarrierState(QList<QNetworkInterface> &interfaces);
bool checkCarrierState(QString interface);
+ void checkInternetConnection(/*QList<QNetworkInterface> &interfaces*/);
QList<QNetworkInterface> getListOfNetworkInterfaces();
bool checkBlackList(QString i);