47
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Music Player media key handler - private implementation.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef MPMEDIAKEYHANDLER_P_H
|
|
19 |
#define MPMEDIAKEYHANDLER_P_H
|
|
20 |
|
|
21 |
|
|
22 |
#include <remconcoreapitargetobserver.h>
|
|
23 |
|
|
24 |
class CRemConInterfaceSelector;
|
|
25 |
class MpMediaKeyHandler;
|
|
26 |
class MpMediaKeyRemConResponse;
|
|
27 |
class MpEngine;
|
|
28 |
|
|
29 |
class MpMediaKeyHandlerPrivate : public MRemConCoreApiTargetObserver
|
|
30 |
{
|
|
31 |
public:
|
|
32 |
|
|
33 |
MpMediaKeyHandlerPrivate( MpMediaKeyHandler *wrapper );
|
|
34 |
virtual ~MpMediaKeyHandlerPrivate();
|
|
35 |
|
|
36 |
void init();
|
|
37 |
|
|
38 |
// From MRemConCoreApiTargetObserver
|
|
39 |
|
|
40 |
/**
|
|
41 |
* From MRemConCoreApiTargetObserver
|
|
42 |
* A command has been received.
|
|
43 |
*
|
|
44 |
* @param aOperationId The operation ID of the command.
|
|
45 |
* @param aButtonAct The button action associated with the command.
|
|
46 |
*/
|
|
47 |
void MrccatoCommand(
|
|
48 |
TRemConCoreApiOperationId aOperationId,
|
|
49 |
TRemConCoreApiButtonAction aButtonAct );
|
|
50 |
|
|
51 |
/**
|
|
52 |
* From MRemConCoreApiTargetObserver
|
|
53 |
* A 'play' command has been received.
|
|
54 |
*
|
|
55 |
* @param aSpeed The playback speed.
|
|
56 |
* @param aButtonAct The button action associated with the command.
|
|
57 |
*/
|
|
58 |
void MrccatoPlay(
|
|
59 |
TRemConCoreApiPlaybackSpeed aSpeed,
|
|
60 |
TRemConCoreApiButtonAction aButtonAct );
|
|
61 |
|
|
62 |
/**
|
|
63 |
* From MRemConCoreApiTargetObserver
|
|
64 |
* A 'tune function' command has been received.
|
|
65 |
*
|
|
66 |
* @param aTwoPart Determine which channel to be used.
|
|
67 |
* @param aMajorChannel The major channel number.
|
|
68 |
* @param aMinorChannel The minor channel number.
|
|
69 |
* @param aButtonAct The button action associated with the command.
|
|
70 |
*/
|
|
71 |
void MrccatoTuneFunction(
|
|
72 |
TBool aTwoPart,
|
|
73 |
TUint aMajorChannel,
|
|
74 |
TUint aMinorChannel,
|
|
75 |
TRemConCoreApiButtonAction aButtonAct );
|
|
76 |
|
|
77 |
/**
|
|
78 |
* From MRemConCoreApiTargetObserver
|
|
79 |
* A 'select disk function' has been received.
|
|
80 |
*
|
|
81 |
* @param aDisk The disk.
|
|
82 |
* @param aButtonAct The button action associated with the command.
|
|
83 |
*/
|
|
84 |
void MrccatoSelectDiskFunction(
|
|
85 |
TUint aDisk,
|
|
86 |
TRemConCoreApiButtonAction aButtonAct );
|
|
87 |
|
|
88 |
/**
|
|
89 |
* From MRemConCoreApiTargetObserver
|
|
90 |
* A 'select AV input function' has been received.
|
|
91 |
*
|
|
92 |
* @param aAvInputSignalNumber The AV input.
|
|
93 |
* @param aButtonAct The button action associated with the command.
|
|
94 |
*/
|
|
95 |
void MrccatoSelectAvInputFunction(
|
|
96 |
TUint8 aAvInputSignalNumber,
|
|
97 |
TRemConCoreApiButtonAction aButtonAct );
|
|
98 |
|
|
99 |
/**
|
|
100 |
* From MRemConCoreApiTargetObserver
|
|
101 |
* A 'select audio input function' has been received.
|
|
102 |
*
|
|
103 |
* @param aAudioInputSignalNumber The audio input.
|
|
104 |
* @param aButtonAct The button action associated with the command.
|
|
105 |
*/
|
|
106 |
void MrccatoSelectAudioInputFunction(
|
|
107 |
TUint8 aAudioInputSignalNumber,
|
|
108 |
TRemConCoreApiButtonAction aButtonAct );
|
|
109 |
|
|
110 |
private:
|
|
111 |
|
|
112 |
void DoInitL();
|
|
113 |
|
|
114 |
private:
|
|
115 |
|
|
116 |
MpMediaKeyHandler *q_ptr;
|
|
117 |
|
|
118 |
CRemConInterfaceSelector *iInterfaceSelector; // owned
|
|
119 |
MpMediaKeyRemConResponse *iResponseHandler; // owned
|
|
120 |
MpEngine *iMpEngine; // not owned
|
|
121 |
bool iSideKeyAlreadyClicked;
|
|
122 |
};
|
|
123 |
|
|
124 |
#endif // MPMEDIAKEYHANDLER_P_H
|