|
1 /* |
|
2 * Copyright (c) 2007-2008 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: Observer for media source(s) |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef M_MNCMMEDIASOURCEOBSERVER_H |
|
22 #define M_MNCMMEDIASOURCEOBSERVER_H |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 /** |
|
27 * Observer for media source(s) |
|
28 * |
|
29 * Used by CNcmConnectionMultiplexer for receiving wrapper sending |
|
30 * error notifies |
|
31 * |
|
32 * @lib connectionmux.lib |
|
33 * @since S60 v3.2 |
|
34 */ |
|
35 class MNcmMediaSourceObserver |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Called by Media Source after wrapper has had sending error |
|
42 * |
|
43 * @since S60 v3.2 |
|
44 * @param aStreamId The ID identifying stream |
|
45 * @param aError The error code |
|
46 * @return void |
|
47 */ |
|
48 virtual void WrapperSenderError( TUint aStreamId, TInt aError ) = 0; |
|
49 |
|
50 /** |
|
51 * Called by Media Source if current local port is already in use. |
|
52 * Gets new free port. |
|
53 * |
|
54 * @since S60 v3.2 |
|
55 * @param aStreamId The ID identifying stream |
|
56 * @param aPort New free port |
|
57 * @return void |
|
58 */ |
|
59 virtual void GetFreePort( TUint aStreamId, TUint& aPort ) = 0; |
|
60 |
|
61 /** |
|
62 * Notifies that the first media packet is sent to |
|
63 * the remote end. |
|
64 * |
|
65 * @since S60 v3.2 |
|
66 * @param aStreamId The ID identifying stream |
|
67 * @return void |
|
68 */ |
|
69 virtual void FirstMediaPacketSent( TUint aStreamId ) = 0; |
|
70 }; |
|
71 |
|
72 |
|
73 #endif // M_MNCMMEDIASOURCEOBSERVER_H |