From 54ed8aaa4f989196b76334b5fb84e5bbc846bc0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Thu, 16 Jul 2020 11:01:25 +0800 Subject: Member data is emptied on logOut --- qicclient/member.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qicclient') diff --git a/qicclient/member.hxx b/qicclient/member.hxx index b81d4ea..631a8aa 100644 --- a/qicclient/member.hxx +++ b/qicclient/member.hxx @@ -75,7 +75,6 @@ namespace QICClient { void changePassword(QString const& passwordOld, QString const& password, QString const& verify) {} - void logOut(); QString const& userName() const { return m_userName; } QString const& userNick() const { return m_userNick; } @@ -117,6 +116,9 @@ namespace QICClient { void setPhoneDay(QString const& phoneDay); void setEmail(QString const& email); + public slots: + void logOut(); + signals: void userNameChanged(); void userNickChanged(); @@ -159,6 +161,7 @@ namespace QICClient { QString m_phoneDay; QString m_email; icclient_member* m_data; + void setData(icclient_member* data); }; } -- cgit v1.2.3