sl@0: /* sl@0: * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: sl@0: #ifndef TLOCALE_H sl@0: #define TLOCALE_H sl@0: sl@0: // INCLUDES sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: // CONSTANTS sl@0: //const ?type ?constant_var = ?constant; sl@0: sl@0: // MACROS sl@0: //#define ?macro ?macro_def sl@0: // Logging path sl@0: _LIT( KtlocaleLogPath, "\\logs\\testframework\\tlocale\\" ); sl@0: // Log file sl@0: _LIT( KtlocaleLogFile, "tlocale.txt" ); sl@0: sl@0: // FUNCTION PROTOTYPES sl@0: //?type ?function_name(?arg_list); sl@0: sl@0: // FORWARD DECLARATIONS sl@0: //class ?FORWARD_CLASSNAME; sl@0: class Ctlocale; sl@0: sl@0: // DATA TYPES sl@0: //enum ?declaration sl@0: //typedef ?declaration sl@0: //extern ?data_type; sl@0: sl@0: // CLASS DECLARATION sl@0: sl@0: /** sl@0: * Ctlocale test class for STIF Test Framework TestScripter. sl@0: * ?other_description_lines sl@0: * sl@0: * @lib ?library sl@0: * @since ?Series60_version sl@0: */ sl@0: NONSHARABLE_CLASS(Ctlocale) : public CScriptBase sl@0: { sl@0: public: // Constructors and destructor sl@0: sl@0: /** sl@0: * Two-phased constructor. sl@0: */ sl@0: static Ctlocale* NewL( CTestModuleIf& aTestModuleIf ); sl@0: sl@0: /** sl@0: * Destructor. sl@0: */ sl@0: virtual ~Ctlocale(); sl@0: sl@0: public: // New functions sl@0: sl@0: /** sl@0: * ?member_description. sl@0: * @since ?Series60_version sl@0: * @param ?arg1 ?description sl@0: * @return ?description sl@0: */ sl@0: //?type ?member_function( ?type ?arg1 ); sl@0: sl@0: public: // Functions from base classes sl@0: sl@0: /** sl@0: * From CScriptBase Runs a script line. sl@0: * @since ?Series60_version sl@0: * @param aItem Script line containing method name and parameters sl@0: * @return Symbian OS error code sl@0: */ sl@0: virtual TInt RunMethodL( CStifItemParser& aItem ); sl@0: sl@0: protected: // New functions sl@0: sl@0: /** sl@0: * ?member_description. sl@0: * @since ?Series60_version sl@0: * @param ?arg1 ?description sl@0: * @return ?description sl@0: */ sl@0: //?type ?member_function( ?type ?arg1 ); sl@0: sl@0: protected: // Functions from base classes sl@0: sl@0: /** sl@0: * From ?base_class ?member_description sl@0: */ sl@0: //?type ?member_function(); sl@0: sl@0: private: sl@0: sl@0: /** sl@0: * C++ default constructor. sl@0: */ sl@0: Ctlocale( CTestModuleIf& aTestModuleIf ); sl@0: sl@0: /** sl@0: * By default Symbian 2nd phase constructor is private. sl@0: */ sl@0: void ConstructL(); sl@0: sl@0: // Prohibit copy constructor if not deriving from CBase. sl@0: // ?classname( const ?classname& ); sl@0: // Prohibit assigment operator if not deriving from CBase. sl@0: // ?classname& operator=( const ?classname& ); sl@0: sl@0: /** sl@0: * Frees all resources allocated from test methods. sl@0: * @since ?Series60_version sl@0: */ sl@0: void Delete(); sl@0: sl@0: /** sl@0: * Test methods are listed below. sl@0: */ sl@0: sl@0: /** sl@0: * Example test method. sl@0: * @since ?Series60_version sl@0: * @param aItem Script line containing parameters. sl@0: * @return Symbian OS error code. sl@0: */ sl@0: virtual TInt hasfacet( CStifItemParser& aItem ); sl@0: virtual TInt usefacet( CStifItemParser& aItem ); sl@0: virtual TInt numget( CStifItemParser& aItem ); sl@0: virtual TInt numput( CStifItemParser& aItem ); sl@0: virtual TInt num_punct( CStifItemParser& aItem ); sl@0: virtual TInt numpunctbyname( CStifItemParser& aItem ); sl@0: virtual TInt moneyget( CStifItemParser& aItem ); sl@0: virtual TInt moneyput( CStifItemParser& aItem ); sl@0: virtual TInt money_punct( CStifItemParser& aItem ); sl@0: virtual TInt moneypunctbyname( CStifItemParser& aItem ); sl@0: virtual TInt timeget( CStifItemParser& aItem ); sl@0: virtual TInt timeput( CStifItemParser& aItem ); sl@0: virtual TInt messagesL( CStifItemParser& aItem ); sl@0: virtual TInt messagesbyname( CStifItemParser& aItem ); sl@0: virtual TInt collateL( CStifItemParser& aItem ); sl@0: virtual TInt collatebyname( CStifItemParser& aItem ); sl@0: virtual TInt codecvt1( CStifItemParser& aItem ); sl@0: virtual TInt codecvt2( CStifItemParser& aItem ); sl@0: sl@0: virtual TInt codecvtbyname1( CStifItemParser& aItem ); sl@0: virtual TInt codecvtbyname2( CStifItemParser& aItem ); sl@0: virtual TInt catalog( CStifItemParser& aItem ); sl@0: virtual TInt c_type( CStifItemParser& aItem ); sl@0: sl@0: sl@0: sl@0: public: // Data sl@0: // ?one_line_short_description_of_data sl@0: //?data_declaration; sl@0: sl@0: protected: // Data sl@0: // ?one_line_short_description_of_data sl@0: //?data_declaration; sl@0: sl@0: private: // Data sl@0: sl@0: // ?one_line_short_description_of_data sl@0: //?data_declaration; sl@0: sl@0: // Reserved pointer for future extension sl@0: //TAny* iReserved; sl@0: sl@0: public: // Friend classes sl@0: //?friend_class_declaration; sl@0: protected: // Friend classes sl@0: //?friend_class_declaration; sl@0: private: // Friend classes sl@0: //?friend_class_declaration; sl@0: sl@0: }; sl@0: sl@0: #endif // TLOCALE_H sl@0: sl@0: // End of File