messagingapp/msgnotifications/msgindicatorplugin/src/msgindicator.cpp
changeset 34 84197e66a4bd
parent 31 ebfee66fde93
child 43 35b64624a9e7
equal deleted inserted replaced
31:ebfee66fde93 34:84197e66a4bd
    39 #define LOC_UNREAD_MULTIPLE_MESSAGES hbTrId("Unread Messages")
    39 #define LOC_UNREAD_MULTIPLE_MESSAGES hbTrId("Unread Messages")
    40 #define LOC_FAILED_SINGLE_MESSAGE hbTrId("Failed Message")
    40 #define LOC_FAILED_SINGLE_MESSAGE hbTrId("Failed Message")
    41 #define LOC_FAILED_MULTIPLE_MESSAGES hbTrId("Failed Messages")
    41 #define LOC_FAILED_MULTIPLE_MESSAGES hbTrId("Failed Messages")
    42 #define LOC_OUTGOING_SINGLE_MESSAGE hbTrId("Outgoing Message")
    42 #define LOC_OUTGOING_SINGLE_MESSAGE hbTrId("Outgoing Message")
    43 #define LOC_OUTGOING_MULTIPLE_MESSAGES hbTrId("Outgoing Messages")
    43 #define LOC_OUTGOING_MULTIPLE_MESSAGES hbTrId("Outgoing Messages")
    44 
    44 #define STATUS_MONO_NEW_MESSAGE QString("qtg_status_new_message")
    45 /**
    45 /**
    46  * The number of indicators.
    46  * The number of indicators.
    47  */
    47  */
    48 static const int MsgIndicatorCount = 4;
    48 static const int MsgIndicatorCount = 4;
    49 
    49 
   168         return IndicatorInfo[mIndicatorType].icon;        
   168         return IndicatorInfo[mIndicatorType].icon;        
   169     }
   169     }
   170     case MonoDecorationNameRole:
   170     case MonoDecorationNameRole:
   171     {
   171     {
   172         if (NewIndicatorPlugin == mIndicatorType) {
   172         if (NewIndicatorPlugin == mIndicatorType) {
   173             return IndicatorInfo[mIndicatorType].icon;
   173             return STATUS_MONO_NEW_MESSAGE;
   174         }
   174         }
   175         else {
   175         else {
   176             // Don't show status-bar icons for indications other 
   176             // Don't show status-bar icons for indications other 
   177 			// than new-message
   177 			// than new-message
   178             return QVariant();
   178             return QVariant();