Logo Search packages:      
Sourcecode: kmess version File versions  Download package

QString MsnStatus::getName ( const Status  status  )  [static]

Returns the localized name for a status

Parameters:
status The status to convert
Returns:
Localized status name

Definition at line 154 of file msnstatus.cpp.

References STATUS_AWAY, STATUS_AWAY_AUTOREPLY, STATUS_BE_RIGHT_BACK, STATUS_BUSY, STATUS_IDLE, STATUS_INVISIBLE, STATUS_OFFLINE, STATUS_ON_THE_PHONE, and STATUS_OUT_TO_LUNCH.

Referenced by getStatusMenu().

{
  // Localize and return the status name
  switch( status )
  {
    case STATUS_ONLINE:         return i18n( "Online"               );
    case STATUS_BUSY:           return i18n( "Busy"                 );
    case STATUS_AWAY:           return i18n( "Away"                 );
    case STATUS_AWAY_AUTOREPLY: return i18n( "Away with Auto-Reply" );
    case STATUS_IDLE:           return i18n( "Idle"                 );
    case STATUS_BE_RIGHT_BACK:  return i18n( "Be Right Back"        );
    case STATUS_ON_THE_PHONE:   return i18n( "On the Phone"         );
    case STATUS_OUT_TO_LUNCH:   return i18n( "Out to Lunch"         );
    case STATUS_INVISIBLE:      return i18n( "Invisible"            );
    case STATUS_OFFLINE:        return i18n( "Offline"              );

    default:
      kWarning() << "Invalid status" << status << "!";
      return i18n( "Online" );
  }
}


Generated by  Doxygen 1.6.0   Back to index