summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.cxx10
-rw-r--r--qicclient/client.hxx5
2 files changed, 10 insertions, 5 deletions
diff --git a/client.cxx b/client.cxx
index 0aafc46..c0dd1c2 100644
--- a/client.cxx
+++ b/client.cxx
@@ -1,5 +1,6 @@
#include <cstddef>
#include <icclient/client.h>
+#include <icclient/member.h>
#include "qicclient/client.hxx"
namespace ICClient {
@@ -29,11 +30,12 @@ namespace ICClient {
emit ordered(order);
}
- void Client::logIn(QString const& username, QString const& password
- , QString const& successPage, QString const& nextPage
- , QString const& failPage)
+ void Client::logIn(size_t (*handler)(void*, size_t, size_t, void*)
+ , icclient_user* user, QString const& username
+ , QString const& password, QString const& successPage
+ , QString const& nextPage, QString const& failPage)
{
- icclient_login(username.toLatin1().constData()
+ icclient_login(handler, user, username.toLatin1().constData()
, password.toLatin1().constData()
, successPage.toLatin1().constData()
, nextPage.toLatin1().constData()
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