1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MCEDEFS_H |
|
20 #define MCEDEFS_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 const TInt KMceMaxSdpNameLength = 20; |
|
25 const TUint8 KMceMaxPacketrate = 10; |
|
26 const TInt KMcePTimeFactor = 1000; |
|
27 |
|
28 const TInt KMceMaxSizeInReadStream = 1000; |
|
29 const TInt KMceExternalizeBufferExpandSize = 100; |
|
30 const TInt KMceArrayGranularity = 5; |
|
31 |
|
32 |
|
33 _LIT8( KMceSDPNamePCMU, "PCMU" ); |
|
34 _LIT8( KMceSDPNamePCMA, "PCMA" ); |
|
35 _LIT8( KMceSDPNameAMR, "AMR" ); |
|
36 |
|
37 _LIT8( KMceSDPNameH263, "H263" ); |
|
38 _LIT8( KMceSDPNameH2632000, "H263-2000" ); |
|
39 _LIT8( KMceSDPNameH2631998, "H263-1998" ); |
|
40 _LIT8( KMceSDPNameH264, "H264" ); |
|
41 |
|
42 typedef TInt TMceReturnStatus; |
|
43 const TMceReturnStatus KMceAsync = 1; |
|
44 const TMceReturnStatus KMceReady = 0; |
|
45 |
|
46 // SESSION MODIFIERS |
|
47 |
|
48 /** |
|
49 * Data type for session modifiers. |
|
50 */ |
|
51 typedef TUint32 TMceSessionModifier; |
|
52 |
|
53 |
|
54 /** |
|
55 * Usage of QOS preconditions within session; |
|
56 * This modifier can be set only when session is in state MceSession::EIdle. |
|
57 * By default, session is in preconditions supported mode. |
|
58 * |
|
59 * KMcePreconditionsNotUsed indicates that preconditions are not used. |
|
60 * KMcePreconditionsSupported indicates that preconditions are supported |
|
61 */ |
|
62 // KEY |
|
63 const TMceSessionModifier KMcePreconditions = 0; |
|
64 // VALUES |
|
65 const TUint KMcePreconditionsNotUsed = 0; |
|
66 const TUint KMcePreconditionsSupported = 1; |
|
67 |
|
68 /** |
|
69 * Usage of reliable provisional responses (aka 100rel) within session. |
|
70 * This modifier can be set only when session is in state MceSession::EIdle |
|
71 * or MceSession::EIncoming. |
|
72 * By default, session is in 100rel supported mode. |
|
73 * |
|
74 * KMce100RelNotUsed indicates that 100rel is not used. |
|
75 * KMce100RelSupported indicates that 100rel is supported. |
|
76 * KMce100RelRequired indicates that 100rel is required. |
|
77 */ |
|
78 // KEY |
|
79 const TMceSessionModifier KMce100Rel = 1; |
|
80 // VALUES |
|
81 const TUint KMce100RelNotUsed = 0; |
|
82 const TUint KMce100RelSupported = 1; |
|
83 const TUint KMce100RelRequired = 2; |
|
84 |
|
85 |
|
86 |
|
87 #ifdef __MWERKS__ |
|
88 #pragma warn_emptydecl off |
|
89 #endif |
|
90 |
|
91 #ifdef MCE_UNIT_TEST |
|
92 #include "mcetestdefs.h" |
|
93 #else |
|
94 #define MCE_UNIT_TEST_DEFS |
|
95 #endif |
|
96 |
|
97 #endif |
|