equal
deleted
inserted
replaced
24 #include <QDateTime> |
24 #include <QDateTime> |
25 |
25 |
26 #include "conversationmsgstorehandler.h" |
26 #include "conversationmsgstorehandler.h" |
27 #include "draftsmodel.h" |
27 #include "draftsmodel.h" |
28 #include "MuiuOperationWait.h" |
28 #include "MuiuOperationWait.h" |
29 #include "MsgBioUids.h" |
29 #include "msgbiouids.h" |
30 #include "UniEditorGenUtils.h" |
30 #include "UniEditorGenUtils.h" |
31 |
31 |
32 // SYSTEM INCLUDES |
32 // SYSTEM INCLUDES |
33 #include <StringLoader.h> |
33 #include <StringLoader.h> |
34 #include <ccsdefs.h> |
34 #include <ccsdefs.h> |
950 |
950 |
951 switch(entry.iMtm.iUid) |
951 switch(entry.iMtm.iUid) |
952 { |
952 { |
953 case KSenduiMtmSmsUidValue: |
953 case KSenduiMtmSmsUidValue: |
954 msgType = ConvergedMessage::Sms; |
954 msgType = ConvergedMessage::Sms; |
|
955 if (entry.iBioType == KMsgBioNokiaServiceSentMessage.iUid) { |
|
956 msgSubType = ConvergedMessage::NokiaService; |
|
957 } |
955 break; |
958 break; |
956 case KSenduiMtmBtUidValue: |
959 case KSenduiMtmBtUidValue: |
957 msgType = ConvergedMessage::BT; |
960 msgType = ConvergedMessage::BT; |
958 break; |
961 break; |
959 case KSenduiMtmMmsUidValue: |
962 case KSenduiMtmMmsUidValue: |
980 msgSubType = ConvergedMessage::VCard; |
983 msgSubType = ConvergedMessage::VCard; |
981 } |
984 } |
982 else if (entry.iBioType == KMsgBioUidVCalendar.iUid) |
985 else if (entry.iBioType == KMsgBioUidVCalendar.iUid) |
983 { |
986 { |
984 msgSubType = ConvergedMessage::VCal; |
987 msgSubType = ConvergedMessage::VCal; |
985 } |
988 } |
986 } |
989 else if (entry.iBioType == KMsgBioNokiaServiceSentMessage.iUid) { |
987 break; |
990 msgSubType = ConvergedMessage::NokiaService; |
988 default: |
991 } |
989 msgType = ConvergedMessage::None; |
992 } |
990 break; |
993 break; |
991 } |
994 default: |
992 } |
995 msgType = ConvergedMessage::None; |
|
996 break; |
|
997 } |
|
998 } |
|
999 |
|
1000 int ConversationMsgStoreHandler::getMsgSubType(int msgId) |
|
1001 { |
|
1002 int msgType = ConvergedMessage::None; |
|
1003 int msgSubType = ConvergedMessage::None; |
|
1004 CMsvEntry* cEntry = NULL; |
|
1005 TRAPD(err, cEntry = iMsvSession->GetEntryL(msgId)); |
|
1006 if (err == KErrNone) { |
|
1007 TMsvEntry entry = cEntry->Entry(); |
|
1008 extractMsgType(entry, msgType, msgSubType); |
|
1009 } |
|
1010 return msgSubType; |
|
1011 } |
|
1012 |
993 // End of file |
1013 // End of file |