diff options
Diffstat (limited to 'qicclient.hxx')
| -rw-r--r-- | qicclient.hxx | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/qicclient.hxx b/qicclient.hxx index 3b7f0d5..da1fa61 100644 --- a/qicclient.hxx +++ b/qicclient.hxx @@ -3,11 +3,9 @@ #include <QObject> #include "qicclient/catalog.hxx" -#include <icclient.h> namespace QICClient { - using std::shared_ptr; class Ord; class Client : public QObject @@ -27,46 +25,43 @@ namespace QICClient { */ ~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. * \param catalog The catalog from which the item is. * \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> product); + void gotCatalog(QString const& response); + void gotProduct(QString const& response); }; } |