From 997ac1ef848ec9cf14ad2ab69c78a8ef230864e7 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: Sun, 14 Jun 2020 17:04:07 +0800 Subject: Flypage member function --- client.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'client.cxx') diff --git a/client.cxx b/client.cxx index 8484387..e459e27 100644 --- a/client.cxx +++ b/client.cxx @@ -22,6 +22,15 @@ namespace ICClient { emit gotAllProducts(catalog); } + void Client::flyPage(size_t (*handler)(void* contents, size_t size, + size_t nmemb, void* userdata), + QString const& sku) + { + icclient_product* product = nullptr; + icclient_flypage(handler, &product, sku.toLatin1().constData()); + emit gotFlyPage(product); + } + void Client::order(icclient_ord_order** orderPtr, QString const& sku , icclient_catalog* catalog) { -- cgit v1.2.3