diff options
Diffstat (limited to 'protocol.h')
-rw-r--r-- | protocol.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/protocol.h b/protocol.h deleted file mode 100644 index aee6683..0000000 --- a/protocol.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef PROTOCOL_H -#define PROTOCOL_H - -#include <QObject> -#include <QStringList> - -class Protocol : public QObject -{ -Q_OBJECT - -public: - Protocol(QObject *parent = 0); - virtual ~Protocol(); - - void write(const QByteArray &); - QString sendToClient(const QStringList &); - -signals: - void commandReceived(const QStringList &); - -private: - void reset(); - enum State { Start, Field }; - State mState; - QStringList mFields; - QString mField; -}; - -#endif // PROTOCOL_H |