diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-09-03 19:12:17 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-09-03 19:12:17 +0800 |
commit | baa0e6cbb67912530d80d218712e6ca1e423f4dc (patch) | |
tree | be1abc1a2f543d8f639c2a4e3d84d238620c9c2b /qicclient/member.hxx | |
parent | 8ebcf88c02932f93ede84bc016aedb5d55dc19a7 (diff) |
logIn as static member functions
Diffstat (limited to 'qicclient/member.hxx')
-rw-r--r-- | qicclient/member.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/qicclient/member.hxx b/qicclient/member.hxx index 86289c0..864d353 100644 --- a/qicclient/member.hxx +++ b/qicclient/member.hxx @@ -56,6 +56,13 @@ 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, + size_t (*handler)(void*, size_t, size_t, + void*) = nullptr); QString const& userName() const { return m_userName; } QString const& userNick() const { return m_userNick; } @@ -97,13 +104,6 @@ namespace QICClient { void setPhoneDay(QString const& phoneDay); void setEmail(QString const& email); - void logIn(QString const& username, QString const& password, - QString const& successPage = nullptr, - QString const& nextPage = nullptr, - QString const& failPage = nullptr, - size_t (*handler)(void*, size_t, size_t, - void*) = nullptr); - public slots: void account(QString const& firstName, QString const& lastName, QString const& address1, QString const& address2, @@ -156,7 +156,7 @@ namespace QICClient { QString m_phoneDay; QString m_email; icclient_member* m_data; - void setData(icclient_member* data); + inline void setData(icclient_member* data); }; } |