1 /* |
|
2 * Copyright (c) 2008 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 the License "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 |
|
19 #ifndef FUSIONMPXPLAYERTESTCMDLISTENER_H |
|
20 #define FUSIONMPXPLAYERTESTCMDLISTENER_H |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <e32std.h> |
|
26 #include <e32msgqueue.h> |
|
27 #include "VCXTestPSObserver.h" |
|
28 |
|
29 #include "FusionMpxPlayerTester.h" |
|
30 |
|
31 // CONSTANTS |
|
32 |
|
33 // MACROS |
|
34 |
|
35 // DATA TYPES |
|
36 |
|
37 // FUNCTION PROTOTYPES |
|
38 |
|
39 // FORWARD DECLARATIONS |
|
40 |
|
41 // CLASS DECLARATION |
|
42 class CVCXTestPSSubscriber; |
|
43 |
|
44 class MFusionMpxPlayerTestShutdownObserver |
|
45 { |
|
46 public: |
|
47 |
|
48 virtual void ShutdownCommandReceived() = 0; |
|
49 |
|
50 }; |
|
51 |
|
52 /** |
|
53 * @since |
|
54 */ |
|
55 class CFusionMpxPlayerTestCmdListener : public CBase, |
|
56 public MVCXTestPSObserver, |
|
57 public MFusionMpxPlayerTesterObserver |
|
58 |
|
59 { |
|
60 public: // Constructors and destructor |
|
61 /** |
|
62 * Two-phased constructor. |
|
63 */ |
|
64 static CFusionMpxPlayerTestCmdListener * NewL( TUint aProcessId, MFusionMpxPlayerTestShutdownObserver* aObserver ); |
|
65 |
|
66 /** |
|
67 * Destructor. |
|
68 */ |
|
69 virtual ~CFusionMpxPlayerTestCmdListener(); |
|
70 |
|
71 public: // New functions |
|
72 |
|
73 TInt PlayLocalVideo( const TDesC& aFileName ); |
|
74 |
|
75 private: // New functions |
|
76 |
|
77 void SendResponse( const TInt aResponse, TInt aError ); |
|
78 |
|
79 private: // From base classes |
|
80 |
|
81 void ValueChangedL( const TUid& aUid, const TUint32& aKey, const TInt& aValue ); |
|
82 |
|
83 void ValueChangedL( const TUid& aUid, const TUint32& aKey, const TDesC& aValue ); |
|
84 |
|
85 void TesterCommandComplete(); |
|
86 |
|
87 private: |
|
88 |
|
89 /** |
|
90 * C++ default constructor. |
|
91 */ |
|
92 CFusionMpxPlayerTestCmdListener(); |
|
93 |
|
94 /** |
|
95 * By default Symbian 2nd phase constructor is private. |
|
96 */ |
|
97 void ConstructL( TUint aProcessId, MFusionMpxPlayerTestShutdownObserver* aObserver ); |
|
98 |
|
99 private: // Data |
|
100 CFusionMpxPlayerTester* iTester; |
|
101 |
|
102 CVCXTestPSSubscriber* iGlobalShutdownSubcriber; |
|
103 |
|
104 CVCXTestPSSubscriber* iCmdSubcriber; |
|
105 |
|
106 TInt iPSKeyBase; |
|
107 |
|
108 MFusionMpxPlayerTestShutdownObserver* iObserver; |
|
109 }; |
|
110 |
|
111 #endif // FUSIONMPXPLAYERTESTCMDLISTENER_H |
|
112 |
|
113 // End of File |
|