summaryrefslogtreecommitdiff
path: root/member.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'member.cxx')
-rw-r--r--member.cxx33
1 files changed, 33 insertions, 0 deletions
diff --git a/member.cxx b/member.cxx
index c38dc32..610d7f0 100644
--- a/member.cxx
+++ b/member.cxx
@@ -4,8 +4,35 @@
namespace QInterchange {
+ static Member* member;
static char *unCopy, *pwCopy, *vCopy, *fpCopy;
+ Member::Member(QObject* parent) :
+ QObject{parent},
+ m_userName{""},
+ m_userNick{""},
+ m_password{""},
+ m_expiration{""},
+ m_acl{""},
+ m_modTime{""},
+ m_sNickName{""},
+ m_company{""},
+ m_fName{""},
+ m_lName{""},
+ m_address1{""},
+ m_address2{""},
+ m_address3{""},
+ m_city{""},
+ m_state{""},
+ m_zip{""},
+ m_country{""},
+ m_phoneDay{""},
+ m_email{""},
+ m_data{nullptr}
+ {
+ member = this;
+ }
+
void Member::newAccount(QString const& username,
QString const& password, QString const& verify,
QString const& failPage)
@@ -49,6 +76,7 @@ namespace QInterchange {
free(unCopy);
free(pwCopy);
free(fpCopy);
+ member->emitLogin(QString{response->data});
interchange_free_response(response);
}, nullptr);
}
@@ -333,4 +361,9 @@ namespace QInterchange {
setData(nullptr);
}
+ void Member::emitLogin(QString const& response)
+ {
+ emit loggedIn(response);
+ }
+
}