From 66136b7dfa06a150089fdddd0705aef60aeada4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sat, 21 Sep 2019 07:56:19 +0800 Subject: User show slot result gets checked first by controller and only if the result is not null, implying the login is successful, then it will do a ticket search based on the logged in user's name. --- controller.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'controller.hxx') diff --git a/controller.hxx b/controller.hxx index dcfdb7c..8eb4017 100644 --- a/controller.hxx +++ b/controller.hxx @@ -4,6 +4,8 @@ #include #include +struct rtclient_user; + class Controller : public QObject { Q_OBJECT @@ -12,6 +14,13 @@ class Controller : public QObject 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; -- cgit v1.2.3