|
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: remconcoreapitarget stub for testing mpmediakeyhandler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef REMCONCOREAPITARGET_H |
|
20 #define REMCONCOREAPITARGET_H |
|
21 |
|
22 |
|
23 #include <remconcoreapi.h> // TRemConCoreApiOperationId |
|
24 |
|
25 |
|
26 class CRemConInterfaceSelector; |
|
27 class MRemConCoreApiTargetObserver; |
|
28 |
|
29 class CRemConCoreApiTarget : public CActive |
|
30 { |
|
31 |
|
32 public: |
|
33 |
|
34 static int getCount(); |
|
35 static void setNewLLeave(); |
|
36 static void NewLLeaveIfDesiredL(); |
|
37 static int getSendResponseCount(); |
|
38 |
|
39 public: |
|
40 |
|
41 static CRemConCoreApiTarget* NewL(CRemConInterfaceSelector& aInterfaceSelector, MRemConCoreApiTargetObserver& aObserver); |
|
42 virtual ~CRemConCoreApiTarget(); |
|
43 |
|
44 void PausePlayFunctionResponse(TRequestStatus& aStatus, TInt aError); |
|
45 void PlayResponse(TRequestStatus& aStatus, TInt aError); |
|
46 void StopResponse(TRequestStatus& aStatus, TInt aError); |
|
47 void PauseResponse(TRequestStatus& aStatus, TInt aError); |
|
48 void RewindResponse(TRequestStatus& aStatus, TInt aError); |
|
49 void FastForwardResponse(TRequestStatus& aStatus, TInt aError); |
|
50 void BackwardResponse(TRequestStatus& aStatus, TInt aError); |
|
51 void ForwardResponse(TRequestStatus& aStatus, TInt aError); |
|
52 void VolumeUpResponse(TRequestStatus& aStatus, TInt aError); |
|
53 void VolumeDownResponse(TRequestStatus& aStatus, TInt aError); |
|
54 void SendResponse(TRequestStatus& aStatus, TRemConCoreApiOperationId aOperationId, TInt aError); |
|
55 |
|
56 protected: |
|
57 |
|
58 // from CActive |
|
59 virtual void DoCancel(); |
|
60 virtual void RunL(); |
|
61 |
|
62 private: |
|
63 |
|
64 CRemConCoreApiTarget(); |
|
65 |
|
66 private: |
|
67 |
|
68 TRequestStatus* iClientStatus; |
|
69 |
|
70 }; |
|
71 |
|
72 #endif // REMCONCOREAPITARGET_H |
|
73 |
|
74 // End of File |