diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-01 06:49:48 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-01 06:49:48 +0800 |
commit | 117a8cf40b39d36fe2d5794c20fb6600e92f52e9 (patch) | |
tree | 9d46a4268c74ff1bfe1489064b2744348c98fba1 /client.cxx | |
parent | 8182f9b0bdf1c8ec53d6b0630bfd3be69d33cfba (diff) | |
parent | bd0e74d11e666126c97c34c5b508dbe811b128c3 (diff) |
Merge branch 'master' into cmake
Diffstat (limited to 'client.cxx')
-rw-r--r-- | client.cxx | 35 |
1 files changed, 19 insertions, 16 deletions
@@ -1,6 +1,7 @@ #include <QStringBuilder> #include <rtclient/client.h> #include <rtclient/ticket.h> +#include <rtclient/search.h> #include "qrtclient/client.hxx" namespace RTClient { @@ -36,8 +37,8 @@ namespace RTClient { , QString const& comments , QString const& signature , QString const& gecos - , rtclient_lang lang - , rtclient_timezone timeZone + , rtclient_user_lang lang + , rtclient_user_timezone timezone , bool disabled , bool privileged) { @@ -62,7 +63,7 @@ namespace RTClient { , signature.toLatin1().constData() , gecos.toLatin1().constData() , lang - , timeZone + , timezone , disabled , privileged); } @@ -85,13 +86,13 @@ namespace RTClient { , QString const& requestor , QString const& subject , QString const& cc - , QString const& admincc + , QString const& adminCc , QString const& owner , QString const& status , QString const& priority - , QString const& initialpriority - , QString const& finalpriority - , QString const& timeestimated + , QString const& initialPriority + , QString const& finalPriority + , QString const& timeEstimated , QString const& starts , QString const& due , QString const& text) @@ -100,29 +101,31 @@ namespace RTClient { , requestor.toLatin1().constData() , subject.toLatin1().constData() , cc.toLatin1().constData() - , admincc.toLatin1().constData() + , adminCc.toLatin1().constData() , owner.toLatin1().constData() , status.toLatin1().constData() , priority.toLatin1().constData() - , initialpriority.toLatin1().constData() - , finalpriority.toLatin1().constData() - , timeestimated.toLatin1().constData() + , initialPriority.toLatin1().constData() + , finalPriority.toLatin1().constData() + , timeEstimated.toLatin1().constData() , starts.toLatin1().constData() , due.toLatin1().constData() , text.toLatin1().constData()); } - void Client::ticketSearch(QString const& owner) + void Client::searchTicket(QString const& owner) { QString query{"Owner='" % owner % "'"}; - rtclient_ticketlist* ticketList = nullptr; - rtclient_ticket_search(&ticketList, query.toLatin1().constData()); - emit ticketSearched(ticketList); + rtclient_search_ticket_list* ticketList = nullptr; + rtclient_search_ticket(&ticketList, query.toLatin1().constData()); + emit searchedTicket(ticketList); } void Client::ticketHistory(int id) { - rtclient_ticket_history(id); + rtclient_ticket_history_list* historyList = nullptr; + rtclient_ticket_history(&historyList, id); + emit gotTicketHistory(historyList); } Client::~Client() |