|
1 /* |
|
2 * Copyright (c) 2009-2010 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 * Initial Contributors: |
|
9 * Nokia Corporation - initial contribution. |
|
10 * Contributors: |
|
11 * |
|
12 * Description: |
|
13 * MSRP Implementation |
|
14 * |
|
15 */ |
|
16 |
|
17 #ifndef __MMMSRPCONNECTIONMANAGEROBSERVER_H |
|
18 #define __MMMSRPCONNECTIONMANAGEROBSERVER_H |
|
19 |
|
20 #include <in_sock.h> |
|
21 #include <e32base.h> |
|
22 #include "MMSRPConnection.h" |
|
23 #include "MMSRPConnectionObserver.h" |
|
24 |
|
25 class MMSRPConnection; |
|
26 // CLASS DECLARATIONS |
|
27 class MMSRPConnectionManagerObserver |
|
28 { |
|
29 |
|
30 public: |
|
31 |
|
32 enum TMSRPConnManagerErrors |
|
33 { |
|
34 ESocketServerStartFailed = -110, |
|
35 EInterfaceStartFailed, |
|
36 ELocalAddressResolveFailed, |
|
37 EAddressResolveError, |
|
38 EListenerStartError, |
|
39 EListenPortFailed |
|
40 }; |
|
41 |
|
42 |
|
43 /** |
|
44 * Get local ip address to form msrp path |
|
45 * @out param aLocalAddress |
|
46 */ |
|
47 //socket server, connection, listen port failure |
|
48 virtual void HandleError(TInt aError, TInt aStatus, MMSRPConnection& aConnection) = 0; |
|
49 |
|
50 //if listener fails, change listen port and restart listener |
|
51 |
|
52 }; |
|
53 |
|
54 #endif // __MMMSRPCONNECTIONMANAGER_H |
|
55 |
|
56 // End of file |