messagingapp/msgui/unifiedviewer/src/univiewerutils.cpp
changeset 52 12db4185673b
parent 43 35b64624a9e7
equal deleted inserted replaced
44:36f374c67aa8 52:12db4185673b
    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