api.h
changeset 133 c7393c51640a
parent 105 67a91e28b30f
child 377 5391ab620c95
     1.1 --- a/api.h	Sat Jul 23 10:26:29 2005 +0000
     1.2 +++ b/api.h	Sat Jul 23 10:26:29 2005 +0000
     1.3 @@ -1,13 +1,28 @@
     1.4  #ifndef API_H
     1.5  #define API_H
     1.6  
     1.7 -#include <qstring.h>
     1.8 +#include <qstringlist.h>
     1.9  
    1.10  class API
    1.11  {
    1.12  public:
    1.13 -	void parseCommand (const QString&, QString &, QString &);
    1.14 -	void getString (const QString&, QString &);
    1.15 +	API();
    1.16 +	void initCommand();
    1.17 +	void parseCommand (const QString&);
    1.18 +	QString command();
    1.19 +	QStringList parameters();
    1.20 +	QString errorDesc();
    1.21 +	bool error();
    1.22 +	void setError (const QString &);
    1.23 +	bool checkParamCount (const uint &);
    1.24 +	bool checkParamIsInt (const uint &);
    1.25 +	int parInt (bool &,const uint&);
    1.26 +	QString parString(bool &,const uint &);
    1.27 +private:
    1.28 +	QString com;
    1.29 +	QStringList paramList;
    1.30 +	QString errorString;
    1.31 +	bool noErr;
    1.32  };
    1.33  
    1.34  #endif