meetingrequest/mrgui/mrfieldbuilderplugin/src/cmrsaveandopenattachmentcommand.cpp
branchRCL_3
changeset 26 67369d1b217f
parent 24 b5fbb9b25d57
--- a/meetingrequest/mrgui/mrfieldbuilderplugin/src/cmrsaveandopenattachmentcommand.cpp	Tue May 11 15:57:15 2010 +0300
+++ b/meetingrequest/mrgui/mrfieldbuilderplugin/src/cmrsaveandopenattachmentcommand.cpp	Tue May 25 12:23:16 2010 +0300
@@ -22,7 +22,6 @@
 #include <DocumentHandler.h>
 #include <coemain.h>
 #include <esmrgui.rsg>
-#include <NpdApi.h>
 #include <aknnotewrappers.h>
 #include <StringLoader.h>
 
@@ -30,13 +29,6 @@
 #include "emailtrace.h"
 
 
-namespace { // codescanner::namespace
-
-// Notepad data type
-_LIT8( KNotePadTextDataType, "text/plain" );
-
-}
-
 // ======== MEMBER FUNCTIONS ========
 
 // ---------------------------------------------------------------------------
@@ -134,21 +126,8 @@
     TDataType datatype(
             aEntry.AttachmentL( aAttachmentIndex )->MimeType() );
 
-    if( datatype == KNotePadTextDataType() )
-        {
-        // Notepad will try to open text/plain type data
-        err = CNotepadApi::ExecFileViewerL(
-                copiedFile,
-                NULL,
-               ETrue,
-               EFalse,
-               KCharacterSetIdentifierIso88591 );
-        }
-    else
-        {
-        // Doc handler will try to open other than text files
-        TRAP( err, iDocHandler.OpenFileEmbeddedL( copiedFile, datatype ) );
-        }
+    // Doc handler will try to open file
+    TRAP( err, iDocHandler.OpenFileEmbeddedL( copiedFile, datatype ) );
 
     CleanupStack::PopAndDestroy( &copiedFile );
     CleanupStack::PopAndDestroy( &file );