mtpdataproviders/mtpplaybackcontroldp/mtpplaybackmpximplementation/inc/cmtpplaybackcommandchecker.h
branchRCL_3
changeset 20 4a793f564d72
parent 19 0aa8cc770c8a
child 21 74aa6861c87d
equal deleted inserted replaced
19:0aa8cc770c8a 20:4a793f564d72
     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 CMTPPLAYBACKCOMMANDCHECKER_H_
       
    22 #define CMTPPLAYBACKCOMMANDCHECKER_H_
       
    23 
       
    24 #include "cmtpplaybackcommand.h"
       
    25 #include "mtpdebug.h"
       
    26 
       
    27 class CMTPPlaybackControlImpl;
       
    28 
       
    29 NONSHARABLE_CLASS( CMTPPlaybackCommandChecker ) : public CBase
       
    30     {
       
    31 public: // Constructors and destructor
       
    32 
       
    33     /**
       
    34      * Two-phased constructor.
       
    35      */
       
    36     static CMTPPlaybackCommandChecker* NewL( CMTPPlaybackControlImpl& aControlImpl );
       
    37     /**
       
    38      * Destructor.
       
    39      */
       
    40     virtual ~CMTPPlaybackCommandChecker();
       
    41     
       
    42 public:
       
    43     
       
    44     /**
       
    45     * Check playback command context
       
    46     */
       
    47     void CheckPlaybackCommandContextL( TMTPPlaybackCommand aMTPPBCommand );
       
    48     
       
    49     /**
       
    50      *Check and update playback param
       
    51     */
       
    52     void CheckAndUpdatePlaybackParamL( CMTPPlaybackCommand& aMTPPPBSourceCmd, CMTPPbCmdParam** aMTPPPBTargetParam );
       
    53     
       
    54 private:
       
    55     
       
    56     /**
       
    57      * C++ default constructor.
       
    58      */
       
    59     CMTPPlaybackCommandChecker( CMTPPlaybackControlImpl& aControlImpl );
       
    60     
       
    61 private:
       
    62     
       
    63     /**
       
    64      * Return instance of CMTPPlaybackControlImpl.
       
    65      */
       
    66     CMTPPlaybackControlImpl& MTPPlaybackControlImpl();
       
    67     
       
    68 private:
       
    69     
       
    70     /**
       
    71     The handle of the owner
       
    72     */
       
    73     CMTPPlaybackControlImpl&     iMTPPlaybackControl;
       
    74     
       
    75     /**
       
    76     FLOGGER debug trace member variable.
       
    77      */
       
    78     __FLOG_DECLARATION_MEMBER;
       
    79     };
       
    80     
       
    81 #endif /* CMTPPLAYBACKCOMMANDCHECKER_H_ */