mtpfws/mtpfw/dataproviders/proxydp/inc/cmtpgetobjectpropssupported.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 CMTPGETOBJECTPROPSSUPPORTED_H
       
    22 #define CMTPGETOBJECTPROPSSUPPORTED_H
       
    23 
       
    24 #include "cmtprequestprocessor.h"
       
    25 #include "mmtptransactionproxy.h"
       
    26 #include "rmtpframework.h"
       
    27 
       
    28 class CMTPTypeArray;
       
    29 class MMTPRequestProcessor;
       
    30 
       
    31 /** 
       
    32 Implements the proxy data provider GetObjectPropsSupported request processor.
       
    33 @internalComponent
       
    34   
       
    35 */
       
    36 class CMTPGetObjectPropsSupported : 
       
    37     public CMTPRequestProcessor, 
       
    38     public MMTPTransactionProxy
       
    39     {
       
    40 public:
       
    41 
       
    42     static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);    
       
    43     ~CMTPGetObjectPropsSupported(); 
       
    44 
       
    45 private: // From CMTPRequestProcessor
       
    46 
       
    47     void ServiceL();
       
    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: // From CActive
       
    57 
       
    58     void RunL();
       
    59 
       
    60 private:    
       
    61 
       
    62     CMTPGetObjectPropsSupported(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);
       
    63     void ConstructL();
       
    64     
       
    65     void Schedule(TInt aError);
       
    66     void SendResponseL(TUint16 aCode);
       
    67                     
       
    68 private: // Owned
       
    69 
       
    70     TInt            iCurrentTarget;
       
    71     CMTPTypeArray*  iDataset;
       
    72     RArray<TUint>   iObjectPropsSupported;
       
    73     RMTPFramework   iSingletons;
       
    74     RArray<TUint>   iTargetDps;
       
    75     };
       
    76     
       
    77 #endif // CMTPGETOBJECTPROPSSUPPORTED_H
       
    78