summaryrefslogtreecommitdiff
path: root/controller.hxx
blob: 8eb4017605e3e30b43430a48aff0bd4d0ecdf427 (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
#ifndef CONTROLLER_HXX
#define CONTROLLER_HXX

#include <QThread>
#include <qrtclient/ticket.hxx>

struct rtclient_user;

class Controller : public QObject
{
	Q_OBJECT

	public:
		Controller(QObject* parent = nullptr);
		~Controller();

	signals:
		void checked(rtclient_user* user);
		void checked(QString const& name);

	private slots:
		void check(rtclient_user* user);

	private:
		QThread thread;
		RTClient::TicketList* taskList;
};

#endif // CONTROLLER_HXX