|
1 // Copyright (c) 2007-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 /** |
|
17 @file |
|
18 */ |
|
19 |
|
20 #include <e32base.h> |
|
21 #include "rtp.h" |
|
22 #include "events.h" |
|
23 |
|
24 /** |
|
25 Constructor. |
|
26 |
|
27 @param aType The event type. |
|
28 @param aStatus The event status. |
|
29 @param aData Additional data that is dependent on the event type. |
|
30 */ |
|
31 EXPORT_C TRtpEvent::TRtpEvent(TRtpEventType aType, TInt aStatus, TAny* aData) |
|
32 : iType(aType), iStatus(aStatus), iData(aData) |
|
33 { |
|
34 } |
|
35 |
|
36 /** |
|
37 Gets a handle to the session associated with this event. |
|
38 |
|
39 This function should only be called for events that are associated with |
|
40 an RTP session, otherwise it raises a panic. |
|
41 |
|
42 @panic RTP 8 if the event is not associated with an RTP session. |
|
43 Note that this panic is raised in debug mode only; in release |
|
44 mode, calling this function on in inappropriate event is |
|
45 likely to raise panics such as KERN-EXEC 3. |
|
46 |
|
47 @see TRtpEvent::IsSessionEvent() |
|
48 */ |
|
49 EXPORT_C RRtpSession TRtpEvent::Session() const |
|
50 { |
|
51 ASSERT(0); |
|
52 RRtpSession session; |
|
53 return session; |
|
54 } |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 /** |
|
60 Gets a handle to the receive stream associated with this event. |
|
61 |
|
62 This function should only be called for events that are associated with |
|
63 a receive stream, otherwise it raises a panic. |
|
64 |
|
65 @panic RTP 8 if the event is not associated with a receive stream. |
|
66 Note that this panic is raised in debug mode only; in release |
|
67 mode, calling this function on in inappropriate event is |
|
68 likely to raise panics such as KERN-EXEC 3. |
|
69 |
|
70 @see TRtpEvent::IsReceiveSourceEvent() |
|
71 */ |
|
72 EXPORT_C RRtpReceiveSource TRtpEvent::ReceiveSource() const |
|
73 { |
|
74 ASSERT(0); |
|
75 RRtpReceiveSource stream; |
|
76 return stream; |
|
77 } |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 /** |
|
83 Gets a handle to the send stream associated with this event. |
|
84 |
|
85 This function should only be called for events that are associated with |
|
86 a send stream, otherwise it raises a panic. |
|
87 |
|
88 @panic RTP 8 if the event is not associated with a send stream. |
|
89 Note that this panic is raised in debug mode only; in release |
|
90 mode, calling this function on in inappropriate event is |
|
91 likely to raise panics such as KERN-EXEC 3. |
|
92 |
|
93 @see TRtpEvent::IsSendSourceEvent() |
|
94 */ |
|
95 EXPORT_C RRtpSendSource TRtpEvent::SendSource() const |
|
96 { |
|
97 ASSERT(0); |
|
98 RRtpSendSource stream; |
|
99 return stream; |
|
100 } |
|
101 |
|
102 /** |
|
103 Tests whether this event is associated with an RTP session. |
|
104 |
|
105 @return True, if this event is associated with an RTP session, |
|
106 false otherwise. |
|
107 */ |
|
108 EXPORT_C TBool TRtpEvent::IsSessionEvent() const |
|
109 { |
|
110 ASSERT(0); |
|
111 return EFalse; |
|
112 } |
|
113 |
|
114 /** |
|
115 Tests whether this event is associated with a send stream. |
|
116 |
|
117 @return True, if this event is associated with a send stream, |
|
118 false otherwise. |
|
119 */ |
|
120 EXPORT_C TBool TRtpEvent::IsSendSourceEvent() const |
|
121 { |
|
122 ASSERT(0); |
|
123 return EFalse; |
|
124 } |
|
125 |
|
126 |
|
127 |
|
128 |
|
129 /** |
|
130 Tests whether this event is associated with a receive stream. |
|
131 |
|
132 @return True, if this event is associated with a receive stream, |
|
133 false otherwise. |
|
134 */ |
|
135 EXPORT_C TBool TRtpEvent::IsReceiveSourceEvent() const |
|
136 { |
|
137 ASSERT(0); |
|
138 return EFalse; |
|
139 } |