Started implementing various things.
[aesalon.git] / include / visualizer / communication / LogSource.h
blobe29b94b8ebffed3821e90c7a5fe34c63ba67fa73
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/LogSource.h
12 #ifndef AesalonVisualizer_Communication_LogSource_H
13 #define AesalonVisualizer_Communication_LogSource_H
15 #include <QString>
16 #include <QFile>
18 #include "DataSource.h"
20 namespace Visualizer {
21 namespace Communication {
23 class LogSource : public DataSource {
24 private:
25 QFile *m_file;
26 QByteArray m_data;
27 Common::VPacket m_packet;
28 public:
29 LogSource(const QString &filename);
30 virtual ~LogSource();
32 virtual bool open();
34 virtual Common::VPacket *nextPacket();
37 } // namespace Communication
38 } // namespace Visualizer
40 #endif