summaryrefslogtreecommitdiff
path: root/qrtclient/client.hxx
blob: e32e83b06a17b86e8bc92eb995527ee8edc53af6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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