diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-18 20:44:44 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-18 20:44:44 +0800 |
commit | 78d6f1b9d4b8a767d9b889be34cba6c729a5315f (patch) | |
tree | f9f2ea4b6d5d0ebd477bdfdc556fe5344a014484 | |
parent | c134fbf2247625eebaf1b61471c2fa9b08fffe80 (diff) |
Wrapper function to create a ticket
-rw-r--r-- | client.cxx | 31 | ||||
-rw-r--r-- | qrtclient/client.hxx | 14 |
2 files changed, 45 insertions, 0 deletions
@@ -67,6 +67,37 @@ namespace RTClient { , privileged); } + void Client::ticketNew(QString const& queue + , QString const& requestor + , QString const& subject + , QString const& cc + , QString const& admincc + , QString const& owner + , QString const& status + , QString const& priority + , QString const& initialpriority + , QString const& finalpriority + , QString const& timeestimated + , QString const& starts + , QString const& due + , QString const& text) + { + rtclient_ticket_new(queue.toLatin1().constData() + , requestor.toLatin1().constData() + , subject.toLatin1().constData() + , cc.toLatin1().constData() + , admincc.toLatin1().constData() + , owner.toLatin1().constData() + , status.toLatin1().constData() + , priority.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) { QString query{"Owner='"}; diff --git a/qrtclient/client.hxx b/qrtclient/client.hxx index 8474cdb..2cdccd2 100644 --- a/qrtclient/client.hxx +++ b/qrtclient/client.hxx @@ -43,6 +43,20 @@ namespace RTClient { , rtclient_timezone timeZone = RTCLIENT_TIMEZONE_NONE , bool disabled = false , bool privileged = false); + void ticketNew(QString const& queue = nullptr + , QString const& requestor = nullptr + , QString const& subject = nullptr + , QString const& cc = nullptr + , QString const& admincc = nullptr + , QString const& owner = nullptr + , QString const& status = nullptr + , QString const& priority = nullptr + , QString const& initialpriority = nullptr + , QString const& finalpriority = nullptr + , QString const& timeestimated = nullptr + , QString const& starts = nullptr + , QString const& due = nullptr + , QString const& text = nullptr); void ticketSearch(QString const& owner); signals: |