loc_pub/landmarks_ui_selector_api/tsrc/src/testlmuiselector.cpp
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 -  Implementation of test class for Landmark Selector API
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 // INCLUDE FILES
       
    26 #include <Stiftestinterface.h>
       
    27 #include "testlmuiselector.h"
       
    28 
       
    29 // EXTERNAL DATA STRUCTURES
       
    30 //extern  ?external_data;
       
    31 
       
    32 // EXTERNAL FUNCTION PROTOTYPES
       
    33 //extern ?external_function( ?arg_type,?arg_type );
       
    34 
       
    35 // CONSTANTS
       
    36 //const ?type ?constant_var = ?constant;
       
    37 
       
    38 // MACROS
       
    39 //#define ?macro ?macro_def
       
    40 
       
    41 // LOCAL CONSTANTS AND MACROS
       
    42 //const ?type ?constant_var = ?constant;
       
    43 //#define ?macro_name ?macro_def
       
    44 
       
    45 // MODULE DATA STRUCTURES
       
    46 //enum ?declaration
       
    47 //typedef ?declaration
       
    48 
       
    49 // LOCAL FUNCTION PROTOTYPES
       
    50 //?type ?function_name( ?arg_type, ?arg_type );
       
    51 
       
    52 // FORWARD DECLARATIONS
       
    53 //class ?FORWARD_CLASSNAME;
       
    54 
       
    55 // ============================= LOCAL FUNCTIONS ===============================
       
    56 
       
    57 // -----------------------------------------------------------------------------
       
    58 // ?function_name ?description.
       
    59 // ?description
       
    60 // Returns: ?value_1: ?description
       
    61 //          ?value_n: ?description_line1
       
    62 //                    ?description_line2
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 /*
       
    66 ?type ?function_name(
       
    67     ?arg_type arg,  // ?description
       
    68     ?arg_type arg)  // ?description
       
    69     {
       
    70 
       
    71     ?code  // ?comment
       
    72 
       
    73     // ?comment
       
    74     ?code
       
    75     }
       
    76 */
       
    77 
       
    78 // ============================ MEMBER FUNCTIONS ===============================
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 // CTestLmUiSelector::CTestLmUiSelector
       
    82 // C++ default constructor can NOT contain any code, that
       
    83 // might leave.
       
    84 // -----------------------------------------------------------------------------
       
    85 //
       
    86 CTestLmUiSelector::CTestLmUiSelector(
       
    87     CTestModuleIf& aTestModuleIf ):
       
    88         CScriptBase( aTestModuleIf )
       
    89     {
       
    90     }
       
    91 
       
    92 // -----------------------------------------------------------------------------
       
    93 // CTestLmUiSelector::ConstructL
       
    94 // Symbian 2nd phase constructor can leave.
       
    95 // -----------------------------------------------------------------------------
       
    96 //
       
    97 void CTestLmUiSelector::ConstructL()
       
    98     {
       
    99     iLog = CStifLogger::NewL( KTestLmUiSelectorLogPath,
       
   100                           KTestLmUiSelectorLogFile,
       
   101                           CStifLogger::ETxt,
       
   102                           CStifLogger::EFile,
       
   103                           EFalse );
       
   104 
       
   105     }
       
   106 
       
   107 // -----------------------------------------------------------------------------
       
   108 // CTestLmUiSelector::NewL
       
   109 // Two-phased constructor.
       
   110 // -----------------------------------------------------------------------------
       
   111 //
       
   112 CTestLmUiSelector* CTestLmUiSelector::NewL(
       
   113     CTestModuleIf& aTestModuleIf )
       
   114     {
       
   115     CTestLmUiSelector* self = new (ELeave) CTestLmUiSelector( aTestModuleIf );
       
   116 
       
   117     CleanupStack::PushL( self );
       
   118     self->ConstructL();
       
   119     CleanupStack::Pop();
       
   120 
       
   121     return self;
       
   122 
       
   123     }
       
   124 
       
   125 // Destructor
       
   126 CTestLmUiSelector::~CTestLmUiSelector()
       
   127     {
       
   128 
       
   129     // Delete resources allocated from test methods
       
   130     Delete();
       
   131 
       
   132     // Delete logger
       
   133     delete iLog;
       
   134 
       
   135     }
       
   136 
       
   137 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
   138 
       
   139 // -----------------------------------------------------------------------------
       
   140 // LibEntryL is a polymorphic Dll entry point.
       
   141 // Returns: CScriptBase: New CScriptBase derived object
       
   142 // -----------------------------------------------------------------------------
       
   143 //
       
   144 EXPORT_C CScriptBase* LibEntryL(
       
   145     CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework
       
   146     {
       
   147 
       
   148     return ( CScriptBase* ) CTestLmUiSelector::NewL( aTestModuleIf );
       
   149 
       
   150     }
       
   151 
       
   152 
       
   153 //  End of File