From 228307e324190e760dc298ef84c3ffb29d4c8237 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: Mon, 29 Jun 2020 15:38:47 +0800 Subject: C++ instances keep a pointer to the C version --- qicclient/client.hxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'qicclient/client.hxx') diff --git a/qicclient/client.hxx b/qicclient/client.hxx index a87f83f..056b3f8 100644 --- a/qicclient/client.hxx +++ b/qicclient/client.hxx @@ -3,7 +3,6 @@ #include -struct icclient_ord_order; struct icclient_user; namespace ICClient { @@ -11,6 +10,7 @@ namespace ICClient { using std::shared_ptr; class Catalog; class Product; + class Basket; class Client : public QObject { @@ -31,9 +31,8 @@ namespace ICClient { size_t size, size_t nmemb, void* userdata), QString const& sku); - void order(icclient_ord_order** orderPtr, - QString const& sku, - icclient_catalog* catalog); + void order(QString const& sku, Catalog const& catalog, + Basket& order); void logIn(size_t (*handler)(void*, size_t, size_t, void*), icclient_user* user, QString const& username, @@ -72,7 +71,6 @@ namespace ICClient { signals: void gotResults(Catalog* catalog); void gotFlyPage(shared_ptr product); - void ordered(icclient_ord_order* order); void loggedIn(icclient_user* user); void loggedOut(); }; -- cgit v1.2.3