mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/crequestchecker.cpp
branchRCL_3
changeset 14 05b0d2323768
parent 9 bee149131e4b
child 17 780c925249c1
equal deleted inserted replaced
9:bee149131e4b 14:05b0d2323768
    78     iObjectArray.ResetAndDestroy();
    78     iObjectArray.ResetAndDestroy();
    79     }
    79     }
    80 
    80 
    81 // -----------------------------------------------------------------------------
    81 // -----------------------------------------------------------------------------
    82 // CRequestChecker::VerifyRequestL
    82 // CRequestChecker::VerifyRequestL
    83 // Verfiy the request
    83 // Verify the request
    84 // -----------------------------------------------------------------------------
    84 // -----------------------------------------------------------------------------
    85 //
    85 //
    86 TMTPResponseCode CRequestChecker::VerifyRequestL( const TMTPTypeRequest& aRequest,
    86 TMTPResponseCode CRequestChecker::VerifyRequestL( const TMTPTypeRequest& aRequest,
    87     TInt aCount,
    87     TInt aCount,
    88     const TMTPRequestElementInfo* aElementInfo )
    88     const TMTPRequestElementInfo* aElementInfo )
   284         // covered implicitly here, EMTPRespCodeOK will be returned. It is a valid case for an object to be either a folder or file
   284         // covered implicitly here, EMTPRespCodeOK will be returned. It is a valid case for an object to be either a folder or file
   285         // for certain operation's request parameter, for instance the first parameter of copyObject or
   285         // for certain operation's request parameter, for instance the first parameter of copyObject or
   286         // moveObject can be either a file or a directory.
   286         // moveObject can be either a file or a directory.
   287 
   287 
   288         // Other cases.
   288         // Other cases.
   289         if ( ( EMTPRespCodeOK == ret ) && ( aElementInfo.iElementAttr & EMTPElementAttrFile) )
   289         if ( ( EMTPRespCodeOK == ret ) && ( aElementInfo.iElementAttr & EMTPElementAttrFile ) )
   290             {
   290             {
   291             if ( entry.IsDir() )
   291             if ( entry.IsDir() )
   292                 {
   292                 {
   293                 ret = EMTPRespCodeInvalidObjectHandle;
   293                 ret = EMTPRespCodeInvalidObjectHandle;
   294                 }
   294                 }