equal
deleted
inserted
replaced
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 #define LOC_BUSINESSCARD hbTrId("Business card") |
45 /** |
46 /** |
46 * The number of indicators. |
47 * The number of indicators. |
47 */ |
48 */ |
48 static const int MsgIndicatorCount = 4; |
49 static const int MsgIndicatorCount = 4; |
49 |
50 |
168 return IndicatorInfo[mIndicatorType].icon; |
169 return IndicatorInfo[mIndicatorType].icon; |
169 } |
170 } |
170 case MonoDecorationNameRole: |
171 case MonoDecorationNameRole: |
171 { |
172 { |
172 if (NewIndicatorPlugin == mIndicatorType) { |
173 if (NewIndicatorPlugin == mIndicatorType) { |
173 return IndicatorInfo[mIndicatorType].icon; |
174 return STATUS_MONO_NEW_MESSAGE; |
174 } |
175 } |
175 else { |
176 else { |
176 // Don't show status-bar icons for indications other |
177 // Don't show status-bar icons for indications other |
177 // than new-message |
178 // than new-message |
178 return QVariant(); |
179 return QVariant(); |
317 if (info.mFromSingle) { |
318 if (info.mFromSingle) { |
318 if (ECsBlueTooth == info.mMessageType) { |
319 if (ECsBlueTooth == info.mMessageType) { |
319 QFileInfo fname(secondaryText); |
320 QFileInfo fname(secondaryText); |
320 secondaryText = fname.fileName(); |
321 secondaryText = fname.fileName(); |
321 } |
322 } |
|
323 else if(ECsBioMsg_VCard == info.mMessageType) { |
|
324 secondaryText = LOC_BUSINESSCARD; |
|
325 } |
322 } |
326 } |
323 else { |
327 else { |
324 info.mConversationId = -100; |
328 info.mConversationId = -100; |
325 } |
329 } |
326 } |
330 } |