summaryrefslogtreecommitdiff
path: root/client.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-22 18:08:56 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-22 18:08:56 +0800
commit560a47463ec705715b4ce5f53a39030feb48e305 (patch)
treea00f752859accc00bc4b4f28a9480ef17ed53821 /client.cxx
parent0a94e177d28a1257dbe9cd4b8ff3c97fba3dfd46 (diff)
order is not a slot and takes a catalog argument
Diffstat (limited to 'client.cxx')
-rw-r--r--client.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/client.cxx b/client.cxx
index 7ffe780..d3146ce 100644
--- a/client.cxx
+++ b/client.cxx
@@ -21,6 +21,12 @@ namespace ICClient {
emit gotAllProducts(catalog);
}
+ void Client::order(QString const& sku, icclient_catalog* catalog)
+ {
+ icclient_ord_order* order = nullptr;
+ icclient_order(&order, sku.toLatin1().constData(), catalog);
+ }
+
void Client::logIn(QString const& username, QString const& password)
{
icclient_login(username.toLatin1().constData()