speechsrv_plat/asrs_hw_device_api/inc/asrshwdevice.h
branchRCL_3
changeset 18 cad71a31b7fc
parent 17 8ce15fced3a6
child 19 e36f3802f733
equal deleted inserted replaced
17:8ce15fced3a6 18:cad71a31b7fc
     1 /*
       
     2 * Copyright (c) 2004 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:  TTP hardware device
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef ASRHWDEVICE_H
       
    21 #define ASRHWDEVICE_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25  
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Base class for all hw devices
       
    30 *   
       
    31 *
       
    32 *  @lib asrsadaptationhwdevice.lib
       
    33 *  @since 2.8
       
    34 */
       
    35 class CASRSHwDevice : public CBase
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38         
       
    39         /**
       
    40         * Two-phased constructor.
       
    41         */
       
    42         IMPORT_C static CASRSHwDevice* NewL();
       
    43         
       
    44         /**
       
    45         * Destructor.
       
    46         */
       
    47         IMPORT_C virtual ~CASRSHwDevice();
       
    48 
       
    49     public: // New functions
       
    50         
       
    51         /**
       
    52         * Use to initilize HW device
       
    53         * @since 2.8
       
    54         * @param none
       
    55         * @return none
       
    56         */
       
    57         IMPORT_C virtual void InitializeL();
       
    58 
       
    59         /**
       
    60         * Use to clear HW device
       
    61         * @since 2.8
       
    62         * @param none
       
    63         * @return none
       
    64         */
       
    65         IMPORT_C virtual void Clear();
       
    66 
       
    67 		/**
       
    68         * Use to get custom interface
       
    69         * @since 2.8
       
    70         * @param aInterfaceId Identifier of the intercace implementation
       
    71         * @return Pointer to the interface implementation or NULL.
       
    72         */
       
    73         IMPORT_C virtual TAny* CustomInterface( TUid aInterfaceId );
       
    74 
       
    75     public: // Functions from base classes
       
    76 
       
    77         /**
       
    78         * From ?base_class ?member_description.
       
    79         * @since ?Series60_version
       
    80         * @param ?arg1 ?description
       
    81         * @return ?description
       
    82         */
       
    83         //?type ?member_function( ?type ?arg1 );
       
    84         
       
    85     protected:  // New functions
       
    86         
       
    87         /**
       
    88         * ?member_description.
       
    89         * @since ?Series60_version
       
    90         * @param ?arg1 ?description
       
    91         * @return ?description
       
    92         */
       
    93         //?type ?member_function( ?type ?arg1 );
       
    94 
       
    95     protected:  // Functions from base classes
       
    96         
       
    97         /**
       
    98         * From ?base_class ?member_description
       
    99         */
       
   100         //?type ?member_function();
       
   101 
       
   102 
       
   103 
       
   104         /**
       
   105         * C++ default constructor.
       
   106         */
       
   107         CASRSHwDevice();
       
   108 
       
   109     private:
       
   110         /**
       
   111         * By default Symbian 2nd phase constructor is private.
       
   112         */
       
   113         void ConstructL();
       
   114 
       
   115         // Prohibit copy constructor if not deriving from CBase.
       
   116         // ?classname( const ?classname& );
       
   117         // Prohibit assigment operator if not deriving from CBase.
       
   118         // ?classname& operator=( const ?classname& );
       
   119 
       
   120     public:     // Data
       
   121         // ?one_line_short_description_of_data
       
   122         //?data_declaration;
       
   123     
       
   124     protected:  // Data
       
   125         // ?one_line_short_description_of_data
       
   126         //?data_declaration;
       
   127 
       
   128     private:    // Data
       
   129         // ?one_line_short_description_of_data
       
   130         //?data_declaration;
       
   131          
       
   132         // Reserved pointer for future extension
       
   133         //TAny* iReserved;
       
   134 
       
   135     public:     // Friend classes
       
   136         //?friend_class_declaration;
       
   137     protected:  // Friend classes
       
   138         //?friend_class_declaration;
       
   139     private:    // Friend classes
       
   140         //?friend_class_declaration;
       
   141 
       
   142     };
       
   143 
       
   144 #endif      // ?INCLUDE_H   
       
   145             
       
   146 // End of File