summaryrefslogtreecommitdiff
path: root/client.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'client.cxx')
-rw-r--r--client.cxx9
1 files changed, 9 insertions, 0 deletions
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)
{