From 560a47463ec705715b4ce5f53a39030feb48e305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Tue, 22 Oct 2019 18:08:56 +0800 Subject: order is not a slot and takes a catalog argument --- client.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client.cxx') 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() -- cgit v1.2.3