mtpdataproviders/mtpplaybackcontroldp/inc/cmtppbcgetdevicepropvalue.h
branchRCL_3
changeset 19 0aa8cc770c8a
equal deleted inserted replaced
18:453dfc402455 19:0aa8cc770c8a
       
     1 // Copyright (c) 2010 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 CMTPPBCGETPBDEVICEPROPVALUE_H
       
    22 #define CMTPPBCGETPBDEVICEPROPVALUE_H
       
    23 
       
    24 #include "cmtprequestprocessor.h"
       
    25 #include "cmtpplaybackmap.h"
       
    26 
       
    27 class CMTPPlaybackControlDataProvider;
       
    28 
       
    29 /** 
       
    30 Implements the device data provider GetDevicePropValue request processor.
       
    31 @internalComponent
       
    32 */
       
    33 class CMTPPbcGetDevicePropValue : public CMTPRequestProcessor, public MMTPPlaybackCallback
       
    34     {
       
    35     
       
    36 public:
       
    37 
       
    38     static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, 
       
    39                                     MMTPConnection& aConnection, 
       
    40                                     CMTPPlaybackControlDataProvider& aDataProvider);    
       
    41     ~CMTPPbcGetDevicePropValue();  
       
    42 
       
    43 private: // From CMTPRequestProcessor
       
    44     TMTPResponseCode CheckRequestL();
       
    45     void ServiceL();
       
    46     
       
    47 private: //From MMTPPlaybackCallback
       
    48     void HandlePlaybackCommandCompleteL(CMTPPlaybackCommand* aCmd, TInt aErr);
       
    49 
       
    50 private:    
       
    51     CMTPPbcGetDevicePropValue(MMTPDataProviderFramework& aFramework, 
       
    52                             MMTPConnection& aConnection,
       
    53                             CMTPPlaybackControlDataProvider& aDataProvider);
       
    54 
       
    55 private: // Owned
       
    56     __FLOG_DECLARATION_MEMBER_MUTABLE;
       
    57     CMTPPlaybackControlDataProvider& iPlaybackControlDp;
       
    58     CMTPPlaybackCommand* iPbCmd;
       
    59     TMTPTypeInt32 iInt32;
       
    60     TMTPTypeUint32 iUint32;
       
    61     };
       
    62     
       
    63 #endif // CMTPPBCGETPBDEVICEPROPVALUE_H
       
    64