mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cgetpartialobject.cpp
branchRCL_3
changeset 17 780c925249c1
parent 14 05b0d2323768
child 30 6f9f6e99a23e
equal deleted inserted replaced
15:d240f0a77280 17:780c925249c1
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #include <mtp/cmtptypefile.h>
    19 #include <mtp/cmtptypefile.h>
    20 #include <mtp/mmtpdataproviderframework.h>
       
    21 #include <mtp/cmtpobjectmetadata.h>
       
    22 
    20 
    23 #include "cgetpartialobject.h"
    21 #include "cgetpartialobject.h"
    24 #include "mmmtpdplogger.h"
    22 #include "mmmtpdplogger.h"
    25 #include "tmmmtpdppanic.h"
    23 #include "tmmmtpdppanic.h"
    26 #include "mmmtpdpconfig.h"
    24 #include "mmmtpdpconfig.h"
   152 
   150 
   153     // Get file information
   151     // Get file information
   154     CMTPObjectMetaData* objectInfo = iRequestChecker->GetObjectInfo( iObjectHandle );
   152     CMTPObjectMetaData* objectInfo = iRequestChecker->GetObjectInfo( iObjectHandle );
   155     __ASSERT_DEBUG( objectInfo, Panic( EMmMTPDpObjectNull ) );
   153     __ASSERT_DEBUG( objectInfo, Panic( EMmMTPDpObjectNull ) );
   156 
   154 
       
   155     // NOTE: Change all TBuf<KMaxFileName> into TFileName for easily change when fs change the limitation of filename
   157     TFileName fileSuid;
   156     TFileName fileSuid;
   158     fileSuid.Append( objectInfo->DesC( CMTPObjectMetaData::ESuid ) );
   157     fileSuid.Append( objectInfo->DesC( CMTPObjectMetaData::ESuid ) );
   159 
   158 
   160     iFileObject = CMTPTypeFile::NewL( iFramework.Fs(),
   159     iFileObject = CMTPTypeFile::NewL( iFramework.Fs(),
   161         fileSuid,
   160         fileSuid,