summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-17 17:11:17 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-17 17:11:17 +0800
commit7931bc869d46b367e676948f142dabdc57b06c0d (patch)
tree520eeb9bb596284dfad667002c0ccfa2fea4a345
parentfcd4ae221938ce8f18853c214effc9948e5c58c2 (diff)
Conform to success, fail, and next pages interface removals
-rw-r--r--admin.cxx12
-rw-r--r--member.cxx12
-rw-r--r--qicclient/admin.hxx6
-rw-r--r--qicclient/member.hxx6
4 files changed, 6 insertions, 30 deletions
diff --git a/admin.cxx b/admin.cxx
index ed26562..6fad89f 100644
--- a/admin.cxx
+++ b/admin.cxx
@@ -5,18 +5,10 @@
namespace QICClient {
- std::shared_ptr<Admin> Admin::logIn(QString const& username,
- QString const& password, QString const& successPage,
- QString const& nextPage, QString const& failPage,
- void (*handler)(icclient_fetch_t *))
+ std::shared_ptr<Admin> Admin::logIn(QString const& username, QString const& password, void (*handler)(icclient_fetch_t *))
{
auto admin = new Admin{};
- admin->setData(icclient_admin_login(username.toLatin1().constData(),
- password.toLatin1().constData(),
- successPage.toLatin1().constData(),
- nextPage.toLatin1().constData(),
- failPage.toLatin1().constData(),
- handler));
+ admin->setData(icclient_admin_login(username.toLatin1().constData(), password.toLatin1().constData(), handler));
return std::shared_ptr<Admin>{admin};
}
diff --git a/member.cxx b/member.cxx
index 75114f7..545d77d 100644
--- a/member.cxx
+++ b/member.cxx
@@ -5,18 +5,10 @@
namespace QICClient {
- std::shared_ptr<Member> Member::logIn(QString const& username,
- QString const& password, QString const& successPage,
- QString const& nextPage, QString const& failPage,
- void (*handler)(icclient_fetch_t *))
+ std::shared_ptr<Member> Member::logIn(QString const& username, QString const& password, void (*handler)(icclient_fetch_t *))
{
auto member = new Member{};
- member->setData(icclient_member_login(username.toLatin1().constData(),
- password.toLatin1().constData(),
- successPage.toLatin1().constData(),
- nextPage.toLatin1().constData(),
- failPage.toLatin1().constData(),
- handler));
+ member->setData(icclient_member_login(username.toLatin1().constData(), password.toLatin1().constData(), handler));
return std::shared_ptr<Member>{member};
}
diff --git a/qicclient/admin.hxx b/qicclient/admin.hxx
index 52920e4..b93ea2a 100644
--- a/qicclient/admin.hxx
+++ b/qicclient/admin.hxx
@@ -27,11 +27,7 @@ namespace QICClient {
m_data{nullptr}
{}
~Admin() {}
- static std::shared_ptr<Admin> logIn(QString const& username,
- QString const& password,
- QString const& successPage = nullptr,
- QString const& nextPage = nullptr,
- QString const& failPage = nullptr,
+ static std::shared_ptr<Admin> logIn(QString const& username, QString const& password,
void (*handler)(icclient_fetch_t *) = nullptr);
QString const& userName() const { return m_userName; }
diff --git a/qicclient/member.hxx b/qicclient/member.hxx
index e2a3dcb..b5e1f5b 100644
--- a/qicclient/member.hxx
+++ b/qicclient/member.hxx
@@ -57,11 +57,7 @@ namespace QICClient {
m_data{nullptr}
{}
~Member() {}
- static std::shared_ptr<Member> logIn(QString const& username,
- QString const& password,
- QString const& successPage = nullptr,
- QString const& nextPage = nullptr,
- QString const& failPage = nullptr,
+ static std::shared_ptr<Member> logIn(QString const& username, QString const& password,
void (*handler)(icclient_fetch_t *) = nullptr);
QString const& userName() const { return m_userName; }