|
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: implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MSRTPSTREAMOUTCONTEXT_H |
|
22 #define MSRTPSTREAMOUTCONTEXT_H |
|
23 |
|
24 #include <e32std.h> |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 /** |
|
29 * A context for CSRTPStreamOut states. Defines the states for outgoing stream. |
|
30 * |
|
31 * @lib n/a |
|
32 */ |
|
33 class MSRTPStreamOutContext |
|
34 { |
|
35 public: // Enumerations |
|
36 |
|
37 enum TContextOutState |
|
38 { |
|
39 /* Not initialized, no calls made for this stream yet, */ |
|
40 ESRTPStreamOutUninitialized=0, |
|
41 /** Normal, stream initialized, use the SSRC given from user */ |
|
42 ESRTPStreamOutNormal=1, |
|
43 /** Not a real state. Upper limit for the number of states */ |
|
44 EMaxStates=2 |
|
45 }; |
|
46 |
|
47 public: // New functions |
|
48 |
|
49 /* |
|
50 * Virtual function for changing state of the current |
|
51 * sender stream (for RTP) |
|
52 * Implemented in CSRTPStreamOut |
|
53 * @param aNewState new RTP state which stream is changed to |
|
54 */ |
|
55 virtual void ChangeRTPState(TContextOutState aNewState) = 0; |
|
56 |
|
57 /* |
|
58 * Virtual function for changing state of the current |
|
59 * sender stream (for RTCP) |
|
60 * Implemented in CSRTPStreamOut |
|
61 * * @param aNewState new RTCP state which stream is changed to |
|
62 */ |
|
63 virtual void ChangeRTCPState(TContextOutState aNewState) = 0; |
|
64 |
|
65 }; |
|
66 #endif //MSRTPStreamOutContext_H |