api.h
author insilmaril
Fri, 17 Feb 2006 09:21:48 +0000
changeset 210 0cf4c12cfe1c
parent 133 c7393c51640a
child 377 5391ab620c95
permissions -rw-r--r--
added defautl OO presentation
     1 #ifndef API_H
     2 #define API_H
     3 
     4 #include <qstringlist.h>
     5 
     6 class API
     7 {
     8 public:
     9 	API();
    10 	void initCommand();
    11 	void parseCommand (const QString&);
    12 	QString command();
    13 	QStringList parameters();
    14 	QString errorDesc();
    15 	bool error();
    16 	void setError (const QString &);
    17 	bool checkParamCount (const uint &);
    18 	bool checkParamIsInt (const uint &);
    19 	int parInt (bool &,const uint&);
    20 	QString parString(bool &,const uint &);
    21 private:
    22 	QString com;
    23 	QStringList paramList;
    24 	QString errorString;
    25 	bool noErr;
    26 };
    27 
    28 #endif