|
1 /* |
|
2 * Copyright (c) 2007 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 #ifndef __MCCMEDIASTREAM_H__ |
|
22 #define __MCCMEDIASTREAM_H__ |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 enum TStreamDirection |
|
27 { |
|
28 EUpStream, |
|
29 EDownStream |
|
30 }; |
|
31 |
|
32 enum TMccStreamState |
|
33 { |
|
34 EStreamReady, |
|
35 EStreamCreated, |
|
36 ERtpStreamPrepared, |
|
37 ERtcpStreamPrepared, |
|
38 ERtpStreamStarted, |
|
39 ERtcpStreamStarted |
|
40 }; |
|
41 |
|
42 class CMccLink; |
|
43 class CMccSession; |
|
44 |
|
45 |
|
46 class CMccMediaStream : public CBase |
|
47 { |
|
48 public: |
|
49 static CMccMediaStream* NewL( CMccLink* aLink, CMccSession* aSession, |
|
50 TStreamDirection aStreamDirection ); |
|
51 |
|
52 void CreateStreamL( TInt32& aStreamId, TRequestStatus& aStatus ); |
|
53 |
|
54 void PrepareStreamL( TRequestStatus& aStatus ); |
|
55 |
|
56 void StartStreamL( TRequestStatus& aStatus ); |
|
57 |
|
58 TMccStreamState State(); |
|
59 |
|
60 void SetState( TMccStreamState aState ); |
|
61 |
|
62 TInt Delete(); |
|
63 |
|
64 TUint32 StreamId(); |
|
65 |
|
66 virtual ~CMccMediaStream(); |
|
67 |
|
68 private: |
|
69 void ConstructL(); |
|
70 |
|
71 CMccMediaStream( CMccLink* aLink, CMccSession* aSession, |
|
72 TStreamDirection aStreamDirection ); |
|
73 |
|
74 private: // data |
|
75 CMccLink* iLink; // not own |
|
76 CMccSession* iSession; // not own |
|
77 TStreamDirection iStreamDirection; |
|
78 TMccStreamState iState; |
|
79 TUint32 iStreamId; |
|
80 |
|
81 }; |
|
82 |
|
83 #endif |