|
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. |
|
15 * Helper class for sending response back to Remote Controller Framework. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef MPMEDIAKEYREMCONKEYRESPONSE_H |
|
20 #define MPMEDIAKEYREMCONKEYRESPONSE_H |
|
21 |
|
22 #include <remconcoreapitarget.h> |
|
23 |
|
24 |
|
25 NONSHARABLE_CLASS( MpMediaKeyRemConResponse ) : public CActive |
|
26 { |
|
27 public: |
|
28 |
|
29 /** |
|
30 * Two-phased constructor. |
|
31 * |
|
32 * @since 3.0 |
|
33 * @param aRemConCoreApiTarget RemCon core target object. |
|
34 * @return Pointer to newly created object. |
|
35 */ |
|
36 static MpMediaKeyRemConResponse* NewL( CRemConCoreApiTarget& aRemConCoreApiTarget ); |
|
37 |
|
38 /** |
|
39 * Destructor. |
|
40 */ |
|
41 virtual ~MpMediaKeyRemConResponse(); |
|
42 |
|
43 /** |
|
44 * Send the any key response back to Remcon server |
|
45 * |
|
46 * @since 3.0 |
|
47 * @param aOperationId RemCon operation Id. |
|
48 */ |
|
49 void CompleteAnyKey( TRemConCoreApiOperationId aOperationId ); |
|
50 |
|
51 private: |
|
52 |
|
53 /** |
|
54 * C++ default constructor. |
|
55 */ |
|
56 MpMediaKeyRemConResponse( CRemConCoreApiTarget& aRemConCoreApiTarget ); |
|
57 |
|
58 // from base class CActive |
|
59 |
|
60 /** |
|
61 * From CActive |
|
62 * Handles an active object's request completion event. |
|
63 */ |
|
64 void RunL(); |
|
65 |
|
66 /** |
|
67 * From CActive |
|
68 * Implements cancellation of an outstanding request. |
|
69 */ |
|
70 void DoCancel(); |
|
71 |
|
72 private: // Data |
|
73 |
|
74 // Response array. |
|
75 RArray<TRemConCoreApiOperationId> iResponseArray; // Own |
|
76 CRemConCoreApiTarget& iRemConCoreApiTarget; // Not own |
|
77 }; |
|
78 |
|
79 #endif // MPMEDIAKEYREMCONKEYRESPONSE_H |
|
80 |
|
81 // End of File |