|
1 /* |
|
2 * Copyright (c) 2005 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 #ifndef CSIPBEARERMONITOR_INL |
|
20 #define CSIPBEARERMONITOR_INL |
|
21 |
|
22 |
|
23 // --------------------------------------------------------------------------- |
|
24 // TSIPBearerParams::TSIPBearerParams |
|
25 // --------------------------------------------------------------------------- |
|
26 // |
|
27 inline TSIPBearerParams::TSIPBearerParams( |
|
28 MSIPBearerOwner& aOwner, |
|
29 TInt aIapId, |
|
30 TInt aError, |
|
31 MSIPNetworkInfoObserver& aNetworkInfoObserver ) : |
|
32 iOwner( aOwner ), |
|
33 iIapId( aIapId ), |
|
34 iError( aError ), |
|
35 iNetworkInfoObserver( aNetworkInfoObserver ) |
|
36 { |
|
37 } |
|
38 |
|
39 // --------------------------------------------------------------------------- |
|
40 // CSIPBearerMonitor::~CSIPBearerMonitor |
|
41 // --------------------------------------------------------------------------- |
|
42 // |
|
43 inline CSIPBearerMonitor::~CSIPBearerMonitor() |
|
44 { |
|
45 REComSession::DestroyedImplementation( iInstanceKey ); |
|
46 } |
|
47 |
|
48 // --------------------------------------------------------------------------- |
|
49 // CSIPBearerMonitor::State |
|
50 // --------------------------------------------------------------------------- |
|
51 // |
|
52 inline MSIPNetworkObserver::TNetworkState CSIPBearerMonitor::State() const |
|
53 { |
|
54 return iState; |
|
55 } |
|
56 |
|
57 // --------------------------------------------------------------------------- |
|
58 // CSIPBearerMonitor::RefreshL |
|
59 // --------------------------------------------------------------------------- |
|
60 // |
|
61 inline void CSIPBearerMonitor::RefreshL( TInt /*aError*/ ) |
|
62 { |
|
63 } |
|
64 |
|
65 // --------------------------------------------------------------------------- |
|
66 // CSIPBearerMonitor::ContinueMonitoring |
|
67 // By default, all other error codes than KErrNone lead to negative result |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 inline TBool CSIPBearerMonitor::ContinueMonitoring( TInt aError ) |
|
71 { |
|
72 return aError == KErrNone; |
|
73 } |
|
74 |
|
75 // --------------------------------------------------------------------------- |
|
76 // CSIPBearerMonitor::CSIPBearerMonitor |
|
77 // --------------------------------------------------------------------------- |
|
78 // |
|
79 inline CSIPBearerMonitor::CSIPBearerMonitor( TAny* aParams ) : |
|
80 iParent( reinterpret_cast< TSIPBearerParams* >( aParams )->iOwner ), |
|
81 iIapId( reinterpret_cast< TSIPBearerParams* >( aParams )->iIapId ), |
|
82 iError( reinterpret_cast< TSIPBearerParams* >( aParams )->iError ), |
|
83 iNetworkInfoObserver( reinterpret_cast< TSIPBearerParams* > |
|
84 ( aParams )->iNetworkInfoObserver ) |
|
85 { |
|
86 } |
|
87 |
|
88 #endif // CSIPBEARERMONITOR_INL |
|
89 |
|
90 // End of File |
|
91 |