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

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

struct rtclient_ticket_history_list;

class Controller : public QObject
{
	Q_OBJECT

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

	signals:
		void checked(QString const& name);
		void gotTicketHistory(rtclient_ticket_history_list* list);

	private slots:
		void setTicketSubject(QString const& subject);

	private:
		QThread thread;
		RTClient::TicketList* ticketList;
		QString m_ticketSubject;
};

#endif // CONTROLLER_HXX