sysanadatacapture/piprofiler/piprofiler/plugins/GeneralsPlugin/inc/GeneralsDriver.h
changeset 1 3ff3fecb12fe
equal deleted inserted replaced
0:f0f2b8682603 1:3ff3fecb12fe
       
     1 /*
       
     2 * Copyright (c) 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 "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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __GENERALSSAMPLER_H__
       
    20 #define __GENERALSSAMPLER_H__
       
    21 
       
    22 /*
       
    23  * The user-interface to the sampling device driver sued by the profiling engine
       
    24  */
       
    25 #include <piprofiler/PluginSampler.h>
       
    26 
       
    27 #ifndef __KERNEL_MODE__
       
    28 #include <utf.h>
       
    29 #endif
       
    30 
       
    31 
       
    32 /**
       
    33  * The user device driver class for controlling the plugin sampler.
       
    34  */
       
    35 
       
    36 class RGeneralsSampler :  public RPluginSampler 
       
    37 {	
       
    38 	public:
       
    39 		#ifndef __KERNEL_MODE__
       
    40 		
       
    41 		/** Open a channel to the sampling device **/
       
    42 		inline TInt Open();
       
    43 		
       
    44 		#endif	// !__KERNEL_MODE__	
       
    45 };
       
    46 	
       
    47 _LIT(KPluginSamplerName,"PIProfilerGeneralsSampler");
       
    48 
       
    49 #ifndef __KERNEL_MODE__
       
    50 
       
    51 inline TInt RGeneralsSampler::Open()
       
    52 {
       
    53 	return DoCreate(KPluginSamplerName,TVersion(1,0,1),KNullUnit,NULL,NULL);
       
    54 }
       
    55 
       
    56 
       
    57 #endif
       
    58 #endif
       
    59