1 /* |
|
2 * Copyright (c) 2010 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: Observer class for remote control keys |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef AUDIOCLIENTSTUBREMCONOBSERVER_H |
|
20 #define AUDIOCLIENTSTUBREMCONOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <remconcoreapitargetobserver.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CRemConInterfaceSelector; |
|
27 class CRemConCoreApiTarget; |
|
28 |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 */ |
|
34 class CAudioClientStubRemConObserver : public CBase, public MRemConCoreApiTargetObserver |
|
35 { |
|
36 public: // Constructor and destructor |
|
37 |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 */ |
|
41 static CAudioClientStubRemConObserver* NewL(); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CAudioClientStubRemConObserver(); |
|
47 |
|
48 protected: // Functions from base classes |
|
49 |
|
50 /** |
|
51 * |
|
52 * A command has been received. |
|
53 * @param aOperationId The operation ID of the command. |
|
54 * @param aButtonAct The button action associated with the command. |
|
55 */ |
|
56 void MrccatoCommand( TRemConCoreApiOperationId aOperationId, |
|
57 TRemConCoreApiButtonAction aButtonAct); |
|
58 |
|
59 |
|
60 private: // Functions |
|
61 /** |
|
62 * C++ default constructor. |
|
63 * Not accessible. |
|
64 */ |
|
65 CAudioClientStubRemConObserver(); |
|
66 |
|
67 /** |
|
68 * By default Symbian 2nd phase constructor is private. |
|
69 */ |
|
70 void ConstructL(); |
|
71 |
|
72 |
|
73 private: // Data |
|
74 |
|
75 /** |
|
76 * Remote Controller interface selector. |
|
77 * Own. |
|
78 */ |
|
79 CRemConInterfaceSelector* iInterfaceSelector; |
|
80 |
|
81 /** |
|
82 * Remote Controller target. |
|
83 * Not own. |
|
84 */ |
|
85 CRemConCoreApiTarget* iCoreTarget; |
|
86 |
|
87 }; |
|
88 |
|
89 #endif // |
|
90 |
|
91 // End of File |
|