wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/inc/wlantimerserviceinterface.h
changeset 13 ab7247ff6ef9
equal deleted inserted replaced
0:c40eb8fe8501 13:ab7247ff6ef9
       
     1 /*
       
     2 * Copyright (c) 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 "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:  This abstract class defines WLAN scan provider interface.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 1 %
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef WLANTIMERSERVICEINTERFACE_H
       
    24 #define WLANTIMERSERVICEINTERFACE_H
       
    25 
       
    26 #include <e32def.h>
       
    27 
       
    28 
       
    29 
       
    30 /**
       
    31  * @brief Interface definition for WLAN Timer service callback.
       
    32  *
       
    33  * @since S60 v5.2
       
    34  */
       
    35 class MWlanTimerServiceCallback
       
    36     {
       
    37     public:
       
    38     
       
    39         /**
       
    40          * Timeout has occurred.
       
    41          */
       
    42         virtual void OnTimeout() = 0;
       
    43 
       
    44     };
       
    45 
       
    46 class MWlanTimerServices
       
    47     {
       
    48     
       
    49 public:
       
    50     /**
       
    51      * Start the timer
       
    52      *
       
    53      * @since S60 v5.2
       
    54      * @param aRequestId reference to request id
       
    55      * @param aAt reference to time when timeout should occur
       
    56      * @param aCb reference to callback object
       
    57      * @return error code
       
    58      */
       
    59     virtual TInt StartTimer( TUint& aRequestId, TTime& aAt, MWlanTimerServiceCallback& aCb ) = 0;
       
    60 
       
    61     /**
       
    62      * Stop the timer
       
    63      *
       
    64      * @since S60 v5.2
       
    65      * @param aRequestId Id of timer to stop
       
    66      */
       
    67     virtual void StopTimer( const TUint& aRequestId ) = 0;
       
    68     
       
    69     /**
       
    70      * Handles timer timeout.
       
    71      *
       
    72      * @since S60 v5.2
       
    73      */
       
    74     virtual void HandleTimeout() = 0;
       
    75 
       
    76     };
       
    77 
       
    78 #endif // WLANTIMERSERVICEINTERFACE_H