mtpdataproviders/mtppictbridgedp/inc/cmtppictbridgedpgetobjectproplist.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 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  @internalComponent
       
    19  */
       
    20 
       
    21 
       
    22 #ifndef CMTPPICTBRIDGEDPGETOBJECTPROPLIST_H_
       
    23 #define CMTPPICTBRIDGEDPGETOBJECTPROPLIST_H_
       
    24 
       
    25 #include "cmtprequestprocessor.h"
       
    26 #include "cmtppictbridgedp.h"
       
    27 #include "rmtpdpsingletons.h"
       
    28 
       
    29 class CMTPTypeArray;
       
    30 class CMTPTypeObjectPropList;
       
    31 
       
    32 /** 
       
    33 Implements the picturebridge data provider GetObjectPropList request processor.
       
    34 */
       
    35 class CMTPPictBridgeDpGetObjectPropList : public CMTPRequestProcessor
       
    36     {
       
    37 public:
       
    38     static MMTPRequestProcessor* NewL( MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection, CMTPPictBridgeDataProvider& aDataProvider);
       
    39     ~CMTPPictBridgeDpGetObjectPropList();
       
    40     
       
    41 private:
       
    42     CMTPPictBridgeDpGetObjectPropList( MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection, CMTPPictBridgeDataProvider& aDataProvider);
       
    43     void ConstructL();
       
    44     
       
    45 private://from CMTPRequestProcessor
       
    46     void ServiceL();
       
    47     TMTPResponseCode CheckRequestL();
       
    48     
       
    49 private:
       
    50 
       
    51     TMTPResponseCode CheckPropCode() const;
       
    52     TMTPResponseCode CheckDepth() const;
       
    53     
       
    54     void GetObjectHandlesL();
       
    55     void GetObjectHandlesL( TUint32 aStorageId, TUint32 aFormatCode, TUint32 aParentHandle );
       
    56     void GetRootObjectHandlesL( TUint32 aFormatCode, TUint32 aDepth );
       
    57     
       
    58     void ServiceAllPropertiesL(TUint32 aHandle, TBool aDiscoveryFile );
       
    59     void ServiceGroupPropertiesL(TUint32 aHandle,TUint16 aGroupCode, TBool aDiscoveryFile );
       
    60     void ServiceOneObjectPropertyL(TUint32 aHandle, TUint32 aPropCode, TBool aDiscoveryFile );
       
    61     
       
    62 private: // Owned
       
    63     CMTPPictBridgeDataProvider&   iPictBridgeDP;    
       
    64     CMTPTypeArray*          iHandles;
       
    65     CMTPTypeObjectPropList* iPropertyList;
       
    66     RMTPDpSingletons		iDpSingletons; 
       
    67 	CMTPObjectMetaData*		iObjMeta;
       
    68 	TEntry 					iFileEntry;
       
    69     /**
       
    70     FLOGGER debug trace member variable.
       
    71     */
       
    72     __FLOG_DECLARATION_MEMBER_MUTABLE;
       
    73     };
       
    74 
       
    75 #endif /* CMTPPICTBRIDGEDPGETOBJECTPROPLIST_H_ */
       
    76