diff -r f0f2b8682603 -r 3ff3fecb12fe sysanadatacapture/piprofiler/piprofiler/plugins/GeneralsPlugin/inc/GeneralsDriver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysanadatacapture/piprofiler/piprofiler/plugins/GeneralsPlugin/inc/GeneralsDriver.h Thu Feb 11 15:52:57 2010 +0200 @@ -0,0 +1,59 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#ifndef __GENERALSSAMPLER_H__ +#define __GENERALSSAMPLER_H__ + +/* + * The user-interface to the sampling device driver sued by the profiling engine + */ +#include + +#ifndef __KERNEL_MODE__ +#include +#endif + + +/** + * The user device driver class for controlling the plugin sampler. + */ + +class RGeneralsSampler : public RPluginSampler +{ + public: + #ifndef __KERNEL_MODE__ + + /** Open a channel to the sampling device **/ + inline TInt Open(); + + #endif // !__KERNEL_MODE__ +}; + +_LIT(KPluginSamplerName,"PIProfilerGeneralsSampler"); + +#ifndef __KERNEL_MODE__ + +inline TInt RGeneralsSampler::Open() +{ + return DoCreate(KPluginSamplerName,TVersion(1,0,1),KNullUnit,NULL,NULL); +} + + +#endif +#endif +