summaryrefslogtreecommitdiffstats
path: root/workspace/LogReceiver/logreceiver.h
diff options
context:
space:
mode:
authorNiklas2011-07-14 16:59:40 +0200
committerNiklas2011-07-14 16:59:40 +0200
commit635d6f901892cb7df028eb41f3d727e569a3af7e (patch)
tree1aa43facc6fc4eee386013556b663eb9e53d2035 /workspace/LogReceiver/logreceiver.h
parentmultiple clients possible. inserted something into _send_message (diff)
downloadfbgui-635d6f901892cb7df028eb41f3d727e569a3af7e.tar.gz
fbgui-635d6f901892cb7df028eb41f3d727e569a3af7e.tar.xz
fbgui-635d6f901892cb7df028eb41f3d727e569a3af7e.zip
customdhcpcd is now compiling and can communicate with the LogReceiver
started to implement the QProcess handling (parallel calls of dhcpcd out of fbgui/LogReceiver)
Diffstat (limited to 'workspace/LogReceiver/logreceiver.h')
-rw-r--r--workspace/LogReceiver/logreceiver.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/workspace/LogReceiver/logreceiver.h b/workspace/LogReceiver/logreceiver.h
index f73a56a..0c9df48 100644
--- a/workspace/LogReceiver/logreceiver.h
+++ b/workspace/LogReceiver/logreceiver.h
@@ -20,15 +20,22 @@ public:
private slots:
void handleNewConnection();
void handleNewInput();
+ void handleProcessFinished(int exitCode, QProcess::ExitStatus exitStatus);
+ void handleProcessStarted();
private:
Ui::LogReceiverClass ui;
QLabel *statusLabel;
QPushButton *quitButton;
QLocalServer *server;
- QStringList fortunes;
quint16 blockSize;
QMap<QLocalSocket *, QLocalSocket *> clients;
+ QMap<Q_PID, QProcess * > clientProcesses;
+ QString pathToDhcpcdExe;
+ QStringList dhcpcdArguments;
+
+ void runDHCPCD(QList<QNetworkInterface> &interfaces);
+ void getListOfNetworkInterfaces();
};
#endif // LOGRECEIVER_H