wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/inc/core_callback.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:  Class wrapping necessary information for a callback method.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CORE_CALLBACK_H
       
    20 #define CORE_CALLBACK_H
       
    21 
       
    22 /**
       
    23  * Class wrapping necessary information for a callback method.
       
    24  * @lib wlmserversrv.lib
       
    25  * @since S60 v3.1
       
    26  */
       
    27 NONSHARABLE_CLASS(core_callback_c)
       
    28     {
       
    29 public:
       
    30 
       
    31 	inline core_callback_c(void (*function)(void* ptr), void* ptr );
       
    32 
       
    33 	/**
       
    34 	 * A pointer to the callback function.
       
    35 	 */
       
    36 	void (*func_m)(void* ptr);
       
    37 		
       
    38 	/**
       
    39 	 * A pointer that is passed to the callback function when
       
    40 	 * the function is called.
       
    41 	 */
       
    42 	void* ptr_m;
       
    43     };
       
    44 
       
    45 inline core_callback_c::core_callback_c(void (*function)(void* ptr), void* ptr )
       
    46 	: func_m(function), ptr_m(ptr)
       
    47 	{}
       
    48 
       
    49 #endif // CORE_CALLBACK_H