From dc69eb34ce6cdc8e3b03c174786e111e196449a4 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, 14 Sep 2019 08:36:26 +0800 Subject: Update librtclient function names --- librtclient | 2 +- tasklist.cxx | 2 +- user.cxx | 2 +- worker.cxx | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/librtclient b/librtclient index 4ccd288..f36fd45 160000 --- a/librtclient +++ b/librtclient @@ -1 +1 @@ -Subproject commit 4ccd288909c6a9f1fe47ae72744ffba6f0ef410e +Subproject commit f36fd455104fcaa083fd1ea2186e65ec0350f208 diff --git a/tasklist.cxx b/tasklist.cxx index fd7e4b5..f864eeb 100644 --- a/tasklist.cxx +++ b/tasklist.cxx @@ -41,5 +41,5 @@ void TaskList::addTasks(rt_ticketlist* taskList) { for (unsigned int i = 0; i < taskList->length; i++) addTask(Task{taskList->tickets[i]}); - rtclient_ticketsfree(taskList); + rtclient_ticket_freelist(taskList); } diff --git a/user.cxx b/user.cxx index 84ef4f1..40c1818 100644 --- a/user.cxx +++ b/user.cxx @@ -194,7 +194,7 @@ void User::update(rt_user* user) m_privileged = user->privileged; m_disabled = user->disabled; m_loggedIn = true; - rtclient_userfree(user); + rtclient_user_free(user); } else { m_id = ""; m_name = ""; diff --git a/worker.cxx b/worker.cxx index 767ee9d..eef27ac 100644 --- a/worker.cxx +++ b/worker.cxx @@ -10,7 +10,7 @@ void Worker::logIn(QString const& name, QString const& password) { rtclient_login(name.toLatin1().constData(), password.toLatin1().constData()); struct rt_user* user = NULL; - rtclient_userget(&user, name.toLatin1().constData()); + rtclient_user_show(&user, name.toLatin1().constData()); if (user) emit logged(user); } @@ -20,7 +20,7 @@ void Worker::search(QString const& owner) query.append(owner); query.append("'"); rt_ticketlist* taskList = NULL; - rtclient_ticketssearch(&taskList, query.toLatin1().constData()); + rtclient_ticket_search(&taskList, query.toLatin1().constData()); if (taskList) emit foundTasks(taskList); } -- cgit v1.2.3