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
     1 /*
     2 * Copyright (c) 2005-2009 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 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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 * Name          : sipbearermonitor.inl
    16 * Part of       : SIP NetworkMonitor
    17 * Version       : SIP/4.0 
    18 *
    19 */
    20 
    21 
    22 
    23 #ifndef CSIPBEARERMONITOR_INL
    24 #define CSIPBEARERMONITOR_INL
    25 
    26 
    27 // ---------------------------------------------------------------------------
    28 // TSIPBearerParams::TSIPBearerParams
    29 // ---------------------------------------------------------------------------
    30 //
    31 inline TSIPBearerParams::TSIPBearerParams( 
    32     MSIPBearerOwner& aOwner,
    33     TInt aIapId,
    34     TInt aError,
    35     MSIPNetworkInfoObserver& aNetworkInfoObserver ) :
    36     iOwner( aOwner ),
    37     iIapId( aIapId ),
    38     iError( aError ),
    39     iNetworkInfoObserver( aNetworkInfoObserver )
    40     {
    41     }
    42 
    43 // ---------------------------------------------------------------------------
    44 // CSIPBearerMonitor::~CSIPBearerMonitor
    45 // ---------------------------------------------------------------------------
    46 //
    47 inline CSIPBearerMonitor::~CSIPBearerMonitor()
    48     {
    49 	REComSession::DestroyedImplementation( iInstanceKey );
    50 	}
    51 
    52 // ---------------------------------------------------------------------------
    53 // CSIPBearerMonitor::State
    54 // ---------------------------------------------------------------------------
    55 //
    56 inline MSIPNetworkObserver::TNetworkState CSIPBearerMonitor::State() const
    57     {
    58     return iState;
    59     }
    60 
    61 // ---------------------------------------------------------------------------
    62 // CSIPBearerMonitor::RefreshL
    63 // ---------------------------------------------------------------------------
    64 //			
    65 inline void CSIPBearerMonitor::RefreshL( TInt /*aError*/ )
    66     {
    67 	}
    68 
    69 // ---------------------------------------------------------------------------
    70 // CSIPBearerMonitor::ContinueMonitoring
    71 // By default, all other error codes than KErrNone lead to negative result
    72 // ---------------------------------------------------------------------------
    73 //	
    74 inline TBool CSIPBearerMonitor::ContinueMonitoring( TInt aError )
    75     {    
    76     return aError == KErrNone;
    77     }
    78 
    79 // ---------------------------------------------------------------------------
    80 // CSIPBearerMonitor::CSIPBearerMonitor
    81 // ---------------------------------------------------------------------------
    82 //
    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 )
    89 	{
    90 	}
    91 
    92 #endif // CSIPBEARERMONITOR_INL
    93 
    94 // End of File
    95