|
1 // Copyright (c) 2008-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 // RTP Provision info definitions. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef __RTP_PROVISION_INFO_H |
|
24 #define __RTP_PROVISION_INFO_H |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <e32std.h> |
|
28 #include <in_sock.h> |
|
29 #include <comms-infras/metadata.h> |
|
30 #include <comms-infras/metatype.h> |
|
31 #include <comms-infras/metabuffer.h> |
|
32 #include <es_enum.h> |
|
33 |
|
34 /* Giving RTPSCPR Dlls UID */ |
|
35 const TUint KRtpProvisionUid = 0xE10042F0; |
|
36 const TUint KRtpProvisionConfigType = 0x100; |
|
37 |
|
38 |
|
39 class CRtpProvisionConfig: public CBase, public Meta::SMetaData |
|
40 { |
|
41 /** |
|
42 * CRtpProvisionConfig is used by RtpScpr to pass the provision info |
|
43 * to RTP and RTCP Flows |
|
44 * @internalComponent |
|
45 **/ |
|
46 public: |
|
47 static CRtpProvisionConfig* NewLC(); |
|
48 static CRtpProvisionConfig* NewL(); |
|
49 |
|
50 void SetBandWidth(TUint aBandWidth) |
|
51 { |
|
52 iBandWidth = aBandWidth; |
|
53 } |
|
54 |
|
55 void SetMaxDropOut(TUint aMaxDropout) |
|
56 { |
|
57 iMaxDropout = aMaxDropout; |
|
58 } |
|
59 |
|
60 void SetMaxMisorder(TUint aMaxMisorder) |
|
61 { |
|
62 iMaxMisorder = aMaxMisorder; |
|
63 } |
|
64 |
|
65 void SetMinSequential(TUint aMinSequential) |
|
66 { |
|
67 iMinSequential = aMinSequential; |
|
68 } |
|
69 |
|
70 void SetRtptimeConversion(TUint aRtpTimeConversion) |
|
71 { |
|
72 iRtpTimeConversion = aRtpTimeConversion; |
|
73 } |
|
74 |
|
75 void SetRtpTimeNow(TUint aRtpTimeNow) |
|
76 { |
|
77 iRtpTimeNow = aRtpTimeNow; |
|
78 } |
|
79 |
|
80 void SetRtpAutoSend(TBool aAutoSendRtcp) |
|
81 { |
|
82 iAutoSendRtcp = aAutoSendRtcp; |
|
83 } |
|
84 |
|
85 void SetDefDestinationAddr(const TInetAddr& aDestAddr) |
|
86 { |
|
87 iDefDestAddr = aDestAddr; |
|
88 } |
|
89 |
|
90 void SetCNAMEL(const TDesC8& aCName) |
|
91 { |
|
92 iCName.CreateL(aCName); |
|
93 return; |
|
94 } |
|
95 |
|
96 void SetRtcpReportInterval(const TTimeIntervalMicroSeconds32& aInterval) |
|
97 { |
|
98 iRtcpInterval = aInterval; |
|
99 return; |
|
100 } |
|
101 |
|
102 TUint BandWidth() const |
|
103 { |
|
104 return iBandWidth; |
|
105 } |
|
106 |
|
107 TUint MaxDropOut() const |
|
108 { |
|
109 return iMaxDropout; |
|
110 } |
|
111 |
|
112 TUint MaxMisorder() const |
|
113 { |
|
114 return iMaxMisorder; |
|
115 } |
|
116 |
|
117 TUint MinSequential() const |
|
118 { |
|
119 return iMinSequential; |
|
120 } |
|
121 |
|
122 TUint RtptimeConversion() const |
|
123 { |
|
124 return iRtpTimeConversion; |
|
125 } |
|
126 |
|
127 TUint RtpTimeNow() const |
|
128 { |
|
129 return iRtpTimeNow; |
|
130 } |
|
131 |
|
132 TBool RtpAutoSend() const |
|
133 { |
|
134 return iAutoSendRtcp; |
|
135 } |
|
136 |
|
137 const TDesC8& GetCNAME() const |
|
138 { |
|
139 return iCName; |
|
140 } |
|
141 |
|
142 const TInetAddr& GetDefDestinationAddr() const |
|
143 { |
|
144 return iDefDestAddr; |
|
145 } |
|
146 |
|
147 const TTimeIntervalMicroSeconds32& GetRtcpReportInterval() const |
|
148 { |
|
149 return iRtcpInterval; |
|
150 } |
|
151 |
|
152 ~CRtpProvisionConfig() |
|
153 { |
|
154 iCName.Close(); |
|
155 } |
|
156 |
|
157 private: |
|
158 |
|
159 CRtpProvisionConfig() |
|
160 { |
|
161 |
|
162 } |
|
163 |
|
164 DATA_VTABLE |
|
165 |
|
166 TUint iBandWidth; |
|
167 TUint iMaxDropout; |
|
168 TUint iMaxMisorder; |
|
169 TUint iMinSequential; |
|
170 TUint iRtpTimeConversion; |
|
171 TUint iRtpTimeNow; |
|
172 TBool iAutoSendRtcp; |
|
173 RBuf8 iCName; |
|
174 TInetAddr iDefDestAddr; |
|
175 TTimeIntervalMicroSeconds32 iRtcpInterval; |
|
176 |
|
177 }; |
|
178 |
|
179 #endif //__RTP_PROVISION_INFO_H |
|
180 |