From 41bfcb06c9c0ff97ab69f323e96117b46529828b 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: Sun, 15 Sep 2019 20:05:18 +0800 Subject: qrtclient as submodule instead while librtclient has become qrtclient's submodule --- worker.cxx | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 worker.cxx (limited to 'worker.cxx') diff --git a/worker.cxx b/worker.cxx deleted file mode 100644 index f01ca50..0000000 --- a/worker.cxx +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include "worker.hxx" - -Worker::Worker() -{ - rtclient_init("https://darapsa.co.id/rt"); -} - -void Worker::logIn(QString const& name, QString const& password) -{ - rtclient_login(name.toLatin1().constData(), password.toLatin1().constData()); - struct rt_user* user = NULL; - rtclient_user_show(&user, name.toLatin1().constData()); - if (user) emit logged(user); -} - -void Worker::search(QString const& owner) -{ - QString query{"Owner='"}; - query.append(owner); - query.append("'"); - rt_ticketlist* taskList = NULL; - rtclient_ticket_search(&taskList, query.toLatin1().constData()); - if (taskList) emit foundTasks(taskList); -} - -Worker::~Worker() -{ - rtclient_cleanup(); -} -- cgit v1.2.3