mtpdataproviders/mtpplaybackcontroldp/mtpplaybackmpximplementation/inc/cmtpplaybackresumehelper.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 CMTPPLAYBACKRESUMEHELPER_H_
       
    22 #define CMTPPLAYBACKRESUMEHELPER_H_
       
    23 
       
    24 #include "mtpplaybackcontrolconst.h"
       
    25 #include "mmtpplaybackinterface.h"
       
    26 #include "mtpdebug.h"
       
    27 
       
    28 class CMTPPlaybackControlImpl;
       
    29 
       
    30 NONSHARABLE_CLASS( CMTPPlaybackResumeHelper ) : public CBase
       
    31     {
       
    32 public: // Constructors and destructor
       
    33 
       
    34     /**
       
    35      * Two-phased constructor.
       
    36      */
       
    37     static CMTPPlaybackResumeHelper* NewL( CMTPPlaybackControlImpl& aControlImpl );
       
    38     
       
    39     /**
       
    40      * Destructor.
       
    41      */
       
    42     virtual ~CMTPPlaybackResumeHelper();
       
    43     
       
    44 public:
       
    45     
       
    46     /**
       
    47      Map the CMTPPlaybackCommand to MPXCommand,
       
    48     */
       
    49     void UpdatePrepareCmdArray( TMTPPlaybackCommand aMTPPPBCmd, RResumeCmdArray& aMTPPBMPXCmd );
       
    50     
       
    51     /**
       
    52      Map the CMTPPlaybackCommand to MPXCommand,
       
    53     */
       
    54     void UpdateResumeCmdArray( TMTPPlaybackCommand aMTPPPBCmd, RResumeCmdArray& aMTPPBMPXCmd );
       
    55     
       
    56 private:
       
    57     
       
    58     /**
       
    59      * C++ default constructor.
       
    60      */
       
    61     CMTPPlaybackResumeHelper( CMTPPlaybackControlImpl& aControlImpl );
       
    62     
       
    63 private:
       
    64     
       
    65     /**
       
    66      * Map PlaybackCmd to PlaybackMPXCmd.
       
    67      */
       
    68     void HandlePlaybackCmdInitObject( RResumeCmdArray& aMTPPBMPXCmdArray );
       
    69     
       
    70     /**
       
    71      * Map PlaybackCmd to PlaybackMPXCmd.
       
    72      */
       
    73     void HandlePlaybackCmdInitIndex( RResumeCmdArray& aMTPPBMPXCmdArray );
       
    74     
       
    75     /**
       
    76      * Map PlaybackCmd to PlaybackMPXCmd.
       
    77      */
       
    78     void HandlePlaybackCmdPlay( RResumeCmdArray& aMTPPBMPXCmdArray );
       
    79     
       
    80     /**
       
    81      * Map PlaybackCmd to PlaybackMPXCmd.
       
    82      */
       
    83     void HandlePlaybackCmdPause( RResumeCmdArray& aMTPPBMPXCmdArray );
       
    84     
       
    85     /**
       
    86      * Map PlaybackCmd to PlaybackMPXCmd.
       
    87      */
       
    88     void HandlePlaybackCmdSeekForward( RResumeCmdArray& aMTPPBMPXCmd );
       
    89     
       
    90     /**
       
    91      * Map PlaybackCmd to PlaybackMPXCmd.
       
    92      */
       
    93     void HandlePlaybackCmdSeekBackward( RResumeCmdArray& aMTPPBMPXCmd );
       
    94     
       
    95     /**
       
    96      * Map PlaybackCmd to PlaybackMPXCmd.
       
    97      */
       
    98     void HandlePlaybackCmdSkip( RResumeCmdArray& aMTPPBMPXCmd );
       
    99     
       
   100     /**
       
   101      * Map PlaybackCmd to PlaybackMPXCmd.
       
   102      */
       
   103     void HandlePlaybackCmdSetPosition( RResumeCmdArray& aMTPPBMPXCmd );
       
   104     
       
   105     /**
       
   106      * Return instance of CMTPPlaybackControlImpl.
       
   107      */
       
   108     CMTPPlaybackControlImpl& MTPPlaybackControlImpl();
       
   109     
       
   110 private:
       
   111 
       
   112     /**
       
   113     The handle of the owner
       
   114     */
       
   115     CMTPPlaybackControlImpl&     iMTPPlaybackControl;
       
   116     
       
   117     TBool                        iIfParepareArray;
       
   118     
       
   119     /**
       
   120     FLOGGER debug trace member variable.
       
   121      */
       
   122     __FLOG_DECLARATION_MEMBER;
       
   123     };
       
   124 
       
   125 #endif /* CMTPPLAYBACKRESUMEHELPER_H_ */