mtpfws/mtpfw/dataproviders/proxydp/inc/cmtpdeleteobjectproplist.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 CMTPDELETEOBJECTPROPLIST_H_
       
    22 #define CMTPDELETEOBJECTPROPLIST_H_
       
    23 
       
    24 #include "cmtprequestprocessor.h"
       
    25 #include "mmtptransactionproxy.h"
       
    26 #include "rmtpframework.h"
       
    27 
       
    28 class CMTPTypeDeleteObjectPropList;
       
    29 class MMTPRequestProcessor;
       
    30 
       
    31 /** 
       
    32 Implements the proxy data provider's DeleteObjectPropList request processor.
       
    33 @internalComponent
       
    34   
       
    35 */
       
    36 class CMTPDeleteObjectPropList : public CMTPRequestProcessor, public MMTPTransactionProxy
       
    37     {
       
    38 public:
       
    39 
       
    40     static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);    
       
    41     ~CMTPDeleteObjectPropList();    
       
    42 
       
    43 private: // From CMTPRequestProcessor
       
    44 
       
    45     void ServiceL();
       
    46     TBool DoHandleResponsePhaseL();
       
    47     TBool HasDataphase() const;
       
    48 
       
    49 private: // From MMTPTransactionProxy
       
    50 
       
    51     void ProxyReceiveDataL(MMTPType& aData, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus);
       
    52     void ProxySendDataL(const MMTPType& aData, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus);
       
    53     void ProxySendResponseL(const TMTPTypeResponse& aResponse, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus);
       
    54     void ProxyTransactionCompleteL(const TMTPTypeRequest& aRequest, MMTPConnection& aConnection);
       
    55     
       
    56 private:    
       
    57     CMTPDeleteObjectPropList(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);
       
    58     void ConstructL();
       
    59     
       
    60     void SendResponseL(TUint16 aCode);
       
    61     void Schedule(TInt aError);
       
    62     
       
    63     void BuildSubRequestsL();
       
    64     
       
    65 private: // From CActive
       
    66     void RunL();
       
    67     TInt RunError(TInt aError);
       
    68     
       
    69 private: // Owned
       
    70 
       
    71     /*
       
    72      *FLOGGER debug trace member variable.
       
    73      */
       
    74     __FLOG_DECLARATION_MEMBER_MUTABLE;  
       
    75 
       
    76     /* 
       
    77      * DeleteObjectPropList dataset.
       
    78      */
       
    79     CMTPTypeDeleteObjectPropList*          iDeleteObjectPropList;
       
    80     
       
    81     /*
       
    82      * the current DP id.
       
    83      */
       
    84     TInt                iCurrentTarget;
       
    85 
       
    86     /*
       
    87      * the targets DP IDs.
       
    88      */
       
    89     RArray<TUint>       iTargetDps;  
       
    90     
       
    91     /*
       
    92      * 
       
    93      */
       
    94     RPointerArray<CMTPTypeDeleteObjectPropList> iSubDatasets;
       
    95     
       
    96     /*
       
    97      * mtp framework interface. 
       
    98      */
       
    99     RMTPFramework           iSingletons;
       
   100     
       
   101     };
       
   102 
       
   103 
       
   104 
       
   105 #endif /* CMTPDELETEOBJECTPROPLIST_H_ */