1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef VEIREMCONTARGET_H |
|
21 #define VEIREMCONTARGET_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <remconcoreapitargetobserver.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CRemConCoreApiTarget; |
|
28 class CRemConInterfaceSelector; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 class MVeiMediakeyObserver |
|
33 { |
|
34 public: |
|
35 |
|
36 virtual void HandleVolumeUpL() = 0; |
|
37 virtual void HandleVolumeDownL() = 0; |
|
38 }; |
|
39 |
|
40 /** |
|
41 * mgx listener for RemCon commands. |
|
42 */ |
|
43 NONSHARABLE_CLASS( CVeiRemConTarget ) : public CBase, public MRemConCoreApiTargetObserver |
|
44 { |
|
45 public: // Methods |
|
46 |
|
47 // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Static constructor. |
|
51 */ |
|
52 IMPORT_C static CVeiRemConTarget* NewL(MVeiMediakeyObserver& aObserver); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CVeiRemConTarget(); |
|
58 |
|
59 // Methods from base classes |
|
60 |
|
61 /** |
|
62 * From MRemConCoreApiTargetObserver MrccatoCommand. |
|
63 * A command has been received. |
|
64 * @param aOperationId The operation ID of the command. |
|
65 * @param aButtonAct The button action associated with the command. |
|
66 */ |
|
67 void MrccatoCommand(TRemConCoreApiOperationId aOperationId, TRemConCoreApiButtonAction aButtonAct); |
|
68 |
|
69 /** |
|
70 * From MRemConCoreApiTargetObserver MrccatoPlay. |
|
71 * A 'play' command has been received. |
|
72 * @param aSpeed The playback speed. |
|
73 * @param aButtonAct The button action associated with the command. |
|
74 */ |
|
75 void MrccatoPlay(TRemConCoreApiPlaybackSpeed aSpeed, TRemConCoreApiButtonAction aButtonAct); |
|
76 |
|
77 /** |
|
78 * From MRemConCoreApiTargetObserver MrccatoTuneFunction. |
|
79 * A 'tune function' command has been received. |
|
80 * @param aTwoPart If EFalse, only aMajorChannel is to be used. Otherwise, |
|
81 * both aMajorChannel and aMinorChannel are to be used. |
|
82 * @param aMajorChannel The major channel number. |
|
83 * @param aMinorChannel The minor channel number. |
|
84 * @param aButtonAct The button action associated with the command. |
|
85 */ |
|
86 void MrccatoTuneFunction(TBool aTwoPart, TUint aMajorChannel, TUint aMinorChannel, TRemConCoreApiButtonAction aButtonAct); |
|
87 |
|
88 /** |
|
89 * From MRemConCoreApiTargetObserver MrccatoSelectDiskFunction. |
|
90 * A 'select disk function' has been received. |
|
91 * @param aDisk The disk. |
|
92 * @param aButtonAct The button action associated with the command. |
|
93 */ |
|
94 void MrccatoSelectDiskFunction(TUint aDisk, TRemConCoreApiButtonAction aButtonAct); |
|
95 |
|
96 /** |
|
97 * From MRemConCoreApiTargetObserver MrccatoSelectAvInputFunction. |
|
98 * A 'select AV input function' has been received. |
|
99 * @param aAvInputSignalNumber The AV input. |
|
100 * @param aButtonAct The button action associated with the command. |
|
101 */ |
|
102 void MrccatoSelectAvInputFunction(TUint8 aAvInputSignalNumber, TRemConCoreApiButtonAction aButtonAct); |
|
103 |
|
104 /** |
|
105 * From MRemConCoreApiTargetObserver MrccatoSelectAudioInputFunction. |
|
106 * A 'select audio input function' has been received. |
|
107 * @param aAudioInputSignalNumber The audio input. |
|
108 * @param aButtonAct The button action associated with the command. |
|
109 */ |
|
110 void MrccatoSelectAudioInputFunction(TUint8 aAudioInputSignalNumber, TRemConCoreApiButtonAction aButtonAct); |
|
111 |
|
112 protected: // Methods |
|
113 |
|
114 private: //Methods |
|
115 |
|
116 /** |
|
117 * C++ default constructor. |
|
118 */ |
|
119 CVeiRemConTarget(MVeiMediakeyObserver& aObserver); |
|
120 |
|
121 /** |
|
122 * By default Symbian 2nd phase constructor is private. |
|
123 */ |
|
124 void ConstructL(); |
|
125 |
|
126 private: // Data |
|
127 |
|
128 MVeiMediakeyObserver& iObserver; |
|
129 // RemCon interface selector. |
|
130 CRemConInterfaceSelector* iInterfaceSelector; |
|
131 // RemCon Core API target class. |
|
132 CRemConCoreApiTarget* iCoreTarget; |
|
133 }; |
|
134 |
|
135 #endif //VEIREMCONTARGET_H |
|
136 |
|
137 // End of File |
|