1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Add status message setter and getter

This commit is contained in:
agilob 2015-11-09 20:53:24 +00:00
parent 8a3c9d14c0
commit 170eb931ff
No known key found for this signature in database
GPG Key ID: 296F0B764741106C
2 changed files with 8 additions and 1 deletions

View File

@ -92,10 +92,16 @@ void Friend::setAlias(QString name)
void Friend::setStatusMessage(QString message)
{
statusMessage = message;
widget->setStatusMsg(message);
chatForm->setStatusMessage(message);
}
QString Friend::getStatusMessage()
{
return statusMessage;
}
QString Friend::getDisplayedName() const
{
if (userAlias.size() == 0)

View File

@ -46,6 +46,7 @@ public:
bool hasAlias() const;
void setStatusMessage(QString message);
QString getStatusMessage();
void setEventFlag(int f);
int getEventFlag() const;
@ -64,7 +65,7 @@ signals:
void displayedNameChanged(FriendWidget* widget, Status s, int hasNewEvents);
private:
QString userAlias, userName;
QString userAlias, userName, statusMessage;
ToxId userID;
uint32_t friendId;
int hasNewEvents;