|
1 /* |
|
2 * Copyright (c) 2002 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: mmftsplay test component |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __MEDIA_EVENT_H |
|
19 #define __MEDIA_EVENT_H |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 #include "Parameters.h" |
|
24 #include "EventTarget.h" |
|
25 #include <StifTestModule.h> |
|
26 #include <StifLogger.h> |
|
27 #include "SimpleSoundPlayer.h" |
|
28 |
|
29 //typedef TInt (*TMediaCommand)(const CParameters *params) ; |
|
30 //typedef TInt (CSimpleSoundPlayer::*TcspMediaCommand)(const CParameters *params) ; |
|
31 |
|
32 class CMediaEvent: public CBase |
|
33 { |
|
34 public: |
|
35 static CMediaEvent *NewL(CTestModuleIf &aTestModuleIf, CStifLogger &aLogger, TTimeIntervalMicroSeconds32 aDelay, TTimeIntervalMicroSeconds32 aInterval, MEventTarget *aTarget, CParameters *aParameters, TInt aPriority=CActive::EPriorityStandard); |
|
36 static CMediaEvent *NewLC(CTestModuleIf &aTestModuleIf, CStifLogger &aLogger, TTimeIntervalMicroSeconds32 aDelay, TTimeIntervalMicroSeconds32 aInterval, MEventTarget *aTarget, CParameters *aParameters, TInt aPriority=CActive::EPriorityStandard); |
|
37 |
|
38 ///static CMediaEvent *NewLC(CTestModuleIf &aTestModuleIf, CStifLogger &aLogger, TTimeIntervalMicroSeconds32 aDelay, TTimeIntervalMicroSeconds32 aInterval, MEventTarget *aTarget, tmc aCommand, CParameters *aParameters); |
|
39 TInt GetCount() const; |
|
40 |
|
41 private: |
|
42 void ConstructL(TInt aPriority); |
|
43 ~CMediaEvent(); |
|
44 |
|
45 static TInt Tick(TAny* aObject); |
|
46 TInt DoTick(); |
|
47 |
|
48 protected: |
|
49 CMediaEvent(CTestModuleIf &aTestModuleIf , CStifLogger &aLogger, TTimeIntervalMicroSeconds32 aDelay, TTimeIntervalMicroSeconds32 aInterval, MEventTarget *aTarget , /*TMediaCommand aCommand,*/ CParameters *aParameters); |
|
50 //-///CMediaEvent(CTestModuleIf &aTestModuleIf , CStifLogger &aLogger, TTimeIntervalMicroSeconds32 aDelay, TTimeIntervalMicroSeconds32 aInterval, MEventTarget *aTarget , tmc aCommand , CParameters *aParameters); |
|
51 |
|
52 private: |
|
53 CTestModuleIf &iTestModuleIf; //Test Module Interface |
|
54 CStifLogger &iLogger; //Test Module Logger |
|
55 |
|
56 TTimeIntervalMicroSeconds32 iDelay; |
|
57 TTimeIntervalMicroSeconds32 iInterval; |
|
58 MEventTarget *iEventTarget; |
|
59 //TMediaCommand iCommand; |
|
60 CParameters *iParameters; |
|
61 |
|
62 CPeriodic *iPeriodic; |
|
63 TInt iCount; |
|
64 }; |
|
65 |
|
66 #endif //__MEDIA_EVENT_H |