filemanager/Engine/src/CFileManagerDocHandler.cpp
changeset 1 d1daf54a55b5
parent 0 6a9f87576119
equal deleted inserted replaced
0:6a9f87576119 1:d1daf54a55b5
   185 // -----------------------------------------------------------------------------
   185 // -----------------------------------------------------------------------------
   186 //
   186 //
   187 void CFileManagerDocHandler::OpenShareableFileL(
   187 void CFileManagerDocHandler::OpenShareableFileL(
   188         RFile64& aShareableFile, const TDesC8& aMime )
   188         RFile64& aShareableFile, const TDesC8& aMime )
   189     {
   189     {
       
   190     // Check if iFileFullPath is NULL
       
   191     if ( !iFileFullPath )
       
   192         {
       
   193         User::Leave( KErrNotFound );
       
   194         }
       
   195     
   190     // Check if file open is denied
   196     // Check if file open is denied
   191     if ( iObserver && iFileFullPath )
   197     if ( iObserver )
   192         {
   198         {
   193         if ( iObserver->NotifyL(
   199         if ( iObserver->NotifyL(
   194                 MFileManagerProcessObserver::ENotifyFileOpenDenied,
   200                 MFileManagerProcessObserver::ENotifyFileOpenDenied,
   195                 0,
   201                 0,
   196                 *iFileFullPath ) )
   202                 *iFileFullPath ) )