os/ossrv/stdcpp/tsrc/Stdcpp_test/bcdrivers/tlocale/inc/tlocale.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/stdcpp/tsrc/Stdcpp_test/bcdrivers/tlocale/inc/tlocale.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,198 @@
     1.4 +/*
     1.5 +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +
    1.23 +
    1.24 +#ifndef TLOCALE_H
    1.25 +#define TLOCALE_H
    1.26 +
    1.27 +//  INCLUDES
    1.28 +#include <StifLogger.h>
    1.29 +#include <TestScripterInternal.h>
    1.30 +#include <StifTestModule.h>
    1.31 +
    1.32 +
    1.33 +// CONSTANTS
    1.34 +//const ?type ?constant_var = ?constant;
    1.35 +
    1.36 +// MACROS
    1.37 +//#define ?macro ?macro_def
    1.38 +// Logging path
    1.39 +_LIT( KtlocaleLogPath, "\\logs\\testframework\\tlocale\\" ); 
    1.40 +// Log file
    1.41 +_LIT( KtlocaleLogFile, "tlocale.txt" ); 
    1.42 +
    1.43 +// FUNCTION PROTOTYPES
    1.44 +//?type ?function_name(?arg_list);
    1.45 +
    1.46 +// FORWARD DECLARATIONS
    1.47 +//class ?FORWARD_CLASSNAME;
    1.48 +class Ctlocale;
    1.49 +
    1.50 +// DATA TYPES
    1.51 +//enum ?declaration
    1.52 +//typedef ?declaration
    1.53 +//extern ?data_type;
    1.54 +
    1.55 +// CLASS DECLARATION
    1.56 +
    1.57 +/**
    1.58 +*  Ctlocale test class for STIF Test Framework TestScripter.
    1.59 +*  ?other_description_lines
    1.60 +*
    1.61 +*  @lib ?library
    1.62 +*  @since ?Series60_version
    1.63 +*/
    1.64 +NONSHARABLE_CLASS(Ctlocale) : public CScriptBase
    1.65 +    {
    1.66 +    public:  // Constructors and destructor
    1.67 +
    1.68 +        /**
    1.69 +        * Two-phased constructor.
    1.70 +        */
    1.71 +        static Ctlocale* NewL( CTestModuleIf& aTestModuleIf );
    1.72 +
    1.73 +        /**
    1.74 +        * Destructor.
    1.75 +        */
    1.76 +        virtual ~Ctlocale();
    1.77 +
    1.78 +    public: // New functions
    1.79 +
    1.80 +        /**
    1.81 +        * ?member_description.
    1.82 +        * @since ?Series60_version
    1.83 +        * @param ?arg1 ?description
    1.84 +        * @return ?description
    1.85 +        */
    1.86 +        //?type ?member_function( ?type ?arg1 );
    1.87 +
    1.88 +    public: // Functions from base classes
    1.89 +
    1.90 +        /**
    1.91 +        * From CScriptBase Runs a script line.
    1.92 +        * @since ?Series60_version
    1.93 +        * @param aItem Script line containing method name and parameters
    1.94 +        * @return Symbian OS error code
    1.95 +        */
    1.96 +        virtual TInt RunMethodL( CStifItemParser& aItem );
    1.97 +
    1.98 +    protected:  // New functions
    1.99 +
   1.100 +        /**
   1.101 +        * ?member_description.
   1.102 +        * @since ?Series60_version
   1.103 +        * @param ?arg1 ?description
   1.104 +        * @return ?description
   1.105 +        */
   1.106 +        //?type ?member_function( ?type ?arg1 );
   1.107 +
   1.108 +    protected:  // Functions from base classes
   1.109 +
   1.110 +        /**
   1.111 +        * From ?base_class ?member_description
   1.112 +        */
   1.113 +        //?type ?member_function();
   1.114 +
   1.115 +    private:
   1.116 +
   1.117 +        /**
   1.118 +        * C++ default constructor.
   1.119 +        */
   1.120 +        Ctlocale( CTestModuleIf& aTestModuleIf );
   1.121 +
   1.122 +        /**
   1.123 +        * By default Symbian 2nd phase constructor is private.
   1.124 +        */
   1.125 +        void ConstructL();
   1.126 +
   1.127 +        // Prohibit copy constructor if not deriving from CBase.
   1.128 +        // ?classname( const ?classname& );
   1.129 +        // Prohibit assigment operator if not deriving from CBase.
   1.130 +        // ?classname& operator=( const ?classname& );
   1.131 +
   1.132 +        /**
   1.133 +        * Frees all resources allocated from test methods.
   1.134 +        * @since ?Series60_version
   1.135 +        */
   1.136 +        void Delete();
   1.137 +
   1.138 +        /**
   1.139 +        * Test methods are listed below. 
   1.140 +        */
   1.141 +
   1.142 +        /**
   1.143 +        * Example test method.
   1.144 +        * @since ?Series60_version
   1.145 +        * @param aItem Script line containing parameters.
   1.146 +        * @return Symbian OS error code.
   1.147 +        */
   1.148 +       virtual TInt hasfacet( CStifItemParser& aItem );
   1.149 +       virtual TInt usefacet( CStifItemParser& aItem );
   1.150 + virtual TInt numget( CStifItemParser& aItem );
   1.151 +       virtual TInt numput( CStifItemParser& aItem );
   1.152 +  virtual TInt num_punct( CStifItemParser& aItem );
   1.153 +       virtual TInt numpunctbyname( CStifItemParser& aItem );
   1.154 +       virtual TInt moneyget( CStifItemParser& aItem );
   1.155 +       virtual TInt moneyput( CStifItemParser& aItem );
   1.156 +  virtual TInt money_punct( CStifItemParser& aItem );
   1.157 +       virtual TInt moneypunctbyname( CStifItemParser& aItem );
   1.158 +        virtual TInt timeget( CStifItemParser& aItem );
   1.159 +       virtual TInt timeput( CStifItemParser& aItem );
   1.160 +       virtual TInt messagesL( CStifItemParser& aItem );
   1.161 +       virtual TInt messagesbyname( CStifItemParser& aItem );
   1.162 +              virtual TInt collateL( CStifItemParser& aItem );
   1.163 +                            virtual TInt collatebyname( CStifItemParser& aItem );
   1.164 +                            virtual TInt codecvt1( CStifItemParser& aItem );
   1.165 +                            virtual TInt codecvt2( CStifItemParser& aItem );
   1.166 +
   1.167 +                            virtual TInt codecvtbyname1( CStifItemParser& aItem );
   1.168 +                    virtual TInt codecvtbyname2( CStifItemParser& aItem );
   1.169 +                                        virtual TInt catalog( CStifItemParser& aItem );
   1.170 +                                        virtual TInt c_type( CStifItemParser& aItem );
   1.171 +
   1.172 +
   1.173 +
   1.174 +    public:     // Data
   1.175 +        // ?one_line_short_description_of_data
   1.176 +        //?data_declaration;
   1.177 +
   1.178 +    protected:  // Data
   1.179 +        // ?one_line_short_description_of_data
   1.180 +        //?data_declaration;
   1.181 +
   1.182 +    private:    // Data
   1.183 +        
   1.184 +        // ?one_line_short_description_of_data
   1.185 +        //?data_declaration;
   1.186 +
   1.187 +        // Reserved pointer for future extension
   1.188 +        //TAny* iReserved;
   1.189 +
   1.190 +    public:     // Friend classes
   1.191 +        //?friend_class_declaration;
   1.192 +    protected:  // Friend classes
   1.193 +        //?friend_class_declaration;
   1.194 +    private:    // Friend classes
   1.195 +        //?friend_class_declaration;
   1.196 +
   1.197 +    };
   1.198 +
   1.199 +#endif      // TLOCALE_H
   1.200 +
   1.201 +// End of File