summaryrefslogtreecommitdiff
path: root/qicclient
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 /qicclient
parent7115a02af0de188aa4b974dcb325f7adc11a9a2e (diff)
Conform to updated libicclient login interfaces
Diffstat (limited to 'qicclient')
-rw-r--r--qicclient/admin.hxx6
-rw-r--r--qicclient/member.hxx3
2 files changed, 3 insertions, 6 deletions
diff --git a/qicclient/admin.hxx b/qicclient/admin.hxx
index b93ea2a..b9bf428 100644
--- a/qicclient/admin.hxx
+++ b/qicclient/admin.hxx
@@ -27,9 +27,6 @@ namespace QICClient {
m_data{nullptr}
{}
~Admin() {}
- 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; }
QString const& password() const { return m_password; }
QString const& name() const { return m_name; }
@@ -41,6 +38,7 @@ namespace QICClient {
void setSuper(bool super);
public slots:
+ void logIn(QString const& username, QString const& password);
void newAdmin(QString const& userName, QString const& password, QString const& name, bool super,
enum icclient_admin_group group);
void newItem(QString const& description, QString const& comment, QString const& price,
@@ -64,4 +62,4 @@ namespace QICClient {
}
-#endif // QICCLIENT_ADMIN_HXX
+#endif
diff --git a/qicclient/member.hxx b/qicclient/member.hxx
index b5e1f5b..6382434 100644
--- a/qicclient/member.hxx
+++ b/qicclient/member.hxx
@@ -57,8 +57,6 @@ namespace QICClient {
m_data{nullptr}
{}
~Member() {}
- 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; }
QString const& userNick() const { return m_userNick; }
@@ -102,6 +100,7 @@ namespace QICClient {
void setEmail(QString const& email);
public slots:
+ void logIn(QString const& username, QString const& password);
void account(QString const& firstName, QString const& lastName,
QString const& address1, QString const& address2,
QString const& city, QString const& state,