equal
deleted
inserted
replaced
55 // UniViewerUtils::addAttachmentWidget |
55 // UniViewerUtils::addAttachmentWidget |
56 // @see header file |
56 // @see header file |
57 //--------------------------------------------------------------- |
57 //--------------------------------------------------------------- |
58 void UniViewerUtils::launchContentViewer(const QString &mimeType, const QString &filePath) |
58 void UniViewerUtils::launchContentViewer(const QString &mimeType, const QString &filePath) |
59 { |
59 { |
60 if (mimeType.contains(IMAGE_MIMETYPE) || mimeType.contains(AUDIO_MIMETYPE) || |
60 if (mimeType.contains(VCARD_MIMETYPE, Qt::CaseInsensitive)) { |
61 mimeType.contains(VIDEO_MIMETYPE)) { |
61 MsgContactsUtil::launchVCardViewer(filePath); |
|
62 } |
|
63 else { |
62 launchViaSharableFile(filePath); |
64 launchViaSharableFile(filePath); |
63 } |
|
64 else if (mimeType.contains(VCARD_MIMETYPE, Qt::CaseInsensitive)) { |
|
65 MsgContactsUtil::launchVCardViewer(filePath); |
|
66 } |
65 } |
67 } |
66 } |
68 |
67 |
69 //--------------------------------------------------------------- |
68 //--------------------------------------------------------------- |
70 // UniViewerUtils::handleOk |
69 // UniViewerUtils::handleOk |