mtpfws/mtpfw/dataproviders/dputility/inc/cmtpgetobjectproplist.h
changeset 0 d0791faffa3f
child 4 60a94a45d437
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  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef CMTPGETOBJECTPROPLIST_H
       
    22 #define CMTPGETOBJECTPROPLIST_H
       
    23 
       
    24 #include "cmtprequestprocessor.h"
       
    25 #include "rmtpdpsingletons.h"
       
    26 
       
    27 class CMTPTypeArray;
       
    28 class CMTPTypeObjectPropList;
       
    29 
       
    30 /** 
       
    31 Implements the file data provider GetObjectPropList request processor.
       
    32 @internalComponent
       
    33 */
       
    34 class CMTPGetObjectPropList : public CMTPRequestProcessor
       
    35     {
       
    36 public:
       
    37     
       
    38     IMPORT_C static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);    
       
    39     IMPORT_C ~CMTPGetObjectPropList();    
       
    40     
       
    41 private:    
       
    42 
       
    43 private: // From CMTPRequestProcessor
       
    44 
       
    45     void ServiceL();
       
    46     TMTPResponseCode CheckRequestL();
       
    47     
       
    48 private:
       
    49 
       
    50     CMTPGetObjectPropList(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);
       
    51     void ConstructL();
       
    52 
       
    53     TMTPResponseCode CheckFormatL() const;
       
    54     TMTPResponseCode CheckPropCode() const;
       
    55     TMTPResponseCode CheckDepth() const;
       
    56     
       
    57     void GetObjectHandlesL();
       
    58     void GetObjectHandlesL(TUint32 aStorageId, TUint32 aFormatCode, TUint32 aParentHandle);
       
    59     void GetFolderObjectHandlesL(TUint32 aFormatCode, TUint32 aDepth,TUint32 aParentHandle);
       
    60     void GetRootObjectHandlesL(TUint32 aFormatCode, TUint32 aDepth);
       
    61     void GetSpecificObjectHandlesL(TUint32 aHandle, TUint32 aFormatCode, TUint32 aDepth);
       
    62     
       
    63     void ServiceAllPropertiesL(TUint32 aHandle);
       
    64 	void ServiceGroupPropertiesL(TUint32 aHandle,TUint16 aGroupCode);
       
    65     void ServiceOneObjectPropertyL(TUint32 aHandle, TUint32 aPropCode);
       
    66     
       
    67 private: // Owned
       
    68 
       
    69     CMTPTypeArray*          iHandles;
       
    70     CMTPTypeObjectPropList* iPropertyList;   
       
    71     RMTPDpSingletons		iDpSingletons; 
       
    72 	CMTPObjectMetaData*		iObjMeta;
       
    73 	TEntry 					iFileEntry;
       
    74     };
       
    75     
       
    76 #endif // CMTPGETOBJECTPROPLIST_H
       
    77