wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_server_factory.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Static factory class for instantiating a class 
       
    15 *                implementing abs_core_server_c interface
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CORE_SERVER_FACTORY_H
       
    21 #define CORE_SERVER_FACTORY_H
       
    22 
       
    23 #include "abs_core_server.h"
       
    24 #include "abs_core_server_callback.h"
       
    25 #include "abs_core_driverif.h"
       
    26 
       
    27 /**
       
    28  * Factory for instantiating a class implementing abs_core_server_c interface.
       
    29  * @lib wlmserversrv.lib
       
    30  * @since S60 v3.1
       
    31  */
       
    32 class core_server_factory_c
       
    33     {
       
    34 
       
    35 public:
       
    36 
       
    37     /**
       
    38      * Factory method used for creating a class implementing
       
    39      * abs_core_server_c interface.
       
    40      *
       
    41      * @since S60 v3.1
       
    42      * @param callback Reference to the class implementing abs_core_server_callback_c.
       
    43      * @param drivers Reference to the class implementing abs_core_driverif_c.
       
    44      * @param settings Initial settings for the WLAN service.
       
    45      * @param mac_address MAC address of the device.
       
    46      * @param features Bitmask of enabled features.
       
    47      */
       
    48     static abs_core_server_c* instance(
       
    49         abs_core_server_callback_c& callback,
       
    50         abs_core_driverif_c& drivers,
       
    51         core_device_settings_s& settings,
       
    52         core_mac_address_s& mac_address,
       
    53         u32_t features = core_feature_none );
       
    54 
       
    55 private:
       
    56 
       
    57     /**
       
    58      * Private constructor to prevent instantiation.
       
    59      */
       
    60     core_server_factory_c();
       
    61 
       
    62     };
       
    63 
       
    64 #endif // CORE_SERVER_FACTORY_H