|
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 M_MICECONNECTIONOBSERVER_H |
|
22 #define M_MICECONNECTIONOBSERVER_H |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 class CIceConnection; |
|
27 |
|
28 /** |
|
29 * ICE connection observer interface. |
|
30 * |
|
31 * @lib icecandidatehandler.dll |
|
32 * @since S60 v3.2 |
|
33 */ |
|
34 class MIceConnectionObserver |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 /** Connection notify type */ |
|
40 enum TNotifyType |
|
41 { |
|
42 ENotifyUnknown = 0, |
|
43 ENotifyConnectionRemoved = 1, |
|
44 ENotifyConnectionError = 2, |
|
45 ENotifyRecvActivated = 3, |
|
46 ENotifyRecvDeactivated = 4, |
|
47 ENotifySendActivated = 5, |
|
48 ENotifySendDeactivated = 6, |
|
49 ENotifyFirstMediaPacketSent = 7 |
|
50 }; |
|
51 |
|
52 /** |
|
53 * Notifies about connection state changes. |
|
54 * |
|
55 * @since S60 v3.2 |
|
56 * @param aConnection Notifying connection |
|
57 * @param aType Type of notify |
|
58 * @param aError Error code |
|
59 */ |
|
60 virtual void ConnectionNotify( CIceConnection& aConnection, |
|
61 TNotifyType aType, TInt aError ) = 0; |
|
62 }; |
|
63 |
|
64 |
|
65 #endif // M_MICECONNECTIONOBSERVER_H |