X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcommandprocessor.h;fp=src%2Fcommandprocessor.h;h=4321a9f2eba0e4fa90f520b70dd9f8d9da156f57;hb=b8bab716d9302fbb04d97679ee499eac781f1b22;hp=0000000000000000000000000000000000000000;hpb=cdde036d71eb0ea9b450345bd297c8730591b26b;p=architektonas diff --git a/src/commandprocessor.h b/src/commandprocessor.h new file mode 100644 index 0000000..4321a9f --- /dev/null +++ b/src/commandprocessor.h @@ -0,0 +1,36 @@ +#ifndef __COMMANDPROCESSOR_H__ +#define __COMMANDPROCESSOR_H__ + +#include +#include + +class CommandProcessor: public QObject +{ + Q_OBJECT + + public: + CommandProcessor(); + ~CommandProcessor(); + QString Process(QString); + + signals: + void UpdateNeeded(void); + + private: + void Error(QString); + void Warning(QString); + void AddToResponse(QString, QString, QString); + void ClearWhitespace(QString &); + double GetDouble(QString &); + int GetInt(QString &); + QString GetString(QString &); + int GetUnits(QString &); + bool GetComma(QString &); + + private: + QString response; + bool parseError; + bool missingParam; +}; + +#endif // __COMMANDPROCESSOR_H__