mtpdataproviders/mtpimagedp/inc/cmtpimagedpgetobjectproplist.h
changeset 0 d0791faffa3f
child 47 63cf70d3ecd8
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  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef CMTPIMAGEDPGETOBJECTPROPLIST_H
       
    22 #define CMTPIMAGEDPGETOBJECTPROPLIST_H
       
    23 
       
    24 #include "cmtprequestprocessor.h"
       
    25 
       
    26 class CMTPImageDpObjectPropertyMgr;
       
    27 class CMTPTypeArray;
       
    28 class CMTPTypeObjectPropList;
       
    29 class CMTPImageDataProvider;
       
    30 
       
    31 /** 
       
    32 Implements the file data provider GetObjectPropList request processor.
       
    33 @internalComponent
       
    34 */
       
    35 class CMTPImageDpGetObjectPropList : public CMTPRequestProcessor
       
    36     {
       
    37 public:
       
    38     
       
    39     static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection,CMTPImageDataProvider& aDataProvider);    
       
    40     ~CMTPImageDpGetObjectPropList(); 
       
    41 
       
    42 private: // From CMTPRequestProcessor
       
    43 
       
    44     void ServiceL();
       
    45     TMTPResponseCode CheckRequestL();
       
    46     
       
    47 private:
       
    48 
       
    49     CMTPImageDpGetObjectPropList(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection,CMTPImageDataProvider& aDataProvider);
       
    50     void ConstructL();
       
    51 
       
    52     TMTPResponseCode CheckPropCode() const;
       
    53     TMTPResponseCode CheckDepth() const;
       
    54     
       
    55     void GetObjectHandlesL();
       
    56     void GetObjectHandlesL(TUint32 aStorageId, TUint32 aFormatCode, TUint32 aParentHandle);
       
    57     void GetRootObjectHandlesL(TUint32 aFormatCode, TUint32 aDepth);
       
    58     
       
    59     void ServicePropertiesL( TUint32 aHandle );
       
    60     void ServiceAllPropertiesL(TUint32 aHandle);
       
    61     void ServiceGroupPropertiesL(TUint32 aHandle,TUint16 aGroupCode);
       
    62     void ServiceOneObjectPropertyL(TUint32 aHandle, TUint32 aPropCode);
       
    63     
       
    64 private:
       
    65 	
       
    66     /**
       
    67     * Cancel the enumeration process
       
    68     */
       
    69     void DoCancel();
       
    70 
       
    71     /**
       
    72     * Handle completed request
       
    73     */
       
    74     void RunL();
       
    75 
       
    76     /**
       
    77     * Ignore the error, continue with the next one
       
    78     */
       
    79     TInt RunError( TInt aError );
       
    80 
       
    81     /**
       
    82     * Control the getobjectproplist
       
    83     */
       
    84     void StartL();
       
    85 	
       
    86 private: // Owned
       
    87 
       
    88     CMTPImageDpObjectPropertyMgr&  iPropertyMgr;
       
    89     RArray<TUint>                  iHandles;
       
    90     CMTPTypeObjectPropList*        iPropertyList;  
       
    91     CMTPObjectMetaData*            iObjectMeta;
       
    92     
       
    93     /**
       
    94      FLOGGER debug trace member variable.
       
    95      */
       
    96      __FLOG_DECLARATION_MEMBER_MUTABLE;
       
    97     };
       
    98     
       
    99 #endif // CMTPIMAGEDPGETOBJECTPROPLIST_H
       
   100