summaryrefslogtreecommitdiffstats
path: root/workspace/LogReceiver/logreceiver.h
diff options
context:
space:
mode:
authorNiklas2011-07-06 16:56:16 +0200
committerNiklas2011-07-06 16:56:16 +0200
commite71f5ac6630686f3bd92817b401ed8d88e121f6d (patch)
tree13f6a33a630f61aa0b259c0b302b8ae203058bc0 /workspace/LogReceiver/logreceiver.h
parentnew funtions for the networkDiscovery class. (diff)
downloadfbgui-e71f5ac6630686f3bd92817b401ed8d88e121f6d.tar.gz
fbgui-e71f5ac6630686f3bd92817b401ed8d88e121f6d.tar.xz
fbgui-e71f5ac6630686f3bd92817b401ed8d88e121f6d.zip
added the two tryout with a qt LogReceiver and a c code client
Diffstat (limited to 'workspace/LogReceiver/logreceiver.h')
-rw-r--r--workspace/LogReceiver/logreceiver.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/workspace/LogReceiver/logreceiver.h b/workspace/LogReceiver/logreceiver.h
new file mode 100644
index 0000000..6b94eab
--- /dev/null
+++ b/workspace/LogReceiver/logreceiver.h
@@ -0,0 +1,34 @@
+#ifndef LOGRECEIVER_H
+#define LOGRECEIVER_H
+
+#include <QDialog>
+#include <QtGui/QWidget>
+#include "ui_logreceiver.h"
+
+class QLabel;
+class QPushButton;
+class QLocalServer;
+class QLocalSocket;
+
+class LogReceiver: public QDialog {
+Q_OBJECT
+
+public:
+ LogReceiver(QWidget *parent = 0);
+ ~LogReceiver();
+
+private slots:
+ void handleNewConnection();
+ void handleNewInput();
+
+private:
+ Ui::LogReceiverClass ui;
+ QLabel *statusLabel;
+ QPushButton *quitButton;
+ QLocalServer *server;
+ QStringList fortunes;
+ QLocalSocket *clientSocket;
+ quint16 blockSize;
+};
+
+#endif // LOGRECEIVER_H