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:
thunder2 2010-09-11 20:25:08 +00:00
parent c854b9feb1
commit 3759f8de6f
4 changed files with 153 additions and 153 deletions

View file

@ -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();
}
}