serviceproviders/sapi_messaging/tsrc/testing/tmessagingtest/get_message_async/inc/get_message_async.h
changeset 22 fc9cf246af83
equal deleted inserted replaced
19:989d2f495d90 22:fc9cf246af83
       
     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 the License "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 #ifndef GET_MESSAGE_ASYNC_H
       
    19 #define GET_MESSAGE_ASYNC_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <StifLogger.h>
       
    23 #include <TestScripterInternal.h>
       
    24 #include <StifTestModule.h>
       
    25 #include <TestclassAssert.h>
       
    26 
       
    27 // CONSTANTS
       
    28 //const ?type ?constant_var = ?constant;
       
    29 
       
    30 // MACROS
       
    31 //#define ?macro ?macro_def
       
    32 #define TEST_CLASS_VERSION_MAJOR 0
       
    33 #define TEST_CLASS_VERSION_MINOR 0
       
    34 #define TEST_CLASS_VERSION_BUILD 0
       
    35 
       
    36 // Logging path
       
    37 _LIT( Kget_message_asyncLogPath, "\\logs\\testframework\\get_message_async\\" ); 
       
    38 // Log file
       
    39 _LIT( Kget_message_asyncLogFile, "get_message_async.txt" ); 
       
    40 _LIT( Kget_message_asyncLogFileWithTitle, "get_message_async_[%S].txt" );
       
    41 
       
    42 // FUNCTION PROTOTYPES
       
    43 //?type ?function_name(?arg_list);
       
    44 
       
    45 // FORWARD DECLARATIONS
       
    46 //class ?FORWARD_CLASSNAME;
       
    47 class Cget_message_async;
       
    48 
       
    49 // DATA TYPES
       
    50 //enum ?declaration
       
    51 //typedef ?declaration
       
    52 //extern ?data_type;
       
    53 
       
    54 // CLASS DECLARATION
       
    55 
       
    56 /**
       
    57 *  Cget_message_async test class for STIF Test Framework TestScripter.
       
    58 *  ?other_description_lines
       
    59 *
       
    60 *  @lib ?library
       
    61 *  @since ?Series60_version
       
    62 */
       
    63 NONSHARABLE_CLASS(Cget_message_async) : public CScriptBase
       
    64     {
       
    65     public:  // Constructors and destructor
       
    66 
       
    67         /**
       
    68         * Two-phased constructor.
       
    69         */
       
    70         static Cget_message_async* NewL( CTestModuleIf& aTestModuleIf );
       
    71 
       
    72         /**
       
    73         * Destructor.
       
    74         */
       
    75         virtual ~Cget_message_async();
       
    76 
       
    77     public: // New functions
       
    78 
       
    79         /**
       
    80         * ?member_description.
       
    81         * @since ?Series60_version
       
    82         * @param ?arg1 ?description
       
    83         * @return ?description
       
    84         */
       
    85         //?type ?member_function( ?type ?arg1 );
       
    86 
       
    87     public: // Functions from base classes
       
    88 
       
    89         /**
       
    90         * From CScriptBase Runs a script line.
       
    91         * @since ?Series60_version
       
    92         * @param aItem Script line containing method name and parameters
       
    93         * @return Symbian OS error code
       
    94         */
       
    95         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    96 
       
    97     protected:  // New functions
       
    98 
       
    99         /**
       
   100         * ?member_description.
       
   101         * @since ?Series60_version
       
   102         * @param ?arg1 ?description
       
   103         * @return ?description
       
   104         */
       
   105         //?type ?member_function( ?type ?arg1 );
       
   106 
       
   107     protected:  // Functions from base classes
       
   108 
       
   109         /**
       
   110         * From ?base_class ?member_description
       
   111         */
       
   112         //?type ?member_function();
       
   113 
       
   114     private:
       
   115 
       
   116         /**
       
   117         * C++ default constructor.
       
   118         */
       
   119         Cget_message_async( CTestModuleIf& aTestModuleIf );
       
   120 
       
   121         /**
       
   122         * By default Symbian 2nd phase constructor is private.
       
   123         */
       
   124         void ConstructL();
       
   125 
       
   126         // Prohibit copy constructor if not deriving from CBase.
       
   127         // ?classname( const ?classname& );
       
   128         // Prohibit assigment operator if not deriving from CBase.
       
   129         // ?classname& operator=( const ?classname& );
       
   130 
       
   131         /**
       
   132         * Frees all resources allocated from test methods.
       
   133         * @since ?Series60_version
       
   134         */
       
   135         void Delete();
       
   136 
       
   137         /**
       
   138         * Test methods are listed below. 
       
   139         */
       
   140 
       
   141         /**
       
   142         * Example test method.
       
   143         * @since ?Series60_version
       
   144         * @param aItem Script line containing parameters.
       
   145         * @return Symbian OS error code.
       
   146         */
       
   147         virtual TInt ExampleL( CStifItemParser& aItem );
       
   148         virtual TInt Test1L( CStifItemParser& aItem );
       
   149         
       
   150         TInt Cget_message_async::messageid_func(CStifItemParser& aItem,TInt& id);
       
   151         TInt Cget_message_async::fromarray_func(CStifItemParser& aItem,TPtrC& fromarray);
       
   152         TInt Cget_message_async::subject_func(CStifItemParser& aItem,TPtrC& subj);
       
   153         TInt Cget_message_async::sort_func(CStifItemParser& aItem,TInt& sorttype);
       
   154         TInt Cget_message_async::mtm_func(CStifItemParser& aItem,TPtrC& mtmtype);
       
   155         TInt Cget_message_async::date_func(CStifItemParser& aItem,TInt& year,TInt& month,TInt& day,TInt& hour,TInt& min,TInt& sec,TInt& microsec);                  
       
   156         TInt Cget_message_async::getsub_func(CStifItemParser& aItem,TPtrC& sub);
       
   157         TInt Cget_message_async::flag_func(CStifItemParser& aItem,TInt& flag); 
       
   158         TInt Cget_message_async::posneg_func(CStifItemParser& aItem,TInt& posneg);
       
   159         /**
       
   160          * Method used to log version of test class
       
   161          */
       
   162         void SendTestClassVersion();
       
   163 
       
   164         //ADD NEW METHOD DEC HERE
       
   165         //[TestMethods] - Do not remove
       
   166 
       
   167     public:     // Data
       
   168         // ?one_line_short_description_of_data
       
   169         //?data_declaration;
       
   170 
       
   171     protected:  // Data
       
   172         // ?one_line_short_description_of_data
       
   173         //?data_declaration;
       
   174 
       
   175     private:    // Data
       
   176         
       
   177         // ?one_line_short_description_of_data
       
   178         //?data_declaration;
       
   179 
       
   180         // Reserved pointer for future extension
       
   181         //TAny* iReserved;
       
   182 
       
   183     public:     // Friend classes
       
   184         //?friend_class_declaration;
       
   185     protected:  // Friend classes
       
   186         //?friend_class_declaration;
       
   187     private:    // Friend classes
       
   188         //?friend_class_declaration;
       
   189 
       
   190     };
       
   191 
       
   192 #endif      // GET_MESSAGE_ASYNC_H
       
   193 
       
   194 // End of File