mtpfws/mtpfw/dataproviders/proxydp/src/cmtpcopyobject.cpp
changeset 17 aabe5387f5ce
parent 0 d0791faffa3f
child 29 3ae5cb0b4c02
equal deleted inserted replaced
0:d0791faffa3f 17:aabe5387f5ce
    25 
    25 
    26 __FLOG_STMT( _LIT8( KComponent,"PrxyCopyObj" ); )
    26 __FLOG_STMT( _LIT8( KComponent,"PrxyCopyObj" ); )
    27 const TUint KInvalidDpId = 0xFF;
    27 const TUint KInvalidDpId = 0xFF;
    28 
    28 
    29 /**
    29 /**
       
    30 Verification data for the CopyObject request
       
    31 */    
       
    32 const TMTPRequestElementInfo KMTPCopyObjectPolicy[] = 
       
    33     {
       
    34     	{TMTPTypeRequest::ERequestParameter1, EMTPElementTypeObjectHandle, EMTPElementAttrFileOrDir, 0, 0, 0},   	
       
    35         {TMTPTypeRequest::ERequestParameter2, EMTPElementTypeStorageId, EMTPElementAttrWrite, 0, 0, 0},                
       
    36         {TMTPTypeRequest::ERequestParameter3, EMTPElementTypeObjectHandle, EMTPElementAttrDir | EMTPElementAttrWrite, 1, 0, 0}
       
    37     };
       
    38 
       
    39 
       
    40 /**
    30 Two-phase construction method
    41 Two-phase construction method
    31 @param aFramework    The data provider framework
    42 @param aFramework    The data provider framework
    32 @param aConnection    The connection from which the request comes
    43 @param aConnection    The connection from which the request comes
    33 @return a pointer to the created request processor object
    44 @return a pointer to the created request processor object
    34 */ 
    45 */ 
    59 
    70 
    60 /**
    71 /**
    61 Constructor
    72 Constructor
    62 */    
    73 */    
    63 CMTPCopyObject::CMTPCopyObject(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection) :
    74 CMTPCopyObject::CMTPCopyObject(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection) :
    64     CMTPRequestProcessor(aFramework, aConnection, 0, NULL)
    75     CMTPRequestProcessor(aFramework, aConnection, sizeof(KMTPCopyObjectPolicy)/sizeof(TMTPRequestElementInfo), KMTPCopyObjectPolicy)
    65     {
    76     {
    66     __FLOG_OPEN( KMTPSubsystem, KComponent );
    77     __FLOG_OPEN( KMTPSubsystem, KComponent );
    67     __FLOG( _L8("+/-Ctor") );
    78     __FLOG( _L8("+/-Ctor") );
    68     }
    79     }
    69     
    80