summaryrefslogtreecommitdiff
path: root/qicclient/client.hxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-29 15:38:47 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-29 15:38:47 +0800
commit228307e324190e760dc298ef84c3ffb29d4c8237 (patch)
tree36f97ddb46c12ac98fb81b5969dbf6c64b474702 /qicclient/client.hxx
parenta2a5964bddaf61c830f9a2a2a9bf6226c0168e64 (diff)
C++ instances keep a pointer to the C version
Diffstat (limited to 'qicclient/client.hxx')
-rw-r--r--qicclient/client.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/qicclient/client.hxx b/qicclient/client.hxx
index a87f83f..056b3f8 100644
--- a/qicclient/client.hxx
+++ b/qicclient/client.hxx
@@ -3,7 +3,6 @@
#include <QObject>
-struct icclient_ord_order;
struct icclient_user;
namespace ICClient {
@@ -11,6 +10,7 @@ namespace ICClient {
using std::shared_ptr;
class Catalog;
class Product;
+ class Basket;
class Client : public QObject
{
@@ -31,9 +31,8 @@ namespace ICClient {
size_t size, size_t nmemb,
void* userdata),
QString const& sku);
- void order(icclient_ord_order** orderPtr,
- QString const& sku,
- icclient_catalog* catalog);
+ void order(QString const& sku, Catalog const& catalog,
+ Basket& order);
void logIn(size_t (*handler)(void*, size_t, size_t, void*),
icclient_user* user,
QString const& username,
@@ -72,7 +71,6 @@ namespace ICClient {
signals:
void gotResults(Catalog* catalog);
void gotFlyPage(shared_ptr<Product> product);
- void ordered(icclient_ord_order* order);
void loggedIn(icclient_user* user);
void loggedOut();
};