diff options
-rw-r--r-- | interchange/member.hxx | 2 | ||||
-rw-r--r-- | member.cxx | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/interchange/member.hxx b/interchange/member.hxx index 4e471df..18891ca 100644 --- a/interchange/member.hxx +++ b/interchange/member.hxx @@ -96,6 +96,7 @@ namespace QInterchange { void logOut(); signals: + void created(QString const& response); void loggedIn(QString const& response); void userNameChanged(); void userNickChanged(); @@ -118,6 +119,7 @@ namespace QInterchange { void emailChanged(); protected: + void emitCreation(QString const& response); void emitLogin(QString const& response); private: @@ -55,6 +55,7 @@ namespace QInterchange { free(pwCopy); free(vCopy); free(fpCopy); + member->emitCreation(QString{response->data}); interchange_free_response(response); }, nullptr); } @@ -361,6 +362,11 @@ namespace QInterchange { setData(nullptr); } + void Member::emitCreation(QString const& response) + { + emit created(response); + } + void Member::emitLogin(QString const& response) { emit loggedIn(response); |