|
1 /* |
|
2 * Copyright (c) 2003 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: A connection manager object uses this callback function to indicate |
|
15 * that a change in the status of the bearer has occurred. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __IMPSBEAREROBSERVERCALLBACK_H__ |
|
21 #define __IMPSBEAREROBSERVERCALLBACK_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 //This must be kept as low as possible |
|
26 const TInt KMaxNumberOfSubscribers = 3; |
|
27 |
|
28 //Possible events |
|
29 enum TImpsBearerEvent |
|
30 { |
|
31 EImpsBearerActive = 0, |
|
32 EImpsBearerSuspended, |
|
33 EImpsBearerLost |
|
34 }; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 class MImpsBearerObserverCallback |
|
39 { |
|
40 public: |
|
41 |
|
42 /** |
|
43 * A connection manager object uses this callback function to indicate |
|
44 * that a change in the status of the bearer has occurred. It is important |
|
45 * to note that a call to the notification handler (HandleBearerEventL()) |
|
46 * takes place inside the RunL() method of a Connection Manager, so the |
|
47 * listening object MUST return the control to the Manager AS SOON AS |
|
48 * POSSIBLE in order not to clog the scheduler. |
|
49 * |
|
50 * @param TImpsBearerEvent The event that took place |
|
51 * @param TBool In case of EImpsBearerLost, indicates whether connection |
|
52 * was authoritatively closed (i.e. by the user) |
|
53 */ |
|
54 virtual void HandleBearerEventL( const TImpsBearerEvent aBearerEvent, TBool aIsAuthClose ) = 0; |
|
55 }; |
|
56 |
|
57 #endif // __IMPSBEAREROBSERVERCALLBACK_H__ |
|
58 |
|
59 // End of File |