mtpfws/mtpfw/dataproviders/dputility/inc/cmtpsetobjectpropvalue.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef __CMTPSETOBJECTPROPVALUE_H__
       
    22 #define __CMTPSETOBJECTPROPVALUE_H__
       
    23 
       
    24 #include <e32std.h> 
       
    25 #include <mtp/cmtpobjectmetadata.h>
       
    26 #include "cmtprequestprocessor.h"
       
    27 #include "rmtpframework.h"
       
    28 #include "rmtpdpsingletons.h"
       
    29 
       
    30 class CMTPTypeString;
       
    31 class TMTPTypeUint8;
       
    32 
       
    33 
       
    34 /** 
       
    35 Defines file data provider SetObjectPropValue request processor
       
    36 
       
    37 @internalTechnology
       
    38 */
       
    39 class CMTPSetObjectPropValue : public CMTPRequestProcessor
       
    40 	{
       
    41 public:
       
    42 	IMPORT_C static MMTPRequestProcessor* NewL(
       
    43 									MMTPDataProviderFramework& aFramework,
       
    44 									MMTPConnection& aConnection);	
       
    45 	IMPORT_C ~CMTPSetObjectPropValue();	
       
    46 	
       
    47 private:	
       
    48 	CMTPSetObjectPropValue(
       
    49 					MMTPDataProviderFramework& aFramework,
       
    50 					MMTPConnection& aConnection);
       
    51 	void ConstructL();
       
    52 	TBool IsPropCodeReadonly(TUint32 aObjectPropCode);
       
    53 
       
    54 private:	//from CMTPRequestProcessor
       
    55 	virtual TMTPResponseCode CheckRequestL();
       
    56 	virtual void ServiceL();
       
    57 	virtual TBool DoHandleResponsePhaseL();
       
    58 	TBool HasDataphase() const;
       
    59 
       
    60 private:
       
    61 	CMTPTypeString*			iMTPTypeString;
       
    62 	TMTPTypeUint8			iMTPTypeUint8;
       
    63 	TMTPTypeUint16			iMTPTypeUint16;
       
    64 	TMTPTypeUint32			iMTPTypeUint32;
       
    65 	RMTPFramework			iSingleton;
       
    66 	TEntry 					iFileEntry;
       
    67 	RFs&					iRfs;
       
    68 	CMTPObjectMetaData*		iObjMeta;
       
    69 	
       
    70     /**
       
    71     DP utility singletons
       
    72     */
       
    73     RMTPDpSingletons					iDpSingletons;
       
    74 	};
       
    75 	
       
    76 #endif
       
    77