new protocol testing code

This commit is contained in:
Max-Wilhelm Bruker 2009-10-26 02:56:27 +01:00
parent a8c45fda1a
commit dbd3af8265
8 changed files with 364 additions and 0 deletions

33
common/widget.h Normal file
View file

@ -0,0 +1,33 @@
#ifndef WIDGET_H
#define WIDGET_H
#include <QMainWindow>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
class QTextEdit;
class QPushButton;
class QBuffer;
class Command;
class Widget : public QMainWindow {
Q_OBJECT
private:
QTextEdit *edit1;
QPushButton *start;
QBuffer *buffer;
QXmlStreamReader xmlReader;
QXmlStreamWriter xmlWriter;
Command *currentCommand;
bool readCurrentCommand();
void parseBuffer();
void parseXml();
private slots:
void startClicked();
void updateEdit();
public:
Widget();
};
#endif