2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Name : sipbearermonitor.inl
16 * Part of : SIP NetworkMonitor
23 #ifndef CSIPBEARERMONITOR_INL
24 #define CSIPBEARERMONITOR_INL
27 // ---------------------------------------------------------------------------
28 // TSIPBearerParams::TSIPBearerParams
29 // ---------------------------------------------------------------------------
31 inline TSIPBearerParams::TSIPBearerParams(
32 MSIPBearerOwner& aOwner,
35 MSIPNetworkInfoObserver& aNetworkInfoObserver ) :
39 iNetworkInfoObserver( aNetworkInfoObserver )
43 // ---------------------------------------------------------------------------
44 // CSIPBearerMonitor::~CSIPBearerMonitor
45 // ---------------------------------------------------------------------------
47 inline CSIPBearerMonitor::~CSIPBearerMonitor()
49 REComSession::DestroyedImplementation( iInstanceKey );
52 // ---------------------------------------------------------------------------
53 // CSIPBearerMonitor::State
54 // ---------------------------------------------------------------------------
56 inline MSIPNetworkObserver::TNetworkState CSIPBearerMonitor::State() const
61 // ---------------------------------------------------------------------------
62 // CSIPBearerMonitor::RefreshL
63 // ---------------------------------------------------------------------------
65 inline void CSIPBearerMonitor::RefreshL( TInt /*aError*/ )
69 // ---------------------------------------------------------------------------
70 // CSIPBearerMonitor::ContinueMonitoring
71 // By default, all other error codes than KErrNone lead to negative result
72 // ---------------------------------------------------------------------------
74 inline TBool CSIPBearerMonitor::ContinueMonitoring( TInt aError )
76 return aError == KErrNone;
79 // ---------------------------------------------------------------------------
80 // CSIPBearerMonitor::CSIPBearerMonitor
81 // ---------------------------------------------------------------------------
83 inline CSIPBearerMonitor::CSIPBearerMonitor( TAny* aParams ) :
84 iParent( reinterpret_cast< TSIPBearerParams* >( aParams )->iOwner ),
85 iIapId( reinterpret_cast< TSIPBearerParams* >( aParams )->iIapId ),
86 iError( reinterpret_cast< TSIPBearerParams* >( aParams )->iError ),
87 iNetworkInfoObserver( reinterpret_cast< TSIPBearerParams* >
88 ( aParams )->iNetworkInfoObserver )
92 #endif // CSIPBEARERMONITOR_INL