api.h
author insilmaril
Fri Sep 08 12:30:09 2006 +0000 (2006-09-08)
changeset 381 c79df732d095
parent 133 c7393c51640a
child 394 67cfa6e6b863
permissions -rw-r--r--
rows in history window can be selected to undo/redo actions
     1 #ifndef API_H
     2 #define API_H
     3 
     4 #include <qstringlist.h>
     5 
     6 class API
     7 {
     8 public:
     9 	API();
    10 	void initCommand();
    11 	void parseCommand (const QString&);
    12 	QString command();
    13 	QStringList parameters();
    14 	QString errorDesc();
    15 	bool error();
    16 	void setError (const QString &);
    17 	bool checkParamCount (const int &);
    18 	bool checkParamIsInt (const int &);
    19 	int parInt (bool &,const uint&);
    20 	QString parString(bool &,const int &);
    21 private:
    22 	QString com;
    23 	QStringList paramList;
    24 	QString errorString;
    25 	bool noErr;
    26 };
    27 
    28 #endif