49
|
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 |
|
|
20 |
|
|
21 |
#include "mcemsrpcodec.h"
|
|
22 |
#include "mcecommsrpcodec.h"
|
|
23 |
|
|
24 |
#ifdef MCE_COMMON_SERVER_SIDE
|
|
25 |
|
|
26 |
#include <MmccCodecInformation.h>
|
|
27 |
#include "mcesrvstream.h"
|
|
28 |
#include "mcesrvsource.h"
|
|
29 |
|
|
30 |
#include <MmccCodecInformationFactory.h>
|
|
31 |
#include <MmccCodecInformation.h>
|
|
32 |
|
|
33 |
//levels two redundancy is default
|
|
34 |
_LIT8( KDefaultMsrpFmtp, "a=Message dummy codec" );
|
|
35 |
|
|
36 |
#endif//MCE_COMMON_SERVER_SIDE
|
|
37 |
|
|
38 |
|
|
39 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
// -----------------------------------------------------------------------------
|
|
44 |
// CMceComMsrpCodec::NewL
|
|
45 |
// -----------------------------------------------------------------------------
|
|
46 |
//
|
|
47 |
CMceComMsrpCodec* CMceComMsrpCodec::NewL( TBuf8<KMceMaxSdpNameLength> aSdpName )
|
|
48 |
{
|
|
49 |
CMceComMsrpCodec* self = NewLC( aSdpName );
|
|
50 |
CleanupStack::Pop( self );
|
|
51 |
return self;
|
|
52 |
|
|
53 |
}
|
|
54 |
|
|
55 |
// -----------------------------------------------------------------------------
|
|
56 |
// CMceComMsrpCodec::NewLC
|
|
57 |
// -----------------------------------------------------------------------------
|
|
58 |
//
|
|
59 |
CMceComMsrpCodec* CMceComMsrpCodec::NewLC( TBuf8<KMceMaxSdpNameLength> aSdpName )
|
|
60 |
{
|
|
61 |
CMceComMsrpCodec* self = new (ELeave) CMceComMsrpCodec();
|
|
62 |
CleanupStack::PushL( self );
|
|
63 |
self->ConstructL( aSdpName );
|
|
64 |
return self;
|
|
65 |
}
|
|
66 |
|
|
67 |
|
|
68 |
// -----------------------------------------------------------------------------
|
|
69 |
// CMceComMsrpCodec::~CMceComMsrpCodec
|
|
70 |
// -----------------------------------------------------------------------------
|
|
71 |
//
|
|
72 |
CMceComMsrpCodec::~CMceComMsrpCodec()
|
|
73 |
{
|
|
74 |
}
|
|
75 |
|
|
76 |
|
|
77 |
// -----------------------------------------------------------------------------
|
|
78 |
// CMceComMsrpCodec::CMceComMsrpCodec
|
|
79 |
// -----------------------------------------------------------------------------
|
|
80 |
//
|
|
81 |
CMceComMsrpCodec::CMceComMsrpCodec()
|
|
82 |
: CMceComMessageCodec()
|
|
83 |
{
|
|
84 |
|
|
85 |
}
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
// -----------------------------------------------------------------------------
|
|
90 |
// CMceComMsrpCodec::ConstructL
|
|
91 |
// -----------------------------------------------------------------------------
|
|
92 |
//
|
|
93 |
CMceComMessageCodec* CMceComMsrpCodec::CloneL()
|
|
94 |
{
|
|
95 |
CMceComMsrpCodec* copy = new (ELeave) CMceComMsrpCodec();
|
|
96 |
CleanupStack::PushL( copy );
|
|
97 |
copy->ConstructL( *this );
|
|
98 |
CleanupStack::Pop( copy );
|
|
99 |
return copy;
|
|
100 |
|
|
101 |
}
|
|
102 |
|
|
103 |
|
|
104 |
// -----------------------------------------------------------------------------
|
|
105 |
// CMceComMsrpCodec::ConstructL
|
|
106 |
// -----------------------------------------------------------------------------
|
|
107 |
//
|
|
108 |
void CMceComMsrpCodec::ConstructL( TBuf8<KMceMaxSdpNameLength> aSdpName )
|
|
109 |
{
|
|
110 |
CMceComMessageCodec::ConstructL( aSdpName );
|
|
111 |
|
|
112 |
}
|
|
113 |
|
|
114 |
|
|
115 |
// -----------------------------------------------------------------------------
|
|
116 |
// CMceComMsrpCodec::ConstructL
|
|
117 |
// -----------------------------------------------------------------------------
|
|
118 |
//
|
|
119 |
void CMceComMsrpCodec::ConstructL( CMceComMsrpCodec& aCodec )
|
|
120 |
{
|
|
121 |
CMceComMessageCodec::ConstructL( aCodec );
|
|
122 |
}
|
|
123 |
|
|
124 |
|
|
125 |
// -----------------------------------------------------------------------------
|
|
126 |
// CMceComMsrpCodec::SetBitrate
|
|
127 |
// -----------------------------------------------------------------------------
|
|
128 |
//
|
|
129 |
TInt CMceComMsrpCodec::SetBitrate( TUint /*aBitrate*/ )
|
|
130 |
{
|
|
131 |
return KErrNone;
|
|
132 |
}
|
|
133 |
|
|
134 |
// -----------------------------------------------------------------------------
|
|
135 |
// CMceComMsrpCodec::SetAllowedBitrates
|
|
136 |
// -----------------------------------------------------------------------------
|
|
137 |
//
|
|
138 |
TInt CMceComMsrpCodec::SetAllowedBitrates( TUint /*aBitrates*/ )
|
|
139 |
{
|
|
140 |
return KErrNone;
|
|
141 |
}
|
|
142 |
|
|
143 |
// ---------------------------------------------------------
|
|
144 |
// CMceComMsrpCodec::GetMaxBitRate
|
|
145 |
// ---------------------------------------------------------
|
|
146 |
TUint CMceComMsrpCodec::GetMaxBitRate()
|
|
147 |
{
|
|
148 |
return 0;
|
|
149 |
}
|
|
150 |
|
|
151 |
// ---------------------------------------------------------
|
|
152 |
// CMceComMsrpCodec::ResolveAllowedBitrates
|
|
153 |
// ---------------------------------------------------------
|
|
154 |
//
|
|
155 |
TInt CMceComMsrpCodec::ResolveAllowedBitrates(
|
|
156 |
TUint /*aBitrate*/, TUint& /*aAllowedBitrates*/ )
|
|
157 |
{
|
|
158 |
return KErrNone;
|
|
159 |
}
|
|
160 |
|
|
161 |
#ifdef MCE_COMMON_SERVER_SIDE
|
|
162 |
|
|
163 |
// -----------------------------------------------------------------------------
|
|
164 |
// CMceComMsrpCodec::DoMccValidateL
|
|
165 |
// -----------------------------------------------------------------------------
|
|
166 |
//
|
|
167 |
CMceComCodec* CMceComMsrpCodec::DoMccValidateL( CMccCodecInformation& /*aMccCodec*/,
|
|
168 |
CMceSrvStream& /*aStream*/,
|
|
169 |
TMceNegotiationRole /*aRole*/ )
|
|
170 |
{
|
|
171 |
return NULL;
|
|
172 |
}
|
|
173 |
|
|
174 |
// -----------------------------------------------------------------------------
|
|
175 |
// CMceComMsrpCodec::DoSetDefaultFmtpAttributeL
|
|
176 |
// -----------------------------------------------------------------------------
|
|
177 |
//
|
|
178 |
void CMceComMsrpCodec::DoSetDefaultFmtpAttributeL()
|
|
179 |
{
|
|
180 |
SetFmtpAttributeL( KDefaultMsrpFmtp );
|
|
181 |
}
|
|
182 |
|
|
183 |
#endif
|
|
184 |
|
|
185 |
// End of File
|