api.h
author insilmaril
Mon Jul 31 12:13:53 2006 +0000 (2006-07-31)
changeset 361 a784c102bbed
parent 105 67a91e28b30f
child 377 5391ab620c95
permissions -rw-r--r--
added vym2kdebookmarks.xsl
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