wlan_bearer/wlanldd/wlan_common/umac_common/inc/umacscanfsmcntx.inl
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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 "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:   Implementation of WlanScanFsmCntx inline 
       
    15 *                methods.
       
    16 *
       
    17 */
       
    18 
       
    19 /*
       
    20 * %version: 7 %
       
    21 */
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // 
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 inline WlanScanFsmCntx::WlanScanFsmCntx( MWlanScanFsmCb& aCb ) : 
       
    28     iCb( aCb ),
       
    29     // to keep static code analysers happy. Actual initialization below
       
    30     iCurrentState( NULL )
       
    31     {
       
    32     iCurrentState = &iWlanScanModeStopped;
       
    33     }
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // 
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 inline TWlanScanFsm& WlanScanFsmCntx::Current()
       
    40     {
       
    41     return *iCurrentState;
       
    42     }
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // 
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 inline void WlanScanFsmCntx::Current( 
       
    49     TWlanScanFsm& aNewCurrent )
       
    50     {
       
    51     iCurrentState = &aNewCurrent;
       
    52     }
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // 
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 inline MWlanScanFsmCb& WlanScanFsmCntx::Cb()
       
    59     {
       
    60     return iCb;
       
    61     }
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // 
       
    65 // -----------------------------------------------------------------------------
       
    66 //
       
    67 inline TWlanScanFsm& WlanScanFsmCntx::ScanModeRunning()
       
    68     {
       
    69     return iWlanScanModeRunning;
       
    70     }
       
    71 
       
    72 // -----------------------------------------------------------------------------
       
    73 // 
       
    74 // -----------------------------------------------------------------------------
       
    75 //
       
    76 inline TWlanScanFsm& WlanScanFsmCntx::ScanModeStopped()
       
    77     {
       
    78     return iWlanScanModeStopped;
       
    79     }
       
    80 
       
    81 // -----------------------------------------------------------------------------
       
    82 // 
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 inline TWlanScanFsm& WlanScanFsmCntx::StartScanningMode()
       
    86     {
       
    87     return iWlanStartScanningMode;
       
    88     }
       
    89 
       
    90 // -----------------------------------------------------------------------------
       
    91 // 
       
    92 // -----------------------------------------------------------------------------
       
    93 //
       
    94 inline TWlanScanFsm& WlanScanFsmCntx::StopScanningMode()
       
    95     {
       
    96     return iWlanStopScanningMode;
       
    97     }