api.h
author insilmaril
Wed Sep 06 12:47:06 2006 +0000 (2006-09-06)
changeset 379 a62478df8d46
parent 133 c7393c51640a
child 394 67cfa6e6b863
permissions -rw-r--r--
1.8.55 New history window and showtextwindow
insilmaril@105
     1
#ifndef API_H
insilmaril@105
     2
#define API_H
insilmaril@105
     3
insilmaril@133
     4
#include <qstringlist.h>
insilmaril@105
     5
insilmaril@105
     6
class API
insilmaril@105
     7
{
insilmaril@105
     8
public:
insilmaril@133
     9
	API();
insilmaril@133
    10
	void initCommand();
insilmaril@133
    11
	void parseCommand (const QString&);
insilmaril@133
    12
	QString command();
insilmaril@133
    13
	QStringList parameters();
insilmaril@133
    14
	QString errorDesc();
insilmaril@133
    15
	bool error();
insilmaril@133
    16
	void setError (const QString &);
insilmaril@377
    17
	bool checkParamCount (const int &);
insilmaril@377
    18
	bool checkParamIsInt (const int &);
insilmaril@133
    19
	int parInt (bool &,const uint&);
insilmaril@377
    20
	QString parString(bool &,const int &);
insilmaril@133
    21
private:
insilmaril@133
    22
	QString com;
insilmaril@133
    23
	QStringList paramList;
insilmaril@133
    24
	QString errorString;
insilmaril@133
    25
	bool noErr;
insilmaril@105
    26
};
insilmaril@105
    27
insilmaril@105
    28
#endif