dbgagents/trkagent/toolsstarter/toolsstarterclient/inc/toolsclient.h
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     1 /*
       
     2 * Copyright (c) 2006 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 // This file defines the API for ToolsClient.dll
       
    19 
       
    20 #ifndef __ToolsCLIENT_H__
       
    21 #define __ToolsCLIENT_H__
       
    22 
       
    23 //  Include Files
       
    24 
       
    25 #include <e32base.h>	// CBase
       
    26 #include <e32std.h>	 // TBuf
       
    27 
       
    28 //  Constants
       
    29 
       
    30 const TInt KToolsClientBufferLength = 15;
       
    31 typedef TBuf<KToolsClientBufferLength> TToolsClientExampleString;
       
    32 
       
    33 //  Class Definitions
       
    34 
       
    35 class CToolsClient : public CBase
       
    36     {
       
    37 public:
       
    38     // new functions
       
    39     IMPORT_C static CToolsClient* NewL();
       
    40     IMPORT_C static CToolsClient* NewLC();
       
    41     IMPORT_C ~CToolsClient();
       
    42 
       
    43 public:
       
    44     // new functions, example API
       
    45     IMPORT_C TVersion Version() const;
       
    46     IMPORT_C void ExampleFuncAddCharL(const TChar& aChar);
       
    47     IMPORT_C void ExampleFuncRemoveLast();
       
    48     IMPORT_C const TPtrC ExampleFuncString() const;
       
    49 
       
    50 private:
       
    51     // new functions
       
    52     CToolsClient();
       
    53     void ConstructL();
       
    54 
       
    55 private:
       
    56     // data
       
    57     TToolsClientExampleString* iString;
       
    58     };
       
    59 
       
    60 #endif  // __ToolsCLIENT_H__
       
    61