summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-07-16 15:59:04 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-07-16 15:59:04 +0800
commit3f8fd4249c5ddcf2cd5952c64678cb0a484669bf (patch)
treefb789f25016a20cca4040283d7101265bc83ffb7
parent54ed8aaa4f989196b76334b5fb84e5bbc846bc0e (diff)
Implement account member function
-rw-r--r--member.cxx14
-rw-r--r--qicclient/member.hxx14
2 files changed, 19 insertions, 9 deletions
diff --git a/member.cxx b/member.cxx
index 439f205..dad420d 100644
--- a/member.cxx
+++ b/member.cxx
@@ -17,6 +17,20 @@ namespace QICClient {
handler));
}
+ void Member::account(QString const& firstName, QString const& lastName,
+ QString const& address1, QString const& address2,
+ QString const& city, QString const& state, QString const& zip,
+ QString const& email, QString const& phoneDay)
+ {
+ icclient_member_account(firstName.toLatin1().constData(),
+ lastName.toLatin1().constData(),
+ address1.toLatin1().constData(),
+ address2.toLatin1().constData(),
+ city.toLatin1().constData(), state.toLatin1().constData(),
+ zip.toLatin1().constData(), email.toLatin1().constData(),
+ phoneDay.toLatin1().constData());
+ }
+
void Member::logOut()
{
icclient_member_logout(m_data);
diff --git a/qicclient/member.hxx b/qicclient/member.hxx
index 631a8aa..aac831e 100644
--- a/qicclient/member.hxx
+++ b/qicclient/member.hxx
@@ -63,15 +63,6 @@ namespace QICClient {
QString const& failPage = nullptr,
size_t (*handler)(void*, size_t, size_t,
void*) = nullptr);
- void account(QString const& firstName,
- QString const& lastName,
- QString const& address1,
- QString const& address2,
- QString const& city,
- QString const& state,
- QString const& zip,
- QString const& email,
- QString const& phoneDay) {}
void changePassword(QString const& passwordOld,
QString const& password,
QString const& verify) {}
@@ -117,6 +108,11 @@ namespace QICClient {
void setEmail(QString const& email);
public slots:
+ void account(QString const& firstName, QString const& lastName,
+ QString const& address1, QString const& address2,
+ QString const& city, QString const& state,
+ QString const& zip, QString const& email,
+ QString const& phoneDay);
void logOut();
signals: