diff -r c2ffbc9b832d -r f867269ab8a1 api.h --- a/api.h Sat Feb 24 12:32:53 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -#ifndef API_H -#define API_H - -#include -#include - -enum ErrorLevel {NoError,Warning,Aborted}; - -class API -{ -public: - API(); - void initCommand(); - void parseInput (const QString &input); - QString command(); - QStringList parameters(); - int paramCount(); - QString errorMessage(); - QString errorDescription(); - ErrorLevel errorLevel(); - void setError (ErrorLevel level,const QString &description); - void resetError(); - bool checkParamCount (QList plist); - bool checkParamCount (const int &index); - bool checkParamIsInt (const int &index); - int parInt (bool &,const uint &index); - QString parString(bool &ok,const int &index); - bool parBool (bool &ok, const int &index); - QColor parColor (bool &ok, const int &index); -private: - QString input; - QString com; - QStringList paramList; - QString errMessage; - QString errDescription; - ErrorLevel errLevel; -}; - -#endif