diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-17 22:26:34 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-17 22:26:34 +0800 |
commit | 233038776d63980494929f745d90af86a55e12ab (patch) | |
tree | 7db1f3f40e0eeb0f4a77b928037382201c437392 | |
parent | 254a14644fff30532bbef08d8a5939605407cac1 (diff) |
Rename fetch to response
-rw-r--r-- | client.cxx | 10 | ||||
-rw-r--r-- | qicclient.hxx | 4 |
2 files changed, 7 insertions, 7 deletions
@@ -6,9 +6,9 @@ static QICClient::Client* client; -static void handleResults(icclient_response* fetch) +static void handleResults(icclient_response* response) { - client->emitResults(fetch); + client->emitResults(response); } static void callback(icclient_catalog* catalog) @@ -45,14 +45,14 @@ namespace QICClient { icclient_allproducts(handleResults, nullptr); } - void Client::allproducts(void (*handler)(icclient_response* fetch)) + void Client::allproducts(void (*handler)(icclient_response* response)) { icclient_allproducts(handler, callback); } - void Client::emitResults(icclient_response* fetch) + void Client::emitResults(icclient_response* response) { - emit gotResults(fetch); + emit gotResults(response); } void Client::emitCatalog(icclient_catalog* catalog) diff --git a/qicclient.hxx b/qicclient.hxx index c290214..2acaf5b 100644 --- a/qicclient.hxx +++ b/qicclient.hxx @@ -34,7 +34,7 @@ namespace QICClient { * \param handler A C style pointer to function for custom handling. */ void allproducts(void (*handler)(icclient_response*) = nullptr); - void emitResults(icclient_response* fetch); + void emitResults(icclient_response* response); void emitCatalog(icclient_catalog* catalog); /*! * \brief For fetching data about a specific product. @@ -62,7 +62,7 @@ namespace QICClient { void allProducts(); signals: - void gotResults(icclient_response* fetch); + void gotResults(icclient_response* response); void gotCatalog(Catalog* catalog); void gotFlyPage(shared_ptr<Product> product); }; |