wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_timer_factory.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:  Factory class for timers implementing abs_core_timer_c interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CORE_TIMER_FACTORY_H
       
    20 #define CORE_TIMER_FACTORY_H
       
    21 
       
    22 #include "am_platform_libraries.h"
       
    23 
       
    24 class abs_core_timer_c;
       
    25 class abs_core_timer_callback_c;
       
    26 class core_callback_c;
       
    27 
       
    28 /**
       
    29 * This class implements a timer factory that is used to instantiate
       
    30 * timers implementing abs_core_timer_c interface.
       
    31 * @see abs_core_timer_c
       
    32 */
       
    33 NONSHARABLE_CLASS(core_timer_factory_c)
       
    34     {
       
    35     public:
       
    36         
       
    37         /**
       
    38         * Create a new timer.       
       
    39         * @param callback Handle to callback interface
       
    40         * @return Pointer to the created timer.
       
    41         */
       
    42         static abs_core_timer_c* create_timer(
       
    43             core_callback_c* callback );
       
    44 
       
    45         /**
       
    46         * Destroy an old timer.
       
    47         * @param timer Timer to be destroyed.
       
    48         */
       
    49         static void destroy_timer(
       
    50             abs_core_timer_c* timer );
       
    51 
       
    52     private: // private constructor
       
    53     
       
    54         core_timer_factory_c();
       
    55     };
       
    56 
       
    57 #endif // CORE_TIMER_FACTORY_H