summaryrefslogtreecommitdiff
path: root/client.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-01 06:52:42 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-01 06:52:42 +0800
commitd82340151ce274930f42701f5a9a0c4db702cba4 (patch)
treeccae79c6970d5650768b22b88a37aa18510e4805 /client.cxx
parent451437641aee7771b97ac5e54e1543a2510ce17a (diff)
parent0f63d288930a71e9705ce1b48a5e0036a9161b52 (diff)
Merge branch 'master' into cmake
Diffstat (limited to 'client.cxx')
-rw-r--r--client.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/client.cxx b/client.cxx
index 0443ce3..7ffe780 100644
--- a/client.cxx
+++ b/client.cxx
@@ -1,3 +1,4 @@
+#include <cstddef>
#include <icclient/client.h>
#include "qicclient/client.hxx"
@@ -13,11 +14,11 @@ namespace ICClient {
icclient_cleanup();
}
- void Client::productAll(icclient_catalog** catalogptr
- , size_t (*callback)(void*, size_t, size_t, void*))
+ void Client::allProducts(size_t (*handler)(void*, size_t, size_t, void*))
{
- icclient_product_all(catalogptr, callback);
- emit gotProductAll(*catalogptr);
+ icclient_catalog* catalog = nullptr;
+ icclient_allproducts(handler, &catalog);
+ emit gotAllProducts(catalog);
}
void Client::logIn(QString const& username, QString const& password)