summaryrefslogtreecommitdiffstats
path: root/workspace/LogReceiver/logreceiver.h
diff options
context:
space:
mode:
authorNiklas2011-08-01 12:31:12 +0200
committerNiklas2011-08-01 12:31:12 +0200
commit2a04cb4147eb9c583fae8d0b3120a74eaf1af68a (patch)
tree90329cb02eb9435e6f1410cf251677eaf089197c /workspace/LogReceiver/logreceiver.h
parentbetter version of the logwriter.c and started to devide gui and logic (diff)
downloadfbgui-2a04cb4147eb9c583fae8d0b3120a74eaf1af68a.tar.gz
fbgui-2a04cb4147eb9c583fae8d0b3120a74eaf1af68a.tar.xz
fbgui-2a04cb4147eb9c583fae8d0b3120a74eaf1af68a.zip
seperation of logic and gui completed.
Diffstat (limited to 'workspace/LogReceiver/logreceiver.h')
-rw-r--r--workspace/LogReceiver/logreceiver.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/workspace/LogReceiver/logreceiver.h b/workspace/LogReceiver/logreceiver.h
index e4592c0..26a3934 100644
--- a/workspace/LogReceiver/logreceiver.h
+++ b/workspace/LogReceiver/logreceiver.h
@@ -4,8 +4,6 @@
#include <qprocess.h>
#include <qnetworkinterface.h>
-class QLabel;
-class QPushButton;
class QLocalServer;
class QLocalSocket;
@@ -16,6 +14,8 @@ public:
LogReceiver();
~LogReceiver();
+ void initAndRun();
+
private slots:
void handleNewConnection();
void handleNewInput();
@@ -23,6 +23,9 @@ private slots:
void handleProcessFinished(int exitCode, QProcess::ExitStatus exitStatus);
void handleProcessStarted();
+signals:
+ void addNewInterface(QString ifName, int index);
+ void changeProgressBarValue(int index, int newValue);
private:
QLocalServer *server;
@@ -34,6 +37,7 @@ private:
QString pathToDhcpcdExe;
QStringList dhcpcdArguments;
+
void runDHCPCD(QList<QNetworkInterface> &interfaces);
void runDHCPCD(QString interface);
void checkCarrierState(QList<QNetworkInterface> &interfaces);