summaryrefslogtreecommitdiff
path: root/member.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'member.cxx')
-rw-r--r--member.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/member.cxx b/member.cxx
index fd6167e..aa0c66d 100644
--- a/member.cxx
+++ b/member.cxx
@@ -334,6 +334,14 @@ namespace QInterchange {
if (m_data != data) m_data = data;
}
+ void Member::account()
+ {
+ interchange_member_account([](interchange_response* response) {
+ member->emitAccount(QString{response->data});
+ interchange_free_response(response);
+ });
+ }
+
void Member::setAccount(QString const& firstName,
QString const& lastName, QString const& address1,
QString const& address2, QString const& city,
@@ -375,4 +383,8 @@ namespace QInterchange {
emit loggedIn(response);
}
+ void Member::emitAccount(QString const& response)
+ {
+ emit gotAccount(response);
+ }
}