Added FreeObserver() and all assorted code that goes with it.
[aesalon.git] / src / gui / ActiveSessionSocket.h
blob0f7c8865221c5ac8c29b29f4ab4116ae7bbca7ab
1 #ifndef AESALON_GUI_ACTIVE_SESSION_SOCKET_H
2 #define AESALON_GUI_ACTIVE_SESSION_SOCKET_H
4 #include <QObject>
5 #include <QTcpSocket>
7 #include "platform/Memory.h"
8 #include "platform/Event.h"
10 namespace Aesalon {
11 namespace GUI {
13 class ActiveSessionSocket : public QObject { Q_OBJECT
14 private:
15 Platform::Memory *memory;
16 QTcpSocket *socket;
17 public:
18 ActiveSessionSocket(QString host, int port, Platform::Memory *memory);
19 virtual ~ActiveSessionSocket();
20 public slots:
21 void handle_data();
22 void reemit_connected() { emit connected(); }
23 void reemit_disconnected() { emit disconnected(); }
24 signals:
25 void connected();
26 void disconnected();
27 void event_received(Platform::Event *event);
30 } // namespace GUI
31 } // namespace Aesalon
33 #endif