summaryrefslogtreecommitdiff
path: root/admin.cxx
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-17 21:47:32 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-17 21:47:32 +0800
commit35a99ff13a6b656362b61dc37ddba40dd9be1927 (patch)
tree3341de73de22911c4fd534cdea3acdd77255b5fa /admin.cxx
parent7115a02af0de188aa4b974dcb325f7adc11a9a2e (diff)
Conform to updated libicclient login interfaces
Diffstat (limited to 'admin.cxx')
-rw-r--r--admin.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/admin.cxx b/admin.cxx
index 6fad89f..c15b3c5 100644
--- a/admin.cxx
+++ b/admin.cxx
@@ -5,11 +5,9 @@
namespace QICClient {
- std::shared_ptr<Admin> Admin::logIn(QString const& username, QString const& password, void (*handler)(icclient_fetch_t *))
+ void Admin::logIn(QString const& username, QString const& password)
{
- auto admin = new Admin{};
- admin->setData(icclient_admin_login(username.toLatin1().constData(), password.toLatin1().constData(), handler));
- return std::shared_ptr<Admin>{admin};
+ icclient_admin_login(username.toLatin1().constData(), password.toLatin1().constData(), nullptr, nullptr);
}
void Admin::setUserName(QString const& userName)