mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Show the connected gpg item with no state information in PeersDialog and MessengerWindow as online.
Added state string "Offline" to p3Status::getStatusString. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3470 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c854b9feb1
commit
3759f8de6f
4 changed files with 153 additions and 153 deletions
|
@ -59,23 +59,23 @@ bool p3Status::sendStatus(std::string id, uint32_t status){
|
|||
|
||||
void p3Status::getStatusString(uint32_t status, std::string& statusString){
|
||||
|
||||
if (status == RS_STATUS_AWAY){
|
||||
|
||||
switch (status) {
|
||||
case RS_STATUS_OFFLINE:
|
||||
statusString = "Offline";
|
||||
break;
|
||||
case RS_STATUS_AWAY:
|
||||
statusString = "Away";
|
||||
|
||||
}else if (status == RS_STATUS_BUSY){
|
||||
|
||||
break;
|
||||
case RS_STATUS_BUSY:
|
||||
statusString = "Busy";
|
||||
|
||||
}else if (status == RS_STATUS_ONLINE){
|
||||
|
||||
statusString = "Online";
|
||||
|
||||
}else if(status == RS_STATUS_INACTIVE){
|
||||
|
||||
statusString = "Inactive";
|
||||
|
||||
}
|
||||
|
||||
return;
|
||||
break;
|
||||
case RS_STATUS_ONLINE:
|
||||
statusString = "Online";
|
||||
break;
|
||||
case RS_STATUS_INACTIVE:
|
||||
statusString = "Inactive";
|
||||
break;
|
||||
default:
|
||||
statusString.erase();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue