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