summaryrefslogtreecommitdiffstats
path: root/workspace/LogReceiver/logreceiver.h
diff options
context:
space:
mode:
Diffstat (limited to 'workspace/LogReceiver/logreceiver.h')
-rw-r--r--workspace/LogReceiver/logreceiver.h32
1 files changed, 6 insertions, 26 deletions
diff --git a/workspace/LogReceiver/logreceiver.h b/workspace/LogReceiver/logreceiver.h
index 2dce00a..e4592c0 100644
--- a/workspace/LogReceiver/logreceiver.h
+++ b/workspace/LogReceiver/logreceiver.h
@@ -1,25 +1,19 @@
#ifndef LOGRECEIVER_H
#define LOGRECEIVER_H
-#include <QDialog>
-#include <QtGui/QWidget>
#include <qprocess.h>
#include <qnetworkinterface.h>
-#include <qprogressbar.h>
-#include <qboxlayout.h>
-#include <qgroupbox.h>
-#include "ui_logreceiver.h"
class QLabel;
class QPushButton;
class QLocalServer;
class QLocalSocket;
-class LogReceiver: public QDialog {
+class LogReceiver: public QObject {
Q_OBJECT
public:
- LogReceiver(QWidget *parent = 0);
+ LogReceiver();
~LogReceiver();
private slots:
@@ -28,12 +22,9 @@ private slots:
void handleNewInputLine(QString data);
void handleProcessFinished(int exitCode, QProcess::ExitStatus exitStatus);
void handleProcessStarted();
- void handleProgress(int iFaceIndex, int newValue);
+
private:
- Ui::LogReceiverClass ui;
- QLabel *statusLabel;
- QPushButton *quitButton;
QLocalServer *server;
quint16 blockSize;
QMap<int, QNetworkInterface > interfacesMap;
@@ -43,24 +34,13 @@ private:
QString pathToDhcpcdExe;
QStringList dhcpcdArguments;
-
- /*gui elements*/
- QMap<int , QProgressBar *> progressBars;
- QLabel *ndStatusLabel;
- QGroupBox *interfaceGroupBox;
- QVBoxLayout *mainLayout;
- QVBoxLayout *interfaceGroupBoxLayout;
- /**/
-
void runDHCPCD(QList<QNetworkInterface> &interfaces);
void runDHCPCD(QString interface);
+ void checkCarrierState(QList<QNetworkInterface> &interfaces);
+ bool checkCarrierState(QString interface);
QList<QNetworkInterface> getListOfNetworkInterfaces();
-
- /*gui functions*/
- void buildGui();
- void createInterfaceGroupBox();
- void addInterfacesToGroupBox(QMap<int, QNetworkInterface > &interfaces);
bool checkBlackList(QString i);
+
};
#endif // LOGRECEIVER_H