|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CRADIOREMCONTARGETIMP_H |
|
19 #define CRADIOREMCONTARGETIMP_H |
|
20 |
|
21 // System includes |
|
22 #include <RemConCallHandlingTargetObserver.h> |
|
23 #include <remconcoreapitargetobserver.h> |
|
24 #include <RadioStubManager.h> |
|
25 |
|
26 // User includes |
|
27 #include "cradioremcontarget.h" |
|
28 |
|
29 // Forward declarations |
|
30 class CRemConCallHandlingTarget; |
|
31 class CRemConCoreApiTarget; |
|
32 class CRemConInterfaceSelector; |
|
33 |
|
34 // Class declaration |
|
35 |
|
36 /** |
|
37 * Media key listener |
|
38 */ |
|
39 NONSHARABLE_CLASS( CRadioRemConTargetImp ) : public CRadioRemConTarget |
|
40 , public MRemConCoreApiTargetObserver |
|
41 , public MRemConCallHandlingTargetObserver |
|
42 { |
|
43 public: |
|
44 |
|
45 static CRadioRemConTargetImp* NewL(); |
|
46 |
|
47 virtual ~CRadioRemConTargetImp(); |
|
48 |
|
49 private: |
|
50 |
|
51 // from base class CRadioRemConTarget |
|
52 |
|
53 void SetControlEventObserver( MRadioControlEventObserver* aControlEventObserver ); |
|
54 |
|
55 // from base class MRemConCoreApiTargetObserver |
|
56 |
|
57 void MrccatoCommand( TRemConCoreApiOperationId aOperationId, TRemConCoreApiButtonAction aButtonAct ); |
|
58 void MrccatoPlay( TRemConCoreApiPlaybackSpeed aSpeed, TRemConCoreApiButtonAction aButtonAct ); |
|
59 void MrccatoTuneFunction( TBool aTwoPart, TUint aMajorChannel, TUint aMinorChannel, TRemConCoreApiButtonAction aButtonAct ); |
|
60 void MrccatoSelectDiskFunction( TUint aDisk, TRemConCoreApiButtonAction aButtonAct ); |
|
61 void MrccatoSelectAvInputFunction( TUint8 aAvInputSignalNumber, TRemConCoreApiButtonAction aButtonAct ); |
|
62 void MrccatoSelectAudioInputFunction( TUint8 aAudioInputSignalNumber, TRemConCoreApiButtonAction aButtonAct ); |
|
63 |
|
64 // from base class MRemConCallHandlingTargetObserver |
|
65 |
|
66 void AnswerCall(); |
|
67 void AnswerEndCall(); |
|
68 void DialCall( const TDesC8& aTelNumber ); |
|
69 void EndCall(); |
|
70 void GenerateDTMF( const TChar aChar ); |
|
71 void LastNumberRedial(); |
|
72 void MultipartyCalling( const TDesC8& aData ); |
|
73 void SpeedDial( const TInt aIndex ); |
|
74 void VoiceDial( const TBool aActivate ); |
|
75 |
|
76 private: |
|
77 |
|
78 CRadioRemConTargetImp(); |
|
79 |
|
80 void ConstructL(); |
|
81 |
|
82 /** |
|
83 * Callback for repeat timer. |
|
84 * @param aPtr Pointer to this class. |
|
85 */ |
|
86 static TInt RepeatTimerCallback( TAny* aPtr ); |
|
87 |
|
88 private: // data |
|
89 |
|
90 /** Pointer to observer in UI side, can be NULL. Not owned. */ |
|
91 MRadioControlEventObserver* iObserver; |
|
92 |
|
93 /** RemCon interface selector. */ |
|
94 CRemConInterfaceSelector* iInterfaceSelector; |
|
95 |
|
96 /** RemCon Core API target class. */ |
|
97 CRemConCoreApiTarget* iCoreTarget; |
|
98 |
|
99 /** RemCon Call API target class. */ |
|
100 CRemConCallHandlingTarget* iCallTarget; |
|
101 |
|
102 /** Timer for generating repeat events. */ |
|
103 CPeriodic* iRepeatTimer; |
|
104 |
|
105 /** Operation id to repeat. */ |
|
106 TRemConCoreApiOperationId iRepeatId; |
|
107 |
|
108 // RadioStubManager pointer points inside RadioStubManagerChunk |
|
109 SRadioStubManager* iRadioStubManager; |
|
110 |
|
111 // RadioStubManagerChunk handle |
|
112 RChunk iRadioStubManagerChunk; |
|
113 |
|
114 }; |
|
115 |
|
116 #endif // CRADIOREMCONTARGETIMP_H |