wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/abs_core_timer.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2002-2006 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:  Abstract interface for a generic timer class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ABS_CORE_TIMER_H
       
    20 #define ABS_CORE_TIMER_H
       
    21 
       
    22 #include "am_platform_libraries.h"
       
    23 #include "core_types.h"
       
    24 
       
    25 /**
       
    26 * Abstract interface class for a generic timer.
       
    27 *
       
    28 * Timers implementing this interface are created using
       
    29 * the timer factory.
       
    30 * @see core_timer_factory_c::create_timer
       
    31 */
       
    32 class abs_core_timer_c
       
    33     {
       
    34 public: // New functions
       
    35 
       
    36     /**
       
    37      * Destructor.
       
    38      */
       
    39     virtual ~abs_core_timer_c() {};
       
    40     
       
    41     /**
       
    42      * Start the timer.
       
    43      * @param delay Expiration time in micro seconds.   
       
    44      */
       
    45     virtual void start(
       
    46         u32_t delay ) = 0;
       
    47 
       
    48     /**
       
    49      * Stop the timer.    
       
    50      */
       
    51     virtual void stop() = 0;
       
    52 
       
    53     /**
       
    54      * Check whether the timer is active.
       
    55      * @return Whether the timer is active.
       
    56      */
       
    57     virtual bool_t is_active() const = 0;
       
    58     };
       
    59 
       
    60 #endif // ABS_CORE_TIMER_H