mtpdataproviders/mtpplaybackcontroldp/inc/cmtppbcgetdevicepropdesc.h
changeset 29 3ae5cb0b4c02
child 47 63cf70d3ecd8
equal deleted inserted replaced
20:6e82ae192c3a 29:3ae5cb0b4c02
       
     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 CMTPPBCGETPBDEVICEPROPDESC_H
       
    22 #define CMTPPBCGETPBDEVICEPROPDESC_H
       
    23 
       
    24 #include "cmtprequestprocessor.h"
       
    25 #include "mtpdebug.h"
       
    26 #include "cmtpplaybackmap.h"
       
    27 
       
    28 class CMTPTypeDevicePropDesc;
       
    29 class CMTPPlaybackControlDataProvider;
       
    30 
       
    31 /** 
       
    32 Implements the device data provider GetDevicePropDesc request processor.
       
    33 @internalComponent
       
    34 */
       
    35 class CMTPPbcGetDevicePropDesc : public CMTPRequestProcessor, public MMTPPlaybackCallback
       
    36     {
       
    37 
       
    38 public:
       
    39 
       
    40     static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, 
       
    41                                     MMTPConnection& aConnection, 
       
    42                                     CMTPPlaybackControlDataProvider& aDataProvider);    
       
    43     ~CMTPPbcGetDevicePropDesc();    
       
    44    
       
    45 protected:    
       
    46     // From CMTPRequestProcessor
       
    47     virtual TMTPResponseCode CheckRequestL();
       
    48 
       
    49 private: // From CMTPRequestProcessor
       
    50     void ServiceL();
       
    51     
       
    52 private: //From MMTPPlaybackCallback
       
    53     void HandlePlaybackCommandCompleteL(CMTPPlaybackCommand* aCmd, TInt aErr);
       
    54     
       
    55 private:
       
    56     CMTPPbcGetDevicePropDesc(MMTPDataProviderFramework& aFramework, 
       
    57                             MMTPConnection& aConnection, 
       
    58                             CMTPPlaybackControlDataProvider& aDataProvider);
       
    59 
       
    60 private: // Owned.
       
    61 
       
    62     __FLOG_DECLARATION_MEMBER_MUTABLE;
       
    63     CMTPPlaybackControlDataProvider& iPlaybackControlDp;
       
    64     
       
    65     CMTPTypeDevicePropDesc* iPropDesc;
       
    66     CMTPPlaybackCommand* iPbCmd;
       
    67     };
       
    68     
       
    69 #endif //CMTPPBCGETPBDEVICEPROPDESC_H
       
    70