From 582ad4435408bdc19a007315e2c41770174cd606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Fri, 18 Jun 2021 21:31:37 +0800 Subject: Conform to updated libicclient function names --- qicclient.hxx | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'qicclient.hxx') diff --git a/qicclient.hxx b/qicclient.hxx index 3b7f0d5..da1fa61 100644 --- a/qicclient.hxx +++ b/qicclient.hxx @@ -3,11 +3,9 @@ #include #include "qicclient/catalog.hxx" -#include namespace QICClient { - using std::shared_ptr; class Ord; class Client : public QObject @@ -26,12 +24,6 @@ namespace QICClient { * \brief Destructor. */ ~Client(); - /*! - * \brief For fetching data about a specific product. - * \param sku The SKU of the item to order. - * \param handler A pointer to a cURL write function callback. - */ - void flyPage(QString const& sku, void (*handler)(icclient_response*)); /*! * \brief For putting an item to a cart. * \param sku The SKU of the item to order. @@ -39,34 +31,37 @@ namespace QICClient { * \param order The order. */ void order(QString const& sku, Catalog const& catalog, Ord& order); - void emitResults(QString const& response); - void emitCatalog(Catalog* catalog); + void emitCatalog(QString const& response); + void emitProduct(QString const& response); public slots: /*! * \brief For fetching products that belong a specific group. * \param prodGroup The name of the product group. */ - void results(QString const& prodGroup); + void catalog(QString const& prodGroup); /*! * \brief For fetching data about all active products. */ void allProducts(); + /*! + * \brief For fetching data about a specific product. + * \param sku The SKU of the item to order. + */ + void product(QString const& sku); /*! * \brief For fetching products that belong a specific group. * \param prodGroup The name of the product group. - * \param handler A C style pointer to function for custom handling. */ - void strapResults(QString const& prodGroup); + void defaultCatalog(QString const& prodGroup); /*! * \brief For fetching data about all active products. */ - void strapAllProducts(); + void defaultAllProducts(); signals: - void gotResults(QString const& results); - void gotCatalog(Catalog* catalog); - void gotFlyPage(shared_ptr product); + void gotCatalog(QString const& response); + void gotProduct(QString const& response); }; } -- cgit v1.2.3