summaryrefslogtreecommitdiffstats
path: root/workspace/LogReceiver/logreceiver.h
blob: f73a56aa6ae8ce3baa10a5949352f45cd4cf0781 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
	quint16 blockSize;
	QMap<QLocalSocket *, QLocalSocket *> clients;
};

#endif // LOGRECEIVER_H