tracefw/tracecompiler/test/TracesInHeadersApps/multmmp_separate_source/dll/inc/HelloTraceInterface.h
changeset 56 aa2539c91954
parent 54 a151135b0cf9
child 60 e54443a6878c
child 62 1c2bb2fc7c87
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
     1 /*
       
     2 * Copyright (c) 2010 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 __HELLOTRACEINTERFACE_H__
       
    20 #define __HELLOTRACEINTERFACE_H__
       
    21 
       
    22 #include <e32base.h>	// CBase
       
    23 #include <e32std.h>	 // TBuf
       
    24 
       
    25 const TInt KHelloTraceDllBufferLength = 10;
       
    26 typedef TBuf<KHelloTraceDllBufferLength> THelloTraceDllExampleString;
       
    27 
       
    28 class CHelloTraceInterface : public CBase
       
    29     {
       
    30 public:
       
    31     IMPORT_C static CHelloTraceInterface* NewL();
       
    32     IMPORT_C static CHelloTraceInterface* NewLC();
       
    33     IMPORT_C ~CHelloTraceInterface();
       
    34 
       
    35 public:
       
    36     IMPORT_C static TVersion Version();
       
    37     IMPORT_C const TPtrC String() const;
       
    38     IMPORT_C void AddCharL(const TChar& aChar);
       
    39     IMPORT_C void RemoveLast();
       
    40     IMPORT_C void ResetString();
       
    41     
       
    42     IMPORT_C static TVersion VersionDup();
       
    43     IMPORT_C const TPtrC StringDup() const;
       
    44     IMPORT_C void AddCharDupL(const TChar& aChar);
       
    45     IMPORT_C void RemoveLastDup();
       
    46     IMPORT_C void ResetStringDup();
       
    47 
       
    48     IMPORT_C static TVersion VersionDup2();
       
    49     IMPORT_C const TPtrC StringDup2() const;
       
    50     IMPORT_C void AddCharDup2L(const TChar& aChar);
       
    51     IMPORT_C void RemoveLastDup2();
       
    52     IMPORT_C void ResetStringDup2();
       
    53 private:
       
    54     CHelloTraceInterface();
       
    55     void ConstructL();
       
    56 
       
    57 private:
       
    58     // data
       
    59     THelloTraceDllExampleString* iString;
       
    60     };
       
    61 
       
    62 #endif  // __HELLOTRACEINTERFACE_H__
       
    63