api.h
changeset 432 f867269ab8a1
parent 431 c2ffbc9b832d
child 433 310f1d82cf89
     1.1 --- a/api.h	Sat Feb 24 12:32:53 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,39 +0,0 @@
     1.4 -#ifndef API_H
     1.5 -#define API_H
     1.6 -
     1.7 -#include <QColor>
     1.8 -#include <QStringList>
     1.9 -
    1.10 -enum ErrorLevel {NoError,Warning,Aborted};
    1.11 -
    1.12 -class API
    1.13 -{
    1.14 -public:
    1.15 -	API();
    1.16 -	void initCommand();
    1.17 -	void parseInput (const QString &input);
    1.18 -	QString command();
    1.19 -	QStringList parameters();
    1.20 -	int paramCount();
    1.21 -	QString errorMessage();
    1.22 -	QString errorDescription();
    1.23 -	ErrorLevel errorLevel();
    1.24 -	void setError (ErrorLevel level,const QString &description);
    1.25 -	void resetError();
    1.26 -	bool checkParamCount (QList <int> plist);
    1.27 -	bool checkParamCount (const int &index);
    1.28 -	bool checkParamIsInt (const int &index);
    1.29 -	int parInt (bool &,const uint &index);
    1.30 -	QString parString(bool &ok,const int &index);
    1.31 -	bool parBool (bool &ok, const int &index);
    1.32 -	QColor parColor (bool &ok, const int &index);
    1.33 -private:
    1.34 -	QString input;
    1.35 -	QString com;
    1.36 -	QStringList paramList;
    1.37 -	QString errMessage;
    1.38 -	QString errDescription;
    1.39 -	ErrorLevel errLevel;
    1.40 -};
    1.41 -
    1.42 -#endif