sl@0: /* sl@0: * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #ifndef _A3F_TRACE_HEAP_H_ sl@0: #define _A3F_TRACE_HEAP_H_ sl@0: sl@0: sl@0: /** sl@0: * TraceHeap is a container holding the bitmask that defines active trace groups sl@0: * This class is used to hold the debug mask of the inspected process sl@0: */ sl@0: class TraceHeap sl@0: { sl@0: public: sl@0: IMPORT_C static void CreateL(const TUint aDefaultMask=0); sl@0: IMPORT_C static TUint32 TraceMask(); sl@0: IMPORT_C static void SetTraceMask( const TUint32 aTraceMask ); sl@0: IMPORT_C static TBool IsMaskOn( const TUint32 aMask ); sl@0: IMPORT_C static void SetLevel( const TUint32 aDbgLevel ); sl@0: IMPORT_C static TBool IsBelowLevel( const TUint32 aLevel ); sl@0: IMPORT_C static TUint32 TraceLevel(); sl@0: IMPORT_C static TBool IsApiOnly(); sl@0: IMPORT_C static void SetApiOnly( const TBool aApiOnly); sl@0: sl@0: private: sl@0: static TUint32* iTraceMask; sl@0: static TUint32* iTraceLevel; sl@0: static TBool* iApiOnly; sl@0: static RHeap* iTraceHeap; sl@0: }; sl@0: sl@0: #endif // _A3F_TRACE_HEAP_H_ sl@0: sl@0: // End of File