omasuplasnconverterstubimpl/inc/asnimplementation.h
branchRCL_3
changeset 44 b5894bb67e73
parent 35 37b610eb7fe3
equal deleted inserted replaced
35:37b610eb7fe3 44:b5894bb67e73
     1 /*
       
     2 * Copyright (c) 2009 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: ASN plugin
       
    15 *
       
    16 */
       
    17 
       
    18 // This file defines the API for AsnImplementation.dll
       
    19 
       
    20 #ifndef __ASNIMPLEMENTATION_H__
       
    21 #define __ASNIMPLEMENTATION_H__
       
    22 
       
    23 //  Include Files
       
    24 
       
    25 #include <e32base.h>	// CBase
       
    26 #include <e32std.h>	 // TBuf
       
    27 #include <ecom/implementationproxy.h>
       
    28 
       
    29 //  Constants
       
    30 
       
    31 const TInt KAsnImplementationBufferLength = 15;
       
    32 typedef TBuf<KAsnImplementationBufferLength> TAsnImplementationExampleString;
       
    33 
       
    34 //  Class Definitions
       
    35 
       
    36 class CAsnImplementation : public CBase
       
    37     {
       
    38 public:
       
    39     // new functions
       
    40     IMPORT_C static CAsnImplementation* NewL();
       
    41     IMPORT_C static CAsnImplementation* NewLC();
       
    42     IMPORT_C ~CAsnImplementation();
       
    43 
       
    44 public:
       
    45     // new functions, example API
       
    46     IMPORT_C TVersion Version() const;
       
    47     IMPORT_C void ExampleFuncAddCharL(const TChar& aChar);
       
    48     IMPORT_C void ExampleFuncRemoveLast();
       
    49     IMPORT_C const TPtrC ExampleFuncString() const;
       
    50 
       
    51 private:
       
    52     // new functions
       
    53     CAsnImplementation();
       
    54     void ConstructL();
       
    55 
       
    56 private:
       
    57     // data
       
    58     TAsnImplementationExampleString* iString;
       
    59     };
       
    60 
       
    61 #endif  // __ASNIMPLEMENTATION_H__
       
    62