diff -r fd7f08a85971 -r c7393c51640a api.h --- a/api.h Sat Jul 23 10:26:29 2005 +0000 +++ b/api.h Sat Jul 23 10:26:29 2005 +0000 @@ -1,13 +1,28 @@ #ifndef API_H #define API_H -#include +#include class API { public: - void parseCommand (const QString&, QString &, QString &); - void getString (const QString&, QString &); + API(); + void initCommand(); + void parseCommand (const QString&); + QString command(); + QStringList parameters(); + QString errorDesc(); + bool error(); + void setError (const QString &); + bool checkParamCount (const uint &); + bool checkParamIsInt (const uint &); + int parInt (bool &,const uint&); + QString parString(bool &,const uint &); +private: + QString com; + QStringList paramList; + QString errorString; + bool noErr; }; #endif