mtpfws/mtpfw/dataproviders/proxydp/inc/cmtpsetobjectproplist.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 CMTPSETOBJECTPROPLIST_H
       
    22 #define CMTPSETOBJECTPROPLIST_H
       
    23 
       
    24 #include "cmtprequestprocessor.h"
       
    25 #include "mmtptransactionproxy.h"
       
    26 #include "rmtpframework.h"
       
    27 
       
    28 class CMTPTypeObjectPropList;
       
    29 class MMTPRequestProcessor;
       
    30 
       
    31 /** 
       
    32 Implements the proxy data provider SetObjectPropList request processor
       
    33 @internalComponent
       
    34   
       
    35 */
       
    36 class CMTPSetObjectPropList : public CMTPRequestProcessor, public MMTPTransactionProxy
       
    37     {
       
    38 public:
       
    39 
       
    40     static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);    
       
    41     ~CMTPSetObjectPropList(); 
       
    42 
       
    43 private: // CMTPRequestProcessor
       
    44 
       
    45     void ServiceL();
       
    46     TBool DoHandleResponsePhaseL();
       
    47 
       
    48 private: // From MMTPTransactionProxy
       
    49 
       
    50     void ProxyReceiveDataL(MMTPType& aData, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus);
       
    51     void ProxySendDataL(const MMTPType& aData, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus);
       
    52     void ProxySendResponseL(const TMTPTypeResponse& aResponse, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus);
       
    53     void ProxyTransactionCompleteL(const TMTPTypeRequest& aRequest, MMTPConnection& aConnection);
       
    54 
       
    55 private: // From CActive
       
    56 
       
    57     void RunL();
       
    58 
       
    59 private:    
       
    60 
       
    61     CMTPSetObjectPropList(MMTPDataProviderFramework& aFramework,MMTPConnection& aConnection);
       
    62     void ConstructL();
       
    63     
       
    64     void DoHandleSetObjectPropListL();
       
    65     void Reschedule(TInt aError);
       
    66             
       
    67 private:
       
    68 
       
    69     CMTPTypeObjectPropList* iObjectPropList;
       
    70     TMTPResponseCode        iResponseCode;
       
    71     TUint32                 iPropertyIdx;
       
    72     TUint32                 iDpIdx;
       
    73     RArray<TUint>           iDpList;
       
    74     TBool                   iDpListCreated;
       
    75     RMTPFramework           iSingletons;
       
    76     };
       
    77     
       
    78 #endif // CMTPSETOBJECTPROPLIST_H