summaryrefslogtreecommitdiff
path: root/worker.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-15 20:05:18 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-15 20:05:18 +0800
commit41bfcb06c9c0ff97ab69f323e96117b46529828b (patch)
treee5138b70ea8b481f1409b2831d6177f1ebc0ed55 /worker.cxx
parent45515cb4f2831ed1fb7081f8f55d7aacb2b3ab62 (diff)
qrtclient as submodule instead
while librtclient has become qrtclient's submodule
Diffstat (limited to 'worker.cxx')
-rw-r--r--worker.cxx30
1 files changed, 0 insertions, 30 deletions
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 <rtclient/rtclient.h>
-#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();
-}