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 --- client.cxx | 10 +++++++--- qicclient/client.hxx | 7 +++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/client.cxx b/client.cxx index 1dad6fe..0aafc46 100644 --- a/client.cxx +++ b/client.cxx @@ -29,11 +29,15 @@ namespace ICClient { emit ordered(order); } - void Client::logIn(QString const& username, QString const& password) + void Client::logIn(QString const& username, QString const& password + , QString const& successPage, QString const& nextPage + , QString const& failPage) { icclient_login(username.toLatin1().constData() - , password.toLatin1().constData(), nullptr, nullptr - , nullptr); + , password.toLatin1().constData() + , successPage.toLatin1().constData() + , nextPage.toLatin1().constData() + , failPage.toLatin1().constData()); emit loggedIn(username); } 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