--- /dev/null
+#ifndef __COMMANDPROCESSOR_H__
+#define __COMMANDPROCESSOR_H__
+
+#include <QObject>
+#include <QString>
+
+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__