equal
deleted
inserted
replaced
33 #include <HbListWidget> |
33 #include <HbListWidget> |
34 #include <HbFrameBackground> |
34 #include <HbFrameBackground> |
35 #include <HbListViewItem> |
35 #include <HbListViewItem> |
36 #include <HbListWidgetItem> |
36 #include <HbListWidgetItem> |
37 #include <HbNotificationDialog> |
37 #include <HbNotificationDialog> |
|
38 #include <HbDeviceNotificationDialog> |
38 #include <HbMessageBox> |
39 #include <HbMessageBox> |
39 #include <HbAbstractVkbHost> |
40 #include <HbAbstractVkbHost> |
40 #include <HbMainWindow> |
41 #include <HbMainWindow> |
41 #include <xqaiwrequest.h> |
42 #include <xqaiwrequest.h> |
42 #include <xqappmgr.h> |
43 #include <xqappmgr.h> |
85 #define LOC_TO hbTrId("txt_messaging_formlabel_to") |
86 #define LOC_TO hbTrId("txt_messaging_formlabel_to") |
86 #define LOC_CC hbTrId("txt_messaging_formlabel_cc") |
87 #define LOC_CC hbTrId("txt_messaging_formlabel_cc") |
87 #define LOC_BCC hbTrId("txt_messaging_formlabel_bcc") |
88 #define LOC_BCC hbTrId("txt_messaging_formlabel_bcc") |
88 |
89 |
89 //attach options |
90 //attach options |
90 #define LOC_PHOTO hbTrId("txt_messaging_button_photo") |
91 #define LOC_PHOTO hbTrId("txt_messaging_opt_attach_sub_photo") |
91 #define LOC_SOUND hbTrId("txt_messaging_button_sound") |
92 #define LOC_SOUND hbTrId("txt_messaging_opt_attach_sub_sound") |
92 #define LOC_BUSINESS_CARD hbTrId("txt_messaging_button_business_card") |
93 #define LOC_BUSINESS_CARD hbTrId("txt_messaging_opt_sub_business_card") |
93 |
94 |
94 //options menu. |
95 //options menu. |
95 #define LOC_ADD_SUBJECT hbTrId("txt_messaging_opt_add_subject") |
96 #define LOC_ADD_SUBJECT hbTrId("txt_messaging_opt_add_subject") |
96 #define LOC_ADD_CC_BCC hbTrId("txt_messaging_opt_add_cc_bcc") |
97 #define LOC_ADD_CC_BCC hbTrId("txt_messaging_opt_add_cc_bcc") |
97 #define LOC_PRIORITY hbTrId("txt_messaging_opt_priority") |
98 #define LOC_PRIORITY hbTrId("txt_messaging_opt_priority") |
101 #define LOC_HIGH hbTrId("txt_messaging_opt_attach_sub_high") |
102 #define LOC_HIGH hbTrId("txt_messaging_opt_attach_sub_high") |
102 #define LOC_NORMAL hbTrId("txt_messaging_opt_attach_sub_normal") |
103 #define LOC_NORMAL hbTrId("txt_messaging_opt_attach_sub_normal") |
103 #define LOC_LOW hbTrId("txt_messaging_opt_attach_sub_low") |
104 #define LOC_LOW hbTrId("txt_messaging_opt_attach_sub_low") |
104 |
105 |
105 //group box |
106 //group box |
106 #define LOC_OTHER_RECIPIENTS(n) hbTrId("txt_messaging_group_title_ln_other_recipients",n) |
107 #define LOC_OTHER_RECIPIENTS(n) hbTrId("txt_messaging_title_ln_other_recipients",n) |
107 #define LOC_OTHER_RECIPIENTS_EXPAND hbTrId("txt_messaging_title_other_recipients") |
108 #define LOC_OTHER_RECIPIENTS_EXPAND hbTrId("txt_messaging_title_other_recipients") |
108 |
109 |
109 //saved to draft note |
110 //saved to draft note |
110 #define LOC_SAVED_TO_DRAFTS hbTrId("txt_messaging_dpopinfo_saved_to_drafts") |
111 #define LOC_SAVED_TO_DRAFTS hbTrId("txt_messaging_dpopinfo_saved_to_drafts") |
111 |
112 |
432 { |
433 { |
433 int imageSize=0; |
434 int imageSize=0; |
434 QString mimeType; |
435 QString mimeType; |
435 TMsgMediaType mediaType = EMsgMediaUnknown; |
436 TMsgMediaType mediaType = EMsgMediaUnknown; |
436 QString filePath = messageDetails->attachments().at(i)->filePath(); |
437 QString filePath = messageDetails->attachments().at(i)->filePath(); |
437 UniEditorGenUtils* genUtils = new UniEditorGenUtils; |
438 |
|
439 UniEditorGenUtils* genUtils = NULL; |
|
440 QT_TRAP_THROWING(genUtils = new UniEditorGenUtils); |
|
441 |
438 TRAP_IGNORE(genUtils->getFileInfoL(filePath,imageSize, |
442 TRAP_IGNORE(genUtils->getFileInfoL(filePath,imageSize, |
439 mimeType,mediaType)); |
443 mimeType,mediaType)); |
440 delete genUtils; |
444 delete genUtils; |
441 switch(mediaType) |
445 switch(mediaType) |
442 { |
446 { |
511 |
515 |
512 ConvergedMessageAttachmentList attachmentList = |
516 ConvergedMessageAttachmentList attachmentList = |
513 messageDetails.attachments(); |
517 messageDetails.attachments(); |
514 int attachmentCount = attachmentList.count(); |
518 int attachmentCount = attachmentList.count(); |
515 |
519 |
516 UniEditorGenUtils* genUtils = new UniEditorGenUtils; |
520 UniEditorGenUtils* genUtils = NULL; |
|
521 QT_TRAP_THROWING(genUtils = new UniEditorGenUtils); |
517 |
522 |
518 QStringList pendingAttList; |
523 QStringList pendingAttList; |
519 for( int i=0; i < attachmentCount; i++ ) |
524 for( int i=0; i < attachmentCount; i++ ) |
520 { |
525 { |
521 QString filePath = messageDetails.attachments().at(i)->filePath(); |
526 QString filePath = messageDetails.attachments().at(i)->filePath(); |
1180 |
1185 |
1181 bool res = ((msgId > INVALID_MSGID)? true : false); |
1186 bool res = ((msgId > INVALID_MSGID)? true : false); |
1182 |
1187 |
1183 if(res) |
1188 if(res) |
1184 { |
1189 { |
1185 HbNotificationDialog::launchDialog(LOC_SAVED_TO_DRAFTS); |
1190 HbDeviceNotificationDialog::notification("", LOC_SAVED_TO_DRAFTS); |
1186 } |
1191 } |
1187 return msgId; |
1192 return msgId; |
1188 } |
1193 } |
1189 |
1194 |
1190 void MsgUnifiedEditorView::resizeEvent( QGraphicsSceneResizeEvent * event ) |
1195 void MsgUnifiedEditorView::resizeEvent( QGraphicsSceneResizeEvent * event ) |