contentmgmt/contentaccessfwfordrm/source/caf/supplieroutputfile.cpp
changeset 8 35751d3474b7
parent 0 2c201484c85f
child 15 da2ae96f639b
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #include "apgcli.h"
    19 #include "apgcli.h"
    20 #include "apmstd.h"
    20 #include "apmstd.h"
    21 #include "supplieroutputfile.h"
    21 #include <caf/supplieroutputfile.h>
    22 
    22 
    23 #include <caf/caftypes.h>
    23 #include <caf/caftypes.h>
    24 #include "resolver.h"
    24 #include "resolver.h"
    25 
    25 
    26 #ifndef REMOVE_CAF1
    26 #ifndef REMOVE_CAF1
   112 		RFs tempFsSession; 
   112 		RFs tempFsSession; 
   113 		User::LeaveIfError(tempFsSession.Connect());     
   113 		User::LeaveIfError(tempFsSession.Connect());     
   114 	  	CleanupClosePushL(tempFsSession);
   114 	  	CleanupClosePushL(tempFsSession);
   115 	  	User::LeaveIfError(tempFsSession.ShareProtected());  
   115 	  	User::LeaveIfError(tempFsSession.ShareProtected());  
   116 	  	
   116 	  	
   117 	  	// Open file here and send the handle because AppArc doesn't have Allfiles capability 
   117 	  	// Open file here and send the handle because AppArc doesn't have Allfiles capability
   118 	  	RFile tempFile; 
   118 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
       
   119 	  	// If file size is greater than 2GB than RFile::Open will fail with KErrTooBig.
       
   120 	  	// So RFile64.
       
   121 	  	RFile64 tempFile; 
       
   122 #else
       
   123 	  	RFile tempFile;
       
   124 #endif //SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   119 	  	User::LeaveIfError(tempFile.Open(tempFsSession, *iFileName, EFileRead|EFileShareAny)); 
   125 	  	User::LeaveIfError(tempFile.Open(tempFsSession, *iFileName, EFileRead|EFileShareAny)); 
   120 	  	CleanupClosePushL(tempFile); 
   126 	  	CleanupClosePushL(tempFile); 
   121    
   127    
   122 		User::LeaveIfError(apparcSession.AppForDocument(tempFile, uid, dataType)); 
   128 		User::LeaveIfError(apparcSession.AppForDocument(tempFile, uid, dataType)); 
   123 
   129