summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-27 08:55:15 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-27 08:55:15 +0800
commit552b14eeda6fc65c6246224425a03a4bf1b31154 (patch)
tree05b7edf4b381760956787f79487bf7d2bd392394
parent8d0304106b5aafda286c93034f0f7976dcfcdff4 (diff)
Adjust with the new allproducts function name
-rw-r--r--client.cxx7
m---------libicclient10
-rw-r--r--qicclient/client.hxx4
3 files changed, 11 insertions, 10 deletions
diff --git a/client.cxx b/client.cxx
index 0443ce3..8e169a2 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
+ void Client::allProducts(icclient_catalog** catalogptr
, size_t (*callback)(void*, size_t, size_t, void*))
{
- icclient_product_all(catalogptr, callback);
- emit gotProductAll(*catalogptr);
+ icclient_allproducts(catalogptr, callback);
+ emit gotAllProducts(*catalogptr);
}
void Client::logIn(QString const& username, QString const& password)
diff --git a/libicclient b/libicclient
-Subproject de7fefc270ef3fd8552773e8e6424ad5885b306
+Subproject 0bfbe518bf7baa28f0720b6c753b550855b495f
diff --git a/qicclient/client.hxx b/qicclient/client.hxx
index 27ba2af..4994ad9 100644
--- a/qicclient/client.hxx
+++ b/qicclient/client.hxx
@@ -16,7 +16,7 @@ namespace ICClient {
Client(char const* url, char const* certificate = nullptr);
~Client();
- void productAll(icclient_catalog** catalogptr
+ void allProducts(icclient_catalog** catalogptr
, size_t (*callback)(void* contents
, size_t size, size_t nmemb
, void* userdata));
@@ -26,7 +26,7 @@ namespace ICClient {
void logOut();
signals:
- void gotProductAll(icclient_catalog* catalog);
+ void gotAllProducts(icclient_catalog* catalog);
void loggedIn(QString const& username);
void loggedOut();
};