tracesrv/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/plugin/TraceHeaderContribution.java
changeset 56 aa2539c91954
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
       
     1 /*
       
     2 * Copyright (c) 2007 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 * Trace header contribution
       
    17 *
       
    18 */
       
    19 package com.nokia.tracecompiler.plugin;
       
    20 
       
    21 import com.nokia.tracecompiler.model.TraceModelExtension;
       
    22 
       
    23 /**
       
    24  * Interface which can be added to model by plug-in's to contribute data to the
       
    25  * trace header
       
    26  * 
       
    27  */
       
    28 public interface TraceHeaderContribution extends TraceModelExtension {
       
    29 
       
    30 	/**
       
    31 	 * List of possible contributions to the trace header file
       
    32 	 */
       
    33 	public enum TraceHeaderContributionType {
       
    34 
       
    35 		/**
       
    36 		 * #define statements to be added to the header
       
    37 		 */
       
    38 		GLOBAL_DEFINES,
       
    39 
       
    40 		/**
       
    41 		 * #include statements to be added to the header
       
    42 		 */
       
    43 		GLOBAL_INCLUDES,
       
    44 
       
    45 		/**
       
    46 		 * Content for the main header file
       
    47 		 */
       
    48 		MAIN_HEADER_CONTENT
       
    49 
       
    50 	}
       
    51 
       
    52 	/**
       
    53 	 * Gets data to be added to the trace header
       
    54 	 * 
       
    55 	 * @param type
       
    56 	 *            the contribution type
       
    57 	 * @return the data to be added, depends on type
       
    58 	 */
       
    59 	public String[] getContribution(TraceHeaderContributionType type);
       
    60 
       
    61 }