williamr@2
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@2
|
4 |
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@2
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
// Default constructor
|
williamr@2
|
15 |
//
|
williamr@2
|
16 |
//
|
williamr@2
|
17 |
|
williamr@2
|
18 |
|
williamr@2
|
19 |
|
williamr@2
|
20 |
inline RRtpSession::RRtpSession()
|
williamr@2
|
21 |
: iPtr(NULL)
|
williamr@2
|
22 |
{
|
williamr@2
|
23 |
}
|
williamr@2
|
24 |
|
williamr@2
|
25 |
|
williamr@2
|
26 |
|
williamr@2
|
27 |
|
williamr@2
|
28 |
/**
|
williamr@2
|
29 |
Tests whether the RTP session represented by this handle is open.
|
williamr@2
|
30 |
|
williamr@2
|
31 |
@return ETrue, if the session is open, false otherwise.
|
williamr@2
|
32 |
*/
|
williamr@2
|
33 |
inline TBool RRtpSession::IsOpen() const
|
williamr@2
|
34 |
{
|
williamr@2
|
35 |
return (iPtr != NULL);
|
williamr@2
|
36 |
}
|
williamr@2
|
37 |
|
williamr@2
|
38 |
|
williamr@2
|
39 |
|
williamr@2
|
40 |
|
williamr@2
|
41 |
/**
|
williamr@2
|
42 |
Tests whether this session handle represents the same session as
|
williamr@2
|
43 |
the one represented by the specified handle.
|
williamr@2
|
44 |
|
williamr@2
|
45 |
@param aThat The handle of the session to be compared.
|
williamr@2
|
46 |
|
williamr@2
|
47 |
@return ETrue, if the represented sessions are the same, false otherwise.
|
williamr@2
|
48 |
*/
|
williamr@2
|
49 |
inline TBool RRtpSession::operator == (RRtpSession aThat) const
|
williamr@2
|
50 |
{
|
williamr@2
|
51 |
return aThat.iPtr == iPtr;
|
williamr@2
|
52 |
}
|
williamr@2
|
53 |
|
williamr@2
|
54 |
|
williamr@2
|
55 |
|
williamr@2
|
56 |
|
williamr@2
|
57 |
/**
|
williamr@2
|
58 |
Tests whether this session handle represents a different session to the one
|
williamr@2
|
59 |
represented by the specified handle.
|
williamr@2
|
60 |
|
williamr@2
|
61 |
@param aThat The handle of the session to be compared.
|
williamr@2
|
62 |
|
williamr@2
|
63 |
@return ETrue, if the represented sessions are different, false otherwise.
|
williamr@2
|
64 |
*/
|
williamr@2
|
65 |
inline TBool RRtpSession::operator != (RRtpSession aThat) const
|
williamr@2
|
66 |
{
|
williamr@2
|
67 |
return !(aThat == *this);
|
williamr@2
|
68 |
}
|
williamr@2
|
69 |
|
williamr@2
|
70 |
|
williamr@2
|
71 |
|
williamr@2
|
72 |
|
williamr@2
|
73 |
/**
|
williamr@2
|
74 |
Default constructor
|
williamr@2
|
75 |
*/
|
williamr@2
|
76 |
inline RRtpSendSource::RRtpSendSource()
|
williamr@2
|
77 |
: iPtr(NULL)
|
williamr@2
|
78 |
{
|
williamr@2
|
79 |
}
|
williamr@2
|
80 |
|
williamr@2
|
81 |
|
williamr@2
|
82 |
|
williamr@2
|
83 |
/**
|
williamr@2
|
84 |
Tests whether the send stream represented by this handle is open.
|
williamr@2
|
85 |
|
williamr@2
|
86 |
@return ETrue, if the send stream is open, false otherwise.
|
williamr@2
|
87 |
*/
|
williamr@2
|
88 |
inline TBool RRtpSendSource::IsOpen() const
|
williamr@2
|
89 |
{
|
williamr@2
|
90 |
return (iPtr != NULL);
|
williamr@2
|
91 |
}
|
williamr@2
|
92 |
|
williamr@2
|
93 |
|
williamr@2
|
94 |
|
williamr@2
|
95 |
|
williamr@2
|
96 |
/**
|
williamr@2
|
97 |
Tests whether this send stream handle represents the same send stream as
|
williamr@2
|
98 |
the one represented by the specified handle.
|
williamr@2
|
99 |
|
williamr@2
|
100 |
@param aThat The handle of the send stream to be compared.
|
williamr@2
|
101 |
|
williamr@2
|
102 |
@return ETrue, if the represented send streams are the same, false otherwise.
|
williamr@2
|
103 |
*/
|
williamr@2
|
104 |
inline TBool RRtpSendSource::operator == (RRtpSendSource aThat) const
|
williamr@2
|
105 |
{
|
williamr@2
|
106 |
return aThat.iPtr == iPtr;
|
williamr@2
|
107 |
}
|
williamr@2
|
108 |
|
williamr@2
|
109 |
|
williamr@2
|
110 |
|
williamr@2
|
111 |
|
williamr@2
|
112 |
/**
|
williamr@2
|
113 |
Tests whether this send stream handle represents a different send stream to the one
|
williamr@2
|
114 |
represented by the specified handle.
|
williamr@2
|
115 |
|
williamr@2
|
116 |
@param aThat The handle of the send stream to be compared.
|
williamr@2
|
117 |
|
williamr@2
|
118 |
@return ETrue, if the represented send streams are different, false otherwise.
|
williamr@2
|
119 |
*/
|
williamr@2
|
120 |
inline TBool RRtpSendSource::operator != (RRtpSendSource aThat) const
|
williamr@2
|
121 |
{
|
williamr@2
|
122 |
return !(aThat == *this);
|
williamr@2
|
123 |
}
|
williamr@2
|
124 |
|
williamr@2
|
125 |
|
williamr@2
|
126 |
/**
|
williamr@2
|
127 |
Default constructor
|
williamr@2
|
128 |
*/
|
williamr@2
|
129 |
inline RRtpReceiveSource::RRtpReceiveSource()
|
williamr@2
|
130 |
: iPtr(NULL)
|
williamr@2
|
131 |
{
|
williamr@2
|
132 |
}
|
williamr@2
|
133 |
|
williamr@2
|
134 |
|
williamr@2
|
135 |
|
williamr@2
|
136 |
|
williamr@2
|
137 |
/**
|
williamr@2
|
138 |
Tests whether the receive stream represented by this handle is open.
|
williamr@2
|
139 |
|
williamr@2
|
140 |
@return ETrue, if the receive stream is open, false otherwise.
|
williamr@2
|
141 |
*/
|
williamr@2
|
142 |
inline TBool RRtpReceiveSource::IsOpen() const
|
williamr@2
|
143 |
{
|
williamr@2
|
144 |
return (iPtr != NULL);
|
williamr@2
|
145 |
}
|
williamr@2
|
146 |
|
williamr@2
|
147 |
|
williamr@2
|
148 |
|
williamr@2
|
149 |
|
williamr@2
|
150 |
/**
|
williamr@2
|
151 |
Tests whether this receive stream handle represents the same receive stream as
|
williamr@2
|
152 |
the one represented by the specified handle.
|
williamr@2
|
153 |
|
williamr@2
|
154 |
@param aThat The handle of the receive stream to be compared.
|
williamr@2
|
155 |
|
williamr@2
|
156 |
@return ETrue, if the represented receive streams are the same, false otherwise.
|
williamr@2
|
157 |
*/
|
williamr@2
|
158 |
inline TBool RRtpReceiveSource::operator == (RRtpReceiveSource aThat) const
|
williamr@2
|
159 |
{
|
williamr@2
|
160 |
return aThat.iPtr == iPtr;
|
williamr@2
|
161 |
}
|
williamr@2
|
162 |
|
williamr@2
|
163 |
|
williamr@2
|
164 |
|
williamr@2
|
165 |
|
williamr@2
|
166 |
/**
|
williamr@2
|
167 |
Tests whether this receive stream handle represents a different receive stream to the one
|
williamr@2
|
168 |
represented by the specified handle.
|
williamr@2
|
169 |
|
williamr@2
|
170 |
@param aThat The handle of the receive stream to be compared.
|
williamr@2
|
171 |
|
williamr@2
|
172 |
@return ETrue, if the represented receive streams are different, false otherwise.
|
williamr@2
|
173 |
*/
|
williamr@2
|
174 |
inline TBool RRtpReceiveSource::operator != (RRtpReceiveSource aThat) const
|
williamr@2
|
175 |
{
|
williamr@2
|
176 |
return !(aThat == *this);
|
williamr@2
|
177 |
}
|
williamr@2
|
178 |
|
williamr@2
|
179 |
|
williamr@2
|
180 |
/**
|
williamr@2
|
181 |
Default constructor.
|
williamr@2
|
182 |
*/
|
williamr@2
|
183 |
inline RRtpPacket::RRtpPacket()
|
williamr@2
|
184 |
: iPtr(NULL)
|
williamr@2
|
185 |
{
|
williamr@2
|
186 |
}
|
williamr@2
|
187 |
|
williamr@2
|
188 |
|
williamr@2
|
189 |
|
williamr@2
|
190 |
|
williamr@2
|
191 |
/**
|
williamr@2
|
192 |
Tests whether this packet object is open.
|
williamr@2
|
193 |
|
williamr@2
|
194 |
@return ETrue, if the packet is open, false otherwise.
|
williamr@2
|
195 |
*/
|
williamr@2
|
196 |
inline TBool RRtpPacket::IsOpen() const
|
williamr@2
|
197 |
{
|
williamr@2
|
198 |
return (iPtr != NULL);
|
williamr@2
|
199 |
}
|
williamr@2
|
200 |
|
williamr@2
|
201 |
|
williamr@2
|
202 |
|
williamr@2
|
203 |
|
williamr@2
|
204 |
/**
|
williamr@2
|
205 |
Tests whether this packet handle represents the same packet as
|
williamr@2
|
206 |
the one represented by the specified handle.
|
williamr@2
|
207 |
|
williamr@2
|
208 |
@param aThat The handle of the packet to be compared.
|
williamr@2
|
209 |
|
williamr@2
|
210 |
@return ETrue, if the represented packets are the same, false otherwise.
|
williamr@2
|
211 |
*/
|
williamr@2
|
212 |
inline TBool RRtpPacket::operator == (RRtpPacket aThat) const
|
williamr@2
|
213 |
{
|
williamr@2
|
214 |
return aThat.iPtr == iPtr;
|
williamr@2
|
215 |
}
|
williamr@2
|
216 |
|
williamr@2
|
217 |
|
williamr@2
|
218 |
|
williamr@2
|
219 |
|
williamr@2
|
220 |
/**
|
williamr@2
|
221 |
Tests whether this packet handle represents a different packet to the one
|
williamr@2
|
222 |
represented by the specified handle.
|
williamr@2
|
223 |
|
williamr@2
|
224 |
@param aThat The handle of the packet to be compared.
|
williamr@2
|
225 |
|
williamr@2
|
226 |
@return ETrue, if the represented packets are different, false otherwise.
|
williamr@2
|
227 |
*/
|
williamr@2
|
228 |
inline TBool RRtpPacket::operator != (RRtpPacket aThat) const
|
williamr@2
|
229 |
{
|
williamr@2
|
230 |
return !(aThat == *this);
|
williamr@2
|
231 |
}
|
williamr@2
|
232 |
|
williamr@2
|
233 |
/**
|
williamr@2
|
234 |
Gets the type of this event.
|
williamr@2
|
235 |
|
williamr@2
|
236 |
@return The event type.
|
williamr@2
|
237 |
*/
|
williamr@2
|
238 |
inline TRtpEventType TRtpEvent::Type() const
|
williamr@2
|
239 |
{
|
williamr@2
|
240 |
return iType;
|
williamr@2
|
241 |
}
|
williamr@2
|
242 |
|
williamr@2
|
243 |
/**
|
williamr@2
|
244 |
Gets the event status.
|
williamr@2
|
245 |
|
williamr@2
|
246 |
The meaning of this depends on the event type.
|
williamr@2
|
247 |
|
williamr@2
|
248 |
@see TRtpEventType
|
williamr@2
|
249 |
*/
|
williamr@2
|
250 |
inline TInt TRtpEvent::Status() const
|
williamr@2
|
251 |
{
|
williamr@2
|
252 |
return iStatus;
|
williamr@2
|
253 |
}
|