|
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 // Standard EPOC32 includes required by this header file |
|
17 #include <e32base.h> |
|
18 #include <e32std.h> |
|
19 |
|
20 |
|
21 #ifndef TS_CODES_H |
|
22 #define TS_CODES_H |
|
23 |
|
24 // These are Codes which are passed to and from functions via the Controller Framework. |
|
25 |
|
26 const TInt KGetAudioQuality = 1; |
|
27 const TInt KSetAudionQuality = 2; |
|
28 const TInt KDummyFunc1 = 3; |
|
29 const TInt KDummyFunc1Return = -4; |
|
30 const TInt KDummyFunc2 = 5; |
|
31 const TInt KDummyFunc2Return = -6; |
|
32 const TInt KLogFunction = 7; |
|
33 const TInt KFuncComplete = 0; |
|
34 const TInt KModeFunction = 8; |
|
35 |
|
36 const TInt KDescriptorSource = 9; |
|
37 const TInt KDescriptorSink = 10; |
|
38 #ifdef SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT |
|
39 const TInt KTestSetSubtitleAvailable = 11; |
|
40 #endif //SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT |
|
41 const TInt KFuncThreadStackSize=12; |
|
42 //-----------------------------// |
|
43 // Leave Codes (Failure Tests) // |
|
44 //-----------------------------// |
|
45 |
|
46 const TInt KOpenFailure = 201; |
|
47 const TInt KAddDataSourceFailure = 202; |
|
48 const TInt KAddDataSinkFailure = 203; |
|
49 const TInt KRemoveDataSourceFailure = 204; |
|
50 const TInt KRemoveDataSinkFailure = 205; |
|
51 const TInt KPrimeFailure = 206; |
|
52 const TInt KFailureCode1 = 210; |
|
53 const TInt KFailureCode2 = 211; |
|
54 |
|
55 //------------------------------// |
|
56 // |
|
57 |
|
58 enum TMMFTestCustomCommands |
|
59 { |
|
60 EMMFTestCustomCommandSetAudioQuality = 1, |
|
61 EMMFTestCustomCommandGetAudioQuality, |
|
62 EMMFTestCustomCommandGeneralSynchronous, |
|
63 EMMFTestCustomCommandGeneralSynchronousWithReturn, |
|
64 EMMFTestCustomCommandGeneralAsynchronous, |
|
65 EMMFTestCustomCommandGeneralAsynchronousWithReturn, |
|
66 EMMFTestCustomCommandRequestGeneralEvent, |
|
67 EMMFTestCustomCommandSimulateReloading, |
|
68 EMMFTestCustomCommandCheckUrl, |
|
69 EMMFTestCustomCommandCheckLongUrl, |
|
70 EMMFTestCustomCommandPanic |
|
71 }; |
|
72 |
|
73 _LIT8(KFirstParameter,"first"); |
|
74 _LIT8(KSecondParameter,"second"); |
|
75 _LIT8(KReturnParameter,"third"); |
|
76 |
|
77 //URL Test |
|
78 _LIT(KTestURL, "http://www.symbian.com/test.pav"); |
|
79 _LIT(KTestLongURL, "http://www.symbian.com/stream/clip/urls/aaaaaaaaa50-aaaaaaa60-aaaaaaa70-aaaaaaa80-aaaaaaa90-aaaaaa99/aaaaaaa110-aaaaaa120-aaaaaa130-aaaaaa140-aaaaaa150-aaaaaa160-aaaaaa170-aaaaaa180-aaaaaa190-aaaaa199/aaaaaaa210-aaaaaa220-aaaaaa230-aaaaaa240-aaaaaa250-aaaaaa260-aaaaaa270-aaaaaa280-aaaaaa290-aaaaa299/aaaaaaa310-aaaaaa320-aaaaaa330-aaaaaa340-aaaaaa350-aaaaaa360-aaaaaa370-aaaaaa380-aaaaaa390-aaaaa399/aaaaaaa410-aaaaaa420-aaaaaa430-aaaaaa440-aaaaaa450-aaaaaa460-aaaaaa470-aaaaaa480-aaaaaa490-aaaaa499/test.pav"); |
|
80 const TInt KTestIap = 5; |
|
81 |
|
82 const TInt KTestCustomCommandSuccess = -4444; |
|
83 const TInt KTestCustomCommandFailure = -5555; |
|
84 const TInt KTestGeneralError = -7777; |
|
85 |
|
86 const TInt KPlayStartTime = 1000000; |
|
87 const TInt KPlayEndTime = 2000000; |
|
88 const TInt KTestFrameRate = 25; |
|
89 |
|
90 const TInt KUidTestController = 0x101F88D8; |
|
91 |
|
92 #endif |