diff -r 67a91e28b30f -r 6c199971ddb5 api.h --- a/api.h Mon Jun 06 20:27:42 2005 +0000 +++ b/api.h Sat Jul 23 10:26:30 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