diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 10:34:53 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 10:34:53 +0800 |
commit | f91691a987aaca4a16a2ffe8d4ad3b6c6b8c8059 (patch) | |
tree | 0d4700059027d901144584b17efe9fa24d011724 /qicclient | |
parent | e581c3bebea892d160c44f5189a8498efd69bb89 (diff) |
Move basic header outside of package dir
Diffstat (limited to 'qicclient')
-rw-r--r-- | qicclient/client.hxx | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/qicclient/client.hxx b/qicclient/client.hxx deleted file mode 100644 index 1a86a36..0000000 --- a/qicclient/client.hxx +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef QICCLIENT_CLIENT_HXX -#define QICCLIENT_CLIENT_HXX - -#include <QObject> -#include <icclient.h> - -namespace QICClient { - - using std::shared_ptr; - class Catalog; - class Ord; - - class Client : public QObject - { - Q_OBJECT - - public: - /*! - * \brief Constructor. - * \param url Server root URL. - * \param certificate Path to the CA certificate file. - */ - Client(char const* url, char const* certificate = nullptr); - ~Client(); - - /*! - * \brief For fetching products that belong a specific group. - * \param prodGroup The name of the product group. - * \param handler A pointer to a cURL write function callback. - */ - void results(QString const& prodGroup, icclient_handler handler = nullptr); - - /*! - * \brief For fetching data about all active products. - * \param handler A pointer to a cURL write function callback. - */ - void allProducts(icclient_handler handler = nullptr); - - void emitCatalog(icclient_catalog *catalog); - - /*! - * \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, icclient_handler handler); - - /*! - * \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); - - signals: - void gotResults(Catalog* catalog); - void gotFlyPage(shared_ptr<Product> product); - }; - -} - -#endif |