diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-14 10:00:03 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-14 10:00:03 +0800 |
commit | eaee50219505ff98d8758c0ef3d3c26b4593728b (patch) | |
tree | a2d7825ec89948d498fd40d3dbb0efb12f720d88 /interchange.cxx | |
parent | 321b3eeb6d7fcb5568f6a469127ff830ab77556d (diff) |
Flypage is the right term all this time
Diffstat (limited to 'interchange.cxx')
-rw-r--r-- | interchange.cxx | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/interchange.cxx b/interchange.cxx index 2daba1e..c9faf1f 100644 --- a/interchange.cxx +++ b/interchange.cxx @@ -21,6 +21,15 @@ namespace QInterchange { interchange_cleanup(); } + void Interchange::flypage(QString const& path) + { + interchange_flypage(path.toLatin1().constData(), + [](interchange_response* response) { + interchange->emitFlypage(QString{response->data}); + interchange_free_response(response); + }); + } + void Interchange::catalog(QString const& prodGroup) { interchange_catalog(prodGroup.toLatin1().constData(), [](interchange_response* response) { @@ -42,14 +51,6 @@ namespace QInterchange { }, nullptr); } - void Interchange::page(QString const& path) - { - interchange_page(path.toLatin1().constData(), [](interchange_response* response) { - interchange->emitPage(QString{response->data}); - interchange_free_response(response); - }); - } - void Interchange::defaultCatalog(QString const& prodGroup) { interchange_catalog(prodGroup.toLatin1().constData(), nullptr, [](struct interchange_catalog* catalog) { @@ -62,6 +63,11 @@ namespace QInterchange { defaultCatalog("All-Products"); } + void Interchange::emitFlypage(QString const& response) + { + emit gotFlypage(response); + } + void Interchange::emitCatalog(QString const& response) { emit gotCatalog(response); @@ -72,11 +78,6 @@ namespace QInterchange { emit gotProduct(response); } - void Interchange::emitPage(QString const& response) - { - emit gotPage(response); - } - void Interchange::emitOrder(QString const& response) { emit gotOrder(response); |