mulwidgets/muldatamodel/inc/mulcallback.h
branchRCL_3
changeset 26 0e9bb658ef58
parent 0 e83bab7cf002
equal deleted inserted replaced
25:4ea6f81c838a 26:0e9bb658ef58
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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 "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:  Active object for performing Async filtering
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MULCALLBACK_H_
       
    20 #define MULCALLBACK_H_
       
    21 
       
    22 #include <vector>
       
    23 
       
    24 namespace Alf
       
    25 	{
       
    26 	
       
    27 class MulCallback
       
    28 	{
       
    29 public:
       
    30 	
       
    31 	MulCallback()
       
    32 		{
       
    33 		}
       
    34 
       
    35 	MulCallback( void (*aFunction) ( void* aObject, std::vector<int>& aArgument ), void* aObject )
       
    36 		{
       
    37 		mFunction = aFunction;
       
    38 		mObject = aObject;
       
    39 		}
       
    40 	
       
    41 	void Callback(  std::vector<int>& aArgument ) const
       
    42 		{
       
    43 		mFunction( mObject, aArgument );
       
    44 		}
       
    45 	
       
    46 private:
       
    47 	
       
    48 	void (*mFunction) ( void* aObject,  std::vector<int>& aArgument );
       
    49 	
       
    50 	void* mObject;
       
    51 		
       
    52 	};
       
    53 
       
    54 	}//namespace Alf
       
    55 
       
    56 #endif //MULCALLBACK_H_