equal
deleted
inserted
replaced
19 #include <xqaiwrequest.h> |
19 #include <xqaiwrequest.h> |
20 #include <xqrequestinfo.h> |
20 #include <xqrequestinfo.h> |
21 #include <xqappmgr.h> |
21 #include <xqappmgr.h> |
22 #include <hbglobal.h> |
22 #include <hbglobal.h> |
23 #include <xqconversions.h> |
23 #include <xqconversions.h> |
|
24 #include <hbdevicemessagebox.h> |
24 |
25 |
25 #include "msgservicelaunchutil.h" |
26 #include "msgservicelaunchutil.h" |
26 #include "msgcontactsutil.h" |
27 #include "msgcontactsutil.h" |
27 #include "msgservicelaunchutilprivate.h" |
28 #include "msgservicelaunchutilprivate.h" |
28 #include "debugtraces.h" |
29 #include "debugtraces.h" |
29 |
30 |
30 // LOCAL CONSTANTS |
31 // LOCAL CONSTANTS |
31 #define LOC_TITLE hbTrId("txt_messaging_title_messaging") |
32 #define LOC_TITLE hbTrId("txt_messaging_title_messaging") |
|
33 #define LOC_FILE_NOT_OPEN hbTrId("txt_messages_dialog_file_cannot_be_opened") |
32 const QString VCARD_MIMETYPE("text/X-vCard"); |
34 const QString VCARD_MIMETYPE("text/X-vCard"); |
33 |
35 |
34 //-------------------------------------------------------------- |
36 //-------------------------------------------------------------- |
35 // MsgServiceLaunchUtil::MsgServiceLaunchUtil |
37 // MsgServiceLaunchUtil::MsgServiceLaunchUtil |
36 // Constructor |
38 // Constructor |
122 if (fileHandlers.count() > 0) { |
124 if (fileHandlers.count() > 0) { |
123 XQAiwInterfaceDescriptor d = fileHandlers.first(); |
125 XQAiwInterfaceDescriptor d = fileHandlers.first(); |
124 request = appManager.create(sf, d); |
126 request = appManager.create(sf, d); |
125 |
127 |
126 if (!request) { |
128 if (!request) { |
|
129 HbDeviceMessageBox::information(LOC_FILE_NOT_OPEN); |
127 sf.close(); |
130 sf.close(); |
128 return; |
131 return; |
129 } |
132 } |
130 } |
133 } |
131 else { |
134 else { |
|
135 HbDeviceMessageBox::information(LOC_FILE_NOT_OPEN); |
132 sf.close(); |
136 sf.close(); |
133 return; |
137 return; |
134 } |
138 } |
135 |
139 |
136 // Result handlers |
140 // Result handlers |