summaryrefslogtreecommitdiff
path: root/member.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'member.cxx')
-rw-r--r--member.cxx74
1 files changed, 41 insertions, 33 deletions
diff --git a/member.cxx b/member.cxx
index dad420d..2990e0a 100644
--- a/member.cxx
+++ b/member.cxx
@@ -4,39 +4,6 @@
namespace QICClient {
- void Member::logIn(QString const& username, QString const& password,
- QString const& successPage, QString const& nextPage,
- QString const& failPage,
- size_t (*handler)(void*, size_t, size_t, void*))
- {
- setData(icclient_member_login(username.toLatin1().constData(),
- password.toLatin1().constData(),
- successPage.toLatin1().constData(),
- nextPage.toLatin1().constData(),
- failPage.toLatin1().constData(),
- 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);
- setData(nullptr);
- }
-
void Member::setUserName(QString const& userName)
{
if (m_userName != userName) {
@@ -270,4 +237,45 @@ namespace QICClient {
} else setEmail("");
}
+ void Member::logIn(QString const& username, QString const& password,
+ QString const& successPage, QString const& nextPage,
+ QString const& failPage,
+ size_t (*handler)(void*, size_t, size_t, void*))
+ {
+ setData(icclient_member_login(username.toLatin1().constData(),
+ password.toLatin1().constData(),
+ successPage.toLatin1().constData(),
+ nextPage.toLatin1().constData(),
+ failPage.toLatin1().constData(),
+ 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::changePassword(QString const& passwordOld, QString const& password,
+ QString const& verify)
+ {
+ icclient_member_changepassword(passwordOld.toLatin1().constData(),
+ password.toLatin1().constData(),
+ verify.toLatin1().constData());
+ }
+
+ void Member::logOut()
+ {
+ icclient_member_logout(m_data);
+ setData(nullptr);
+ }
+
}