diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-21 07:56:19 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-21 07:56:19 +0800 |
commit | 66136b7dfa06a150089fdddd0705aef60aeada4a (patch) | |
tree | 9819c772d59762fc710275bdfed410cb60c1b883 /controller.hxx | |
parent | a0653a4b7d95ed0217e7bcb9176b3f950f21fef8 (diff) |
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.
Diffstat (limited to 'controller.hxx')
-rw-r--r-- | controller.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/controller.hxx b/controller.hxx index dcfdb7c..8eb4017 100644 --- a/controller.hxx +++ b/controller.hxx @@ -4,6 +4,8 @@ #include <QThread> #include <qrtclient/ticket.hxx> +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; |