diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-13 08:34:50 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-13 08:34:50 +0800 |
commit | 93a857da620f0f102ceb310dff48dac3573c7dc3 (patch) | |
tree | 15ae67aab7f3bc022e63ccc21a842475e75ee753 /client.cxx | |
parent | 597163edb74e7cef5da39361f67686c2d5cac902 (diff) |
Conform to icclient_page
Diffstat (limited to 'client.cxx')
-rw-r--r-- | client.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -37,10 +37,10 @@ namespace QICClient { }, nullptr); } - void Client::path(QString const& path) + void Client::page(QString const& path) { - icclient_path(path.toLatin1().constData(), [](icclient_response* response) { - client->emitPath(QString{response->data}); + icclient_page(path.toLatin1().constData(), [](icclient_response* response) { + client->emitPage(QString{response->data}); icclient_free_response(response); }); } @@ -57,19 +57,19 @@ namespace QICClient { defaultCatalog("All-Products"); } - void Client::emitCatalog(QString const& catalog) + void Client::emitCatalog(QString const& response) { - emit gotCatalog(catalog); + emit gotCatalog(response); } - void Client::emitProduct(QString const& product) + void Client::emitProduct(QString const& response) { - emit gotProduct(product); + emit gotProduct(response); } - void Client::emitPath(QString const& path) + void Client::emitPage(QString const& response) { - emit gotPath(path); + emit gotPage(response); } void Client::order(QString const& sku, Catalog const& catalog, Ord& order) |