From 560a47463ec705715b4ce5f53a39030feb48e305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Tue, 22 Oct 2019 18:08:56 +0800 Subject: order is not a slot and takes a catalog argument --- qicclient/client.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qicclient/client.hxx') diff --git a/qicclient/client.hxx b/qicclient/client.hxx index 6121c5e..470018a 100644 --- a/qicclient/client.hxx +++ b/qicclient/client.hxx @@ -19,10 +19,10 @@ namespace ICClient { void allProducts(size_t (*handler)(void* contents , size_t size, size_t nmemb , void* userdata)); + void order(QString const& sku, icclient_catalog* catalog); public slots: /* - void order(QString const& sku); void remove(unsigned int const& indices); void checkout(); */ -- cgit v1.2.3 From d7b7252da7f110d8903250c83109cd73e6b2de34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Mon, 4 Nov 2019 19:17:53 +0700 Subject: order function takes a pointer to order argument --- qicclient/client.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qicclient/client.hxx') diff --git a/qicclient/client.hxx b/qicclient/client.hxx index 470018a..893e47b 100644 --- a/qicclient/client.hxx +++ b/qicclient/client.hxx @@ -19,7 +19,8 @@ namespace ICClient { void allProducts(size_t (*handler)(void* contents , size_t size, size_t nmemb , void* userdata)); - void order(QString const& sku, icclient_catalog* catalog); + void order(icclient_ord_order** orderPtr, QString const& sku + , icclient_catalog* catalog); public slots: /* -- cgit v1.2.3 From 2bf032f097da081fc45ff7249f789bdfe142fd28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Mon, 18 Nov 2019 19:25:35 +0700 Subject: logIn takes page arguments and is not a slot any more --- qicclient/client.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'qicclient/client.hxx') diff --git a/qicclient/client.hxx b/qicclient/client.hxx index 893e47b..47f25fb 100644 --- a/qicclient/client.hxx +++ b/qicclient/client.hxx @@ -21,14 +21,17 @@ namespace ICClient { , void* userdata)); void order(icclient_ord_order** orderPtr, QString const& sku , icclient_catalog* catalog); + void logIn(QString const& username + , QString const& password + , QString const& successPage = nullptr + , QString const& nextPage = nullptr + , QString const& failPage = nullptr); public slots: /* void remove(unsigned int const& indices); void checkout(); */ - void logIn(QString const& username - , QString const& password); /* void account(QString const& firstName , QString const& lastName -- cgit v1.2.3 From 7079898ae28c6cc417ba8eadc4bd2466886bbc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 29 Dec 2019 08:45:06 +0800 Subject: Add parameters for handler and user pointers to login related functions. These are the cURL write function and data respectively. --- qicclient/client.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qicclient/client.hxx') diff --git a/qicclient/client.hxx b/qicclient/client.hxx index 47f25fb..0fb01f8 100644 --- a/qicclient/client.hxx +++ b/qicclient/client.hxx @@ -5,6 +5,7 @@ struct icclient_catalog; struct icclient_ord_order; +struct icclient_user; namespace ICClient { @@ -21,7 +22,9 @@ namespace ICClient { , void* userdata)); void order(icclient_ord_order** orderPtr, QString const& sku , icclient_catalog* catalog); - void logIn(QString const& username + void logIn(size_t (*handler)(void*, size_t, size_t, void*) + , icclient_user* user + , QString const& username , QString const& password , QString const& successPage = nullptr , QString const& nextPage = nullptr -- cgit v1.2.3 From baefbee691355fccc6b64b0171d2f02959759a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 29 Dec 2019 08:45:39 +0800 Subject: Change loggedIn signal parameter type to IC client user --- qicclient/client.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qicclient/client.hxx') diff --git a/qicclient/client.hxx b/qicclient/client.hxx index 0fb01f8..ef8a5bf 100644 --- a/qicclient/client.hxx +++ b/qicclient/client.hxx @@ -60,7 +60,7 @@ namespace ICClient { signals: void gotAllProducts(icclient_catalog* catalog); void ordered(icclient_ord_order* order); - void loggedIn(QString const& userName); + void loggedIn(icclient_user* user); void loggedOut(); }; -- cgit v1.2.3