|
1 /* |
|
2 * Copyright (c) 2004 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: Class definition for CTestAppConsole |
|
15 ** |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __TESTAPPCONSOLE_H |
|
21 #define __TESTAPPCONSOLE_H |
|
22 |
|
23 |
|
24 #define DEBUG_INFO |
|
25 |
|
26 /* |
|
27 #ifdef DEBUG_USE_RTP |
|
28 #include <RtpHeader.h> |
|
29 #else |
|
30 #include <RtpStpHeader.h> |
|
31 #endif // DEBUG_USE_RTP |
|
32 */ |
|
33 |
|
34 #include <e32cons.h> |
|
35 |
|
36 #include "TestConsole.hrh" |
|
37 #include "TestConsoleDef.h" |
|
38 #include "MccRtpDataSink.h" |
|
39 #include <mmf/server/mmfdatasource.h> |
|
40 |
|
41 class TTimeIntervalMicroSeconds32; |
|
42 class MDataSource; |
|
43 |
|
44 class CTestAppConsole : public CActive |
|
45 { |
|
46 public: |
|
47 static CTestAppConsole* NewL(); |
|
48 virtual ~CTestAppConsole(); |
|
49 |
|
50 void StartTesting(); |
|
51 void DisplayMsg(const TDesC& aMsg); |
|
52 |
|
53 private: |
|
54 CTestAppConsole( ); |
|
55 void ConstructL(); |
|
56 |
|
57 void RunL(); |
|
58 void DoCancel(); |
|
59 |
|
60 void ProcessMainInput(); |
|
61 |
|
62 // create console menus |
|
63 void DisplayConsoleMenu(const TDesC& aInstructions); |
|
64 TKeyCode GetStringFromConsole(TDes& aAddr); |
|
65 |
|
66 void DoRead(); |
|
67 |
|
68 //Test functions |
|
69 void RunTest1(); |
|
70 void RunTest2(); |
|
71 |
|
72 //End funktio |
|
73 void Stop(); |
|
74 |
|
75 private: |
|
76 CConsoleBase* iConsole; |
|
77 HBufC* iInstruct; |
|
78 CMccRtpDataSink* Sink; |
|
79 TInt iError; |
|
80 // CMccPayloadFormatEncoder* this2; |
|
81 }; |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 //****MDataSource pure virtual funktions**************************************** |
|
87 //TFourCC SourceDataTypeCode(TMediaId /*aMediaId*/) {return 0;}; |
|
88 //void FillBufferL(CMMFBuffer* aBuffer, MDataSink* aConsumer,TMediaId /*aMediaId*/){}; |
|
89 //void BufferEmptiedL(CMMFBuffer* aBuffer){}; |
|
90 //TBool CanCreateSourceBuffer(){return false;}; |
|
91 //CMMFBuffer* CreateSourceBufferL(TMediaId /*aMediaId*/, TBool &aReference){return NULL;}; |
|
92 //void ConstructSourceL( const TDesC8& aInitData ){}; |
|
93 //*********************************************** |
|
94 |
|
95 |
|
96 |
|
97 #endif __TESTAPPCONSOLE_H |