# HG changeset patch
# User insilmaril
# Date 1122114389 0
# Node ID c7393c51640a637124e6bcee94f5df76f9ccfe76
# Parent  fd7f08a85971f4778e7583138a87e390ac2e0568
updated api.*

diff -r fd7f08a85971 -r c7393c51640a api.h
--- a/api.h	Sat Jul 23 10:26:29 2005 +0000
+++ b/api.h	Sat Jul 23 10:26:29 2005 +0000
@@ -1,13 +1,28 @@
 #ifndef API_H
 #define API_H
 
-#include <qstring.h>
+#include <qstringlist.h>
 
 class API
 {
 public:
-	void parseCommand (const QString&, QString &, QString &);
-	void getString (const QString&, QString &);
+	API();
+	void initCommand();
+	void parseCommand (const QString&);
+	QString command();
+	QStringList parameters();
+	QString errorDesc();
+	bool error();
+	void setError (const QString &);
+	bool checkParamCount (const uint &);
+	bool checkParamIsInt (const uint &);
+	int parInt (bool &,const uint&);
+	QString parString(bool &,const uint &);
+private:
+	QString com;
+	QStringList paramList;
+	QString errorString;
+	bool noErr;
 };
 
 #endif