wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/inc/wlmserver.inl
changeset 30 7d966ab5304a
parent 0 c40eb8fe8501
equal deleted inserted replaced
25:a0fdcd0e4c56 30:7d966ab5304a
     1 /*
     1 /*
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    13 *
    13 *
    14 * Description:  Inline methods of CWlmServer
    14 * Description:  Inline methods of CWlmServer
    15 *
    15 *
    16 */
    16 */
    17 
    17 
       
    18 /*
       
    19 * %version: 18 %
       
    20 */
    18 
    21 
    19 #include "am_debug.h"
    22 #include "am_debug.h"
    20 
    23 
    21 // ---------------------------------------------------------
    24 // ---------------------------------------------------------
    22 // CWLMServer::GetScanType
    25 // CWLMServer::GetScanType
   127 
   130 
   128 // ---------------------------------------------------------
   131 // ---------------------------------------------------------
   129 // CWlmServer::CalculateScanStartTime
   132 // CWlmServer::CalculateScanStartTime
   130 // ---------------------------------------------------------
   133 // ---------------------------------------------------------
   131 //
   134 //
   132 inline TTime CWlmServer::CalculateScanStartTime(
   135 inline TUint CWlmServer::CalculateScanStartTime(
   133     const TInt aDelay ) const
   136     const TInt aDelay ) const
   134     {
   137     {
   135     TTime scanTime;
   138     TUint ticks(
   136     scanTime.UniversalTime();
   139         aDelay * KWlanSecsToMicrosecsMultiplier / iSystemTickPeriod );
   137     TTimeIntervalSeconds delay( aDelay );
   140 
   138     scanTime += delay;
   141     return User::TickCount() + ticks; 
   139 
       
   140     return scanTime;
       
   141     }
   142     }
   142 
   143 
   143 // ---------------------------------------------------------
   144 // ---------------------------------------------------------
   144 // CWlmServer::FindRequestIndex
   145 // CWlmServer::FindRequestIndex
   145 // ---------------------------------------------------------
   146 // ---------------------------------------------------------