tracesrv/tracecompiler/test/TracesInHeadersApps/multmmp_comm_source_tracesplus/dll/inc/HelloTraceInterface.h
author hgs
Fri, 08 Oct 2010 14:56:39 +0300
changeset 56 aa2539c91954
parent 41 tracefw/tracecompiler/test/TracesInHeadersApps/singlemmp_samenames_tracesplus/dll/inc/HelloTraceInterface.h@838cdffd57ce
permissions -rw-r--r--
201041

/*
* Copyright (c) 2010 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 __HELLOTRACEINTERFACE_H__
#define __HELLOTRACEINTERFACE_H__

#include <e32base.h>	// CBase
#include <e32std.h>	 // TBuf

const TInt KHelloTraceDllBufferLength = 10;
typedef TBuf<KHelloTraceDllBufferLength> THelloTraceDllExampleString;

class CHelloTraceInterface : public CBase
    {
public:
    IMPORT_C static CHelloTraceInterface* NewL();
    IMPORT_C static CHelloTraceInterface* NewLC();
    IMPORT_C ~CHelloTraceInterface();

public:
    IMPORT_C static TVersion Version();
    IMPORT_C const TPtrC String() const;
    IMPORT_C void AddCharL(const TChar& aChar);
    IMPORT_C void RemoveLast();
    IMPORT_C void ResetString();
    
    IMPORT_C static TVersion VersionDup();
    IMPORT_C const TPtrC StringDup() const;
    IMPORT_C void AddCharDupL(const TChar& aChar);
    IMPORT_C void RemoveLastDup();
    IMPORT_C void ResetStringDup();

    IMPORT_C static TVersion VersionDup2();
    IMPORT_C const TPtrC StringDup2() const;
    IMPORT_C void AddCharDup2L(const TChar& aChar);
    IMPORT_C void RemoveLastDup2();
    IMPORT_C void ResetStringDup2();
private:
    CHelloTraceInterface();
    void ConstructL();

private:
    // data
    THelloTraceDllExampleString* iString;
    };

#endif  // __HELLOTRACEINTERFACE_H__