mtpfws/mtpfw/dataproviders/proxydp/inc/cmtpgetobjectproplist.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  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef CMTPGETOBJECTPROPLIST_H
       
    22 #define CMTPGETOBJECTPROPLIST_H
       
    23 
       
    24 #include "cmtprequestprocessor.h"
       
    25 #include "mmtptransactionproxy.h"
       
    26 #include "rmtpframework.h"
       
    27 
       
    28 //forward declarations
       
    29 class CMTPTypeObjectPropList;
       
    30 class CMTPDataProvider;
       
    31 class MMTPRequestProcessor;
       
    32 class CMTPObjectBrowser;
       
    33 class CMTPTypeArray;
       
    34 
       
    35 /** 
       
    36 Implements the proxy data provider GetObjectPropList request processor.
       
    37 @internalComponent
       
    38   
       
    39 */
       
    40 class CMTPGetObjectPropList : public CMTPRequestProcessor, public MMTPTransactionProxy
       
    41     {
       
    42 public:
       
    43 
       
    44     static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);    
       
    45     ~CMTPGetObjectPropList(); 
       
    46 
       
    47 private: // From CMTPRequestProcessor
       
    48 
       
    49     void ServiceL();
       
    50 
       
    51 private: // From MMTPTransactionProxy
       
    52 
       
    53     void ProxyReceiveDataL(MMTPType& aData, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus);
       
    54     void ProxySendDataL(const MMTPType& aData, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus);
       
    55     void ProxySendResponseL(const TMTPTypeResponse& aResponse, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus);
       
    56     void ProxyTransactionCompleteL(const TMTPTypeRequest& aRequest, MMTPConnection& aConnection);
       
    57 
       
    58 private: // From CActive
       
    59 
       
    60     void RunL();
       
    61 
       
    62 private:    
       
    63 
       
    64     CMTPGetObjectPropList(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);
       
    65     void ConstructL();
       
    66     
       
    67     void Schedule(TInt aError);
       
    68     void SendResponseL(TUint16 aCode);
       
    69     
       
    70     void GetObjectHandlesL();
       
    71     void GetNextObjectPropL();
       
    72     static void OnBrowseObjectL( TAny* aSelf, TUint aHandle, TUint32 aCurDepth );
       
    73     
       
    74 private: // Owned
       
    75     __FLOG_DECLARATION_MEMBER_MUTABLE;
       
    76 
       
    77     CMTPTypeObjectPropList* iObjectPropList;
       
    78     RMTPFramework           iSingletons;
       
    79     TUint                   iOwnerDp;
       
    80     
       
    81     CMTPObjectBrowser*      iObjBrowser;
       
    82     RArray< TUint32 >       iHandles;
       
    83     TInt                    iCurrentHandle;
       
    84     TMTPTypeRequest         iCurrentRequest;
       
    85     RArray<TUint>           iTargetDps;
       
    86     };
       
    87     
       
    88 #endif // CMTPGETOBJECTPROPLIST_H
       
    89