api.h
author insilmaril
Tue, 03 Jan 2006 09:44:41 +0000
changeset 172 fbb8c8560551
parent 133 c7393c51640a
child 377 5391ab620c95
permissions -rw-r--r--
1.7.6 New features for floatimages and fixes
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@133
    17
	bool checkParamCount (const uint &);
insilmaril@133
    18
	bool checkParamIsInt (const uint &);
insilmaril@133
    19
	int parInt (bool &,const uint&);
insilmaril@133
    20
	QString parString(bool &,const uint &);
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