epoc32/include/sipbearermonitor.inl
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files

/*
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* 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
* which accompanies this distribution, and is available
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
* Name          : sipbearermonitor.inl
* Part of       : SIP NetworkMonitor
* Version       : SIP/4.0 
*
*/



#ifndef CSIPBEARERMONITOR_INL
#define CSIPBEARERMONITOR_INL


// ---------------------------------------------------------------------------
// TSIPBearerParams::TSIPBearerParams
// ---------------------------------------------------------------------------
//
inline TSIPBearerParams::TSIPBearerParams( 
    MSIPBearerOwner& aOwner,
    TInt aIapId,
    TInt aError,
    MSIPNetworkInfoObserver& aNetworkInfoObserver ) :
    iOwner( aOwner ),
    iIapId( aIapId ),
    iError( aError ),
    iNetworkInfoObserver( aNetworkInfoObserver )
    {
    }

// ---------------------------------------------------------------------------
// CSIPBearerMonitor::~CSIPBearerMonitor
// ---------------------------------------------------------------------------
//
inline CSIPBearerMonitor::~CSIPBearerMonitor()
    {
	REComSession::DestroyedImplementation( iInstanceKey );
	}

// ---------------------------------------------------------------------------
// CSIPBearerMonitor::State
// ---------------------------------------------------------------------------
//
inline MSIPNetworkObserver::TNetworkState CSIPBearerMonitor::State() const
    {
    return iState;
    }

// ---------------------------------------------------------------------------
// CSIPBearerMonitor::RefreshL
// ---------------------------------------------------------------------------
//			
inline void CSIPBearerMonitor::RefreshL( TInt /*aError*/ )
    {
	}

// ---------------------------------------------------------------------------
// CSIPBearerMonitor::ContinueMonitoring
// By default, all other error codes than KErrNone lead to negative result
// ---------------------------------------------------------------------------
//	
inline TBool CSIPBearerMonitor::ContinueMonitoring( TInt aError )
    {    
    return aError == KErrNone;
    }

// ---------------------------------------------------------------------------
// CSIPBearerMonitor::CSIPBearerMonitor
// ---------------------------------------------------------------------------
//
inline CSIPBearerMonitor::CSIPBearerMonitor( TAny* aParams ) :
    iParent( reinterpret_cast< TSIPBearerParams* >( aParams )->iOwner ),
    iIapId( reinterpret_cast< TSIPBearerParams* >( aParams )->iIapId ),
	iError( reinterpret_cast< TSIPBearerParams* >( aParams )->iError ),
	iNetworkInfoObserver( reinterpret_cast< TSIPBearerParams* >
		( aParams )->iNetworkInfoObserver )
	{
	}

#endif // CSIPBEARERMONITOR_INL

// End of File