summaryrefslogtreecommitdiff
path: root/qrtclient/client.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'qrtclient/client.hxx')
-rw-r--r--qrtclient/client.hxx30
1 files changed, 30 insertions, 0 deletions
diff --git a/qrtclient/client.hxx b/qrtclient/client.hxx
new file mode 100644
index 0000000..e32e83b
--- /dev/null
+++ b/qrtclient/client.hxx
@@ -0,0 +1,30 @@
+#ifndef QRTCLIENT_HXX
+#define QRTCLIENT_HXX
+
+#include <QObject>
+
+struct rt_user;
+struct rt_ticketlist;
+
+namespace RTClient {
+
+ class Client : public QObject
+ {
+ Q_OBJECT
+
+ public:
+ Client(QString const& url);
+ ~Client();
+
+ public slots:
+ void logIn(QString const& name, QString const& password);
+ void search(QString const& owner);
+
+ signals:
+ void logged(struct rt_user* user);
+ void foundTasks(struct rt_ticketlist* list);
+ };
+
+}
+
+#endif // QRTCLIENT_HXX