mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-17 01:24:15 -05:00
moved peerStatusChanged() from notify to rsEvents
This commit is contained in:
parent
0ce2dd8486
commit
e6cacc4d34
26 changed files with 281 additions and 187 deletions
|
|
@ -330,7 +330,7 @@ QString ChatDialog::getOwnName() const
|
|||
return "ChatDialog::getOwnName(): invalid id type passed (RsPeerId is required). This is a bug.";
|
||||
}
|
||||
|
||||
void ChatDialog::setPeerStatus(uint32_t status)
|
||||
void ChatDialog::setPeerStatus(RsStatusValue status)
|
||||
{
|
||||
ChatWidget *cw = getChatWidget();
|
||||
if (cw)
|
||||
|
|
@ -346,14 +346,14 @@ void ChatDialog::setPeerStatus(uint32_t status)
|
|||
cw->updateStatus(QString::fromStdString(vpid.toStdString()), status);
|
||||
}
|
||||
}
|
||||
int ChatDialog::getPeerStatus()
|
||||
RsStatusValue ChatDialog::getPeerStatus()
|
||||
{
|
||||
ChatWidget *cw = getChatWidget();
|
||||
if (cw) {
|
||||
return cw->getPeerStatus();
|
||||
}
|
||||
|
||||
return 0;
|
||||
return RsStatusValue::RS_STATUS_UNKNOWN;
|
||||
}
|
||||
|
||||
QString ChatDialog::getTitle()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue