diff options
-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: |