From 156f8f37517c8469442c1aa9b6fef4757516f788 Mon Sep 17 00:00:00 2001 From: ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ Date: Wed, 2 Oct 2019 12:51:44 +0800 Subject: Ticket history function takes format argument --- client.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client.cxx') diff --git a/client.cxx b/client.cxx index b91c10b..d2097aa 100644 --- a/client.cxx +++ b/client.cxx @@ -124,7 +124,8 @@ namespace RTClient { void Client::ticketHistory(int id) { rtclient_ticket_history_list* historyList = nullptr; - rtclient_ticket_history(&historyList, id); + rtclient_ticket_history(&historyList, id + , RTCLIENT_TICKET_RESULT_FORMAT_L); emit gotTicketHistory(historyList); } -- cgit v1.3 From b3b08cf3beb03b3133a5925fdd6384765dcb6409 Mon Sep 17 00:00:00 2001 From: ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ Date: Wed, 2 Oct 2019 14:15:44 +0800 Subject: No result namespace --- client.cxx | 2 +- librtclient | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'client.cxx') diff --git a/client.cxx b/client.cxx index d2097aa..a887c76 100644 --- a/client.cxx +++ b/client.cxx @@ -125,7 +125,7 @@ namespace RTClient { { rtclient_ticket_history_list* historyList = nullptr; rtclient_ticket_history(&historyList, id - , RTCLIENT_TICKET_RESULT_FORMAT_L); + , RTCLIENT_TICKET_FORMAT_L); emit gotTicketHistory(historyList); } diff --git a/librtclient b/librtclient index f9e3eb4..829fd1f 160000 --- a/librtclient +++ b/librtclient @@ -1 +1 @@ -Subproject commit f9e3eb4c9cf83d724d510f20391ab8f88f68fd71 +Subproject commit 829fd1f2baf9e92511683982d2a51244301c4837 -- cgit v1.3 From 9d7fc8def01999e5d1ed2d56ebd21d05ec6432a7 Mon Sep 17 00:00:00 2001 From: ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ Date: Wed, 2 Oct 2019 14:35:21 +0800 Subject: There are only 2 formats for ticket history return --- client.cxx | 3 +-- librtclient | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'client.cxx') diff --git a/client.cxx b/client.cxx index a887c76..2dbf761 100644 --- a/client.cxx +++ b/client.cxx @@ -124,8 +124,7 @@ namespace RTClient { void Client::ticketHistory(int id) { rtclient_ticket_history_list* historyList = nullptr; - rtclient_ticket_history(&historyList, id - , RTCLIENT_TICKET_FORMAT_L); + rtclient_ticket_history(&historyList, id, true); emit gotTicketHistory(historyList); } diff --git a/librtclient b/librtclient index 9fd7e32..8cff9b9 160000 --- a/librtclient +++ b/librtclient @@ -1 +1 @@ -Subproject commit 9fd7e32936b96cdcd5329077662e2fcc546d2bdd +Subproject commit 8cff9b9d5a49e4c1a9364fd55f4887700ef2a4ae -- cgit v1.3 From 5567338ace1f591c6a0e7a54da0cf15667e3b462 Mon Sep 17 00:00:00 2001 From: ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ Date: Wed, 2 Oct 2019 22:47:49 +0800 Subject: Ticket history long format can be set --- client.cxx | 4 ++-- qrtclient/client.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client.cxx') diff --git a/client.cxx b/client.cxx index 2dbf761..6711461 100644 --- a/client.cxx +++ b/client.cxx @@ -121,10 +121,10 @@ namespace RTClient { emit searchedTicket(ticketList); } - void Client::ticketHistory(int id) + void Client::ticketHistory(int id, bool longFormat) { rtclient_ticket_history_list* historyList = nullptr; - rtclient_ticket_history(&historyList, id, true); + rtclient_ticket_history(&historyList, id, longFormat); emit gotTicketHistory(historyList); } diff --git a/qrtclient/client.hxx b/qrtclient/client.hxx index b672620..e9e6b0f 100644 --- a/qrtclient/client.hxx +++ b/qrtclient/client.hxx @@ -63,7 +63,7 @@ namespace RTClient { , QString const& due = nullptr , QString const& text = nullptr); void searchTicket(QString const& owner); - void ticketHistory(int id); + void ticketHistory(int id, bool longFormat = false); signals: void loggedIn(QString const& name); -- cgit v1.3