loc_pub/landmarks_ui_selector_api/tsrc/inc/testlmuiselector.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2007 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:    LandmarksUi Content File -  LandmarkUi selector Test class for STIF Test Framework TestScripter
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef CTESTLMUISELECTOR_H
       
    26 #define CTESTLMUISELECTOR_H
       
    27 
       
    28 //  INCLUDES
       
    29 #include <StifLogger.h>
       
    30 #include <TestScripterInternal.h>
       
    31 #include <StifTestModule.h>
       
    32 #include <clmklandmarkselectordlg.h>
       
    33 #include <clmkcategoryselectordlg.h>
       
    34 #include <tlmkitemiddbcombiinfo.h>
       
    35 
       
    36 #include "testLmkEngine.h"
       
    37 
       
    38 
       
    39 // CONSTANTS
       
    40 _LIT( KUserDatabaseUri, "file://c:StifTestDbLoc.ldb" );
       
    41 
       
    42 //const ?type ?constant_var = ?constant;
       
    43 
       
    44 // MACROS
       
    45 //#define ?macro ?macro_def
       
    46 // Logging path
       
    47 _LIT( KTestLmUiSelectorLogPath, "\\logs\\testframework\\testlmuiselector\\" );
       
    48 // Log file
       
    49 _LIT( KTestLmUiSelectorLogFile, "testlmuiselector.txt" );
       
    50 
       
    51 // FUNCTION PROTOTYPES
       
    52 //?type ?function_name(?arg_list);
       
    53 
       
    54 // FORWARD DECLARATIONS
       
    55 //class ?FORWARD_CLASSNAME;
       
    56 class CTestLmUiSelector;
       
    57 
       
    58 // DATA TYPES
       
    59 //enum ?declaration
       
    60 //typedef ?declaration
       
    61 //extern ?data_type;
       
    62 
       
    63 // CLASS DECLARATION
       
    64 
       
    65 /**
       
    66 *  CTestLmUiSelector test class for STIF Test Framework TestScripter.
       
    67 *  ?other_description_lines
       
    68 *
       
    69 *  @lib ?library
       
    70 *  @since ?Series60_version
       
    71 */
       
    72 NONSHARABLE_CLASS(CTestLmUiSelector) : public CScriptBase
       
    73     {
       
    74     public:  // Constructors and destructor
       
    75 
       
    76         /**
       
    77         * Two-phased constructor.
       
    78         */
       
    79         static CTestLmUiSelector* NewL( CTestModuleIf& aTestModuleIf );
       
    80 
       
    81         /**
       
    82         * Destructor.
       
    83         */
       
    84         virtual ~CTestLmUiSelector();
       
    85 
       
    86     public: // New functions
       
    87 
       
    88         /**
       
    89         * ?member_description.
       
    90         * @since ?Series60_version
       
    91         * @param ?arg1 ?description
       
    92         * @return ?description
       
    93         */
       
    94         //?type ?member_function( ?type ?arg1 );
       
    95 
       
    96     public: // Functions from base classes
       
    97 
       
    98         /**
       
    99         * From CScriptBase Runs a script line.
       
   100         * @since ?Series60_version
       
   101         * @param aItem Script line containing method name and parameters
       
   102         * @return Symbian OS error code
       
   103         */
       
   104         virtual TInt RunMethodL( CStifItemParser& aItem );
       
   105 
       
   106     protected:  // New functions
       
   107 
       
   108         /**
       
   109         * ?member_description.
       
   110         * @since ?Series60_version
       
   111         * @param ?arg1 ?description
       
   112         * @return ?description
       
   113         */
       
   114         //?type ?member_function( ?type ?arg1 );
       
   115 
       
   116     protected:  // Functions from base classes
       
   117 
       
   118         /**
       
   119         * From ?base_class ?member_description
       
   120         */
       
   121         //?type ?member_function();
       
   122 
       
   123     private:
       
   124 
       
   125         /**
       
   126         * C++ default constructor.
       
   127         */
       
   128         CTestLmUiSelector( CTestModuleIf& aTestModuleIf );
       
   129 
       
   130         /**
       
   131         * By default Symbian 2nd phase constructor is private.
       
   132         */
       
   133         void ConstructL();
       
   134 
       
   135         // Prohibit copy constructor if not deriving from CBase.
       
   136         // ?classname( const ?classname& );
       
   137         // Prohibit assigment operator if not deriving from CBase.
       
   138         // ?classname& operator=( const ?classname& );
       
   139 
       
   140         /**
       
   141         * Frees all resources allocated from test methods.
       
   142         * @since ?Series60_version
       
   143         */
       
   144         void Delete();
       
   145 
       
   146         /**
       
   147         * Test methods are listed below.
       
   148         */
       
   149 
       
   150         //ADD NEW METHOD DEC HERE
       
   151 
       
   152         /**
       
   153         * Set & get the item id.
       
   154         */
       
   155         virtual TInt GetItemIdL( CStifItemParser& aItem );
       
   156 
       
   157         /**
       
   158         * Set & get the Landmarks Db handle.
       
   159         */
       
   160 
       
   161         virtual TInt GetLmDbL( CStifItemParser& aItem );
       
   162 
       
   163         /**
       
   164         * Set & get the item id.
       
   165         */
       
   166         virtual TInt SetGetItemIdL( CStifItemParser& aItem );
       
   167 
       
   168         /**
       
   169         * Set & get the Landmarks Db handle.
       
   170         */
       
   171 
       
   172         virtual TInt SetGetLmDbL( CStifItemParser& aItem );
       
   173         
       
   174         virtual TInt TestLmkNewL( CStifItemParser& aItem );
       
   175         virtual TInt TestLmkSetMopParent( CStifItemParser& aItem );
       
   176         virtual TInt TestLmkExecuteLD( CStifItemParser& aItem );
       
   177         virtual TInt TestLmkExecuteLD2( CStifItemParser& aItem );
       
   178         virtual TInt TestCatNewL( CStifItemParser& aItem );
       
   179         virtual TInt TestCatSetMopParent( CStifItemParser& aItem );
       
   180         virtual TInt TestCatExecuteLD( CStifItemParser& aItem );
       
   181         virtual TInt TestCatExecuteLD2( CStifItemParser& aItem );
       
   182         virtual TInt TestLmkNewLWithUserDatabase( CStifItemParser& aItem );
       
   183         virtual TInt TestSetDialogTitle( CStifItemParser& aItem );
       
   184         virtual TInt TestSetDialogTitle1( CStifItemParser& aItem );
       
   185        
       
   186         void CreateNewLandmark();
       
   187         void CreateOwnLandMarks();
       
   188 
       
   189 
       
   190     public:     // Data
       
   191         // ?one_line_short_description_of_data
       
   192         //?data_declaration;
       
   193 
       
   194     protected:  // Data
       
   195         // ?one_line_short_description_of_data
       
   196         //?data_declaration;
       
   197 
       
   198     private:    // Data
       
   199     	CTestLmkEngine* engine;
       
   200 
       
   201         // ?one_line_short_description_of_data
       
   202         //?data_declaration;
       
   203 
       
   204         // Reserved pointer for future extension
       
   205         //TAny* iReserved;
       
   206     public:     // Friend classes
       
   207         //?friend_class_declaration;
       
   208     protected:  // Friend classes
       
   209         //?friend_class_declaration;
       
   210     private:    // Friend classes
       
   211         //?friend_class_declaration;
       
   212 
       
   213     };
       
   214 
       
   215 #endif      // CTESTLMUISELECTOR_H
       
   216 
       
   217 // End of File