tracesrv/tracecore/btrace_handler/inc/TraceCoreTraceActivationIf.h
changeset 56 aa2539c91954
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
       
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Trace Core
       
    15 //
       
    16 
       
    17 #ifndef DTRACECORETRACEACTIVATIONIF_H_
       
    18 #define DTRACECORETRACEACTIVATIONIF_H_
       
    19 
       
    20 #include <kernel/kernel.h>
       
    21 
       
    22 /**
       
    23  * Interface to activate and deactivate trace groups
       
    24  */
       
    25 class DTraceActivationIf : public DBase
       
    26     {
       
    27 public:
       
    28 
       
    29     /**
       
    30      * Activate trace group
       
    31      *
       
    32      * @param aComponentId The component ID
       
    33      * @param aGroupId The group ID
       
    34      */
       
    35 	IMPORT_C static void ActivateTrace( TUint32 aComponentId, TUint32 aGroupId );
       
    36 	
       
    37     /**
       
    38      * Deactivate trace group
       
    39      *
       
    40      * @param aComponentId The component ID
       
    41      * @param aGroupId The group ID
       
    42      */    
       
    43 	IMPORT_C static void DeactivateTrace( TUint32 aComponentId, TUint32 aGroupId );
       
    44 	
       
    45 	/**
       
    46 	 * Check if a Trace is activated for the supplied component and group id
       
    47 	 *
       
    48 	 * @param aComponentId The component ID
       
    49 	 * @param aGroupId The group ID
       
    50 	 * @return returns ETrue if trace is activated otherwise EFalse
       
    51 	 */    
       
    52 	IMPORT_C static TBool IsTraceActivated(TUint32 aComponentId, TUint32 aGroupId);
       
    53 
       
    54     /**
       
    55      * Reactivate all currently activated traces
       
    56      *
       
    57      * @return KErrNone if refresh successful
       
    58      */
       
    59     IMPORT_C static TInt RefreshActivations();
       
    60 
       
    61 private:
       
    62 
       
    63     /**
       
    64      * Constructor
       
    65      */
       
    66     DTraceActivationIf();
       
    67     
       
    68     /**
       
    69      * Destructor
       
    70      */
       
    71     ~DTraceActivationIf();    
       
    72     };
       
    73 
       
    74 #endif /*DTRACECORETRACEACTIVATIONIF_H_*/