Started implementing various things.
[aesalon.git] / include / visualizer / communication / NetworkSource.h
blob0060f2f28b70588abeacada7a4ab43190d2d0f5b
1 /**
2 Aesalon, a tool to visualize a program's behaviour at run-time.
3 Copyright (C) 2010, Aesalon Development Team.
5 Aesalon is distributed under the terms of the GNU GPLv3. For more
6 licensing information, see the file LICENSE included with the distribution.
8 @file include/visualizer/communication/NetworkSource.h
12 #ifndef AesalonVisualizer_Communication_NetworkSource_H
13 #define AesalonVisualizer_Communication_NetworkSource_H
15 #include <QString>
16 #include <QTcpSocket>
18 #include "DataSource.h"
20 namespace Visualizer {
21 namespace Communication {
23 class NetworkSource : public DataSource {
24 private:
25 QTcpSocket *m_socket;
26 public:
27 NetworkSource(const QString &hostname, quint16 port);
28 virtual ~NetworkSource();
30 virtual bool open();
32 virtual Common::VPacket *nextPacket();
35 } // namespace Communication
36 } // namespace Visualizer
38 #endif