summaryrefslogtreecommitdiff
path: root/client.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'client.cxx')
-rw-r--r--client.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/client.cxx b/client.cxx
index e459e27..c7950a8 100644
--- a/client.cxx
+++ b/client.cxx
@@ -15,11 +15,20 @@ namespace ICClient {
icclient_cleanup();
}
+ void Client::results(size_t (*handler)(void* contents, size_t size,
+ size_t nmemb, void* userdata),
+ QString const& prodGroup)
+ {
+ icclient_catalog* catalog = nullptr;
+ icclient_results(handler, &catalog, prodGroup.toLatin1().constData());
+ emit gotResults(catalog);
+ }
+
void Client::allProducts(size_t (*handler)(void*, size_t, size_t, void*))
{
icclient_catalog* catalog = nullptr;
icclient_allproducts(handler, &catalog);
- emit gotAllProducts(catalog);
+ emit gotResults(catalog);
}
void Client::flyPage(size_t (*handler)(void* contents, size_t size,