loc_pub/landmarks_ui_selector_api/tsrc/bc/bcapplmkitemiddbcombiinfo/src/landmarksitemiddbcombiinfoblocks.cpp
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2002 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:    LandmarkUi Content File
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 // [INCLUDE FILES] - do not remove
       
    26 #include <e32svr.h>
       
    27 #include <StifParser.h>
       
    28 #include <Stiftestinterface.h>
       
    29 #include "LandmarksItemIdDbCombiInfo.h"
       
    30 
       
    31 #include <tlmkitemiddbcombiinfo.h>
       
    32 #include <CLmkLandmarkSelectorDlg.h>
       
    33 // EXTERNAL DATA STRUCTURES
       
    34 //extern  ?external_data;
       
    35 
       
    36 // EXTERNAL FUNCTION PROTOTYPES
       
    37 //extern ?external_function( ?arg_type,?arg_type );
       
    38 
       
    39 // CONSTANTS
       
    40 //const ?type ?constant_var = ?constant;
       
    41 
       
    42 // MACROS
       
    43 //#define ?macro ?macro_def
       
    44 
       
    45 // LOCAL CONSTANTS AND MACROS
       
    46 //const ?type ?constant_var = ?constant;
       
    47 //#define ?macro_name ?macro_def
       
    48 
       
    49 // MODULE DATA STRUCTURES
       
    50 //enum ?declaration
       
    51 //typedef ?declaration
       
    52 
       
    53 // LOCAL FUNCTION PROTOTYPES
       
    54 //?type ?function_name( ?arg_type, ?arg_type );
       
    55 
       
    56 // FORWARD DECLARATIONS
       
    57 //class ?FORWARD_CLASSNAME;
       
    58 
       
    59 // ============================= LOCAL FUNCTIONS ===============================
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // ?function_name ?description.
       
    63 // ?description
       
    64 // Returns: ?value_1: ?description
       
    65 //          ?value_n: ?description_line1
       
    66 //                    ?description_line2
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 /*
       
    70 ?type ?function_name(
       
    71     ?arg_type arg,  // ?description
       
    72     ?arg_type arg)  // ?description
       
    73     {
       
    74 
       
    75     ?code  // ?comment
       
    76 
       
    77     // ?comment
       
    78     ?code
       
    79     }
       
    80 */
       
    81 
       
    82 // ============================ MEMBER FUNCTIONS ===============================
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // CLandmarksItemIdDbCombiInfo::Delete
       
    86 // Delete here all resources allocated and opened from test methods.
       
    87 // Called from destructor.
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 void CLandmarksItemIdDbCombiInfo::Delete()
       
    91     {
       
    92 
       
    93     }
       
    94 
       
    95 // -----------------------------------------------------------------------------
       
    96 // CLandmarksItemIdDbCombiInfo::RunMethodL
       
    97 // Run specified method. Contains also table of test mothods and their names.
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 TInt CLandmarksItemIdDbCombiInfo::RunMethodL(
       
   101     CStifItemParser& aItem )
       
   102     {
       
   103 
       
   104     static TStifFunctionInfo const KFunctions[] =
       
   105         {
       
   106         // Copy this line for every implemented function.
       
   107         // First string is the function name used in TestScripter script file.
       
   108         // Second is the actual implementation member function.
       
   109         ENTRY( "Example", CLandmarksItemIdDbCombiInfo::ExampleL ),
       
   110         ENTRY( "TestItemIdDbCombiInfo", CLandmarksItemIdDbCombiInfo::TestItemIdDbCombiInfo ),
       
   111         ENTRY( "TestGetItemId", CLandmarksItemIdDbCombiInfo::TestGetItemId ),
       
   112         ENTRY( "TestGetLmDb", CLandmarksItemIdDbCombiInfo::TestGetLmDb ),
       
   113         //ADD NEW ENTRY HERE
       
   114         // [test cases entries] - Do not remove
       
   115 
       
   116         };
       
   117 
       
   118     const TInt count = sizeof( KFunctions ) /
       
   119                         sizeof( TStifFunctionInfo );
       
   120 
       
   121     return RunInternalL( KFunctions, count, aItem );
       
   122 
       
   123     }
       
   124 
       
   125 // -----------------------------------------------------------------------------
       
   126 // CLandmarksItemIdDbCombiInfo::ExampleL
       
   127 // Example test method function.
       
   128 // (other items were commented in a header).
       
   129 // -----------------------------------------------------------------------------
       
   130 //
       
   131 TInt CLandmarksItemIdDbCombiInfo::ExampleL( CStifItemParser& aItem )
       
   132     {
       
   133 
       
   134     // Print to UI
       
   135     _LIT( KLandmarksItemIdDbCombiInfo, "LandmarksItemIdDbCombiInfo" );
       
   136     _LIT( KExample, "In Example" );
       
   137     TestModuleIf().Printf( 0, KLandmarksItemIdDbCombiInfo, KExample );
       
   138     // Print to log file
       
   139     iLog->Log( KExample );
       
   140 
       
   141     TInt i = 0;
       
   142     TPtrC string;
       
   143     _LIT( KParam, "Param[%i]: %S" );
       
   144     while ( aItem.GetNextString ( string ) == KErrNone )
       
   145         {
       
   146         TestModuleIf().Printf( i, KLandmarksItemIdDbCombiInfo,
       
   147                                 KParam, i, &string );
       
   148         i++;
       
   149         }
       
   150 
       
   151     return KErrNone;
       
   152 
       
   153     }
       
   154 
       
   155 TInt CLandmarksItemIdDbCombiInfo::TestItemIdDbCombiInfo( CStifItemParser& aItem )
       
   156 {
       
   157 	 	TLmkItemIdDbCombiInfo selItem = TLmkItemIdDbCombiInfo();
       
   158 	 	return KErrNone;
       
   159 }
       
   160 
       
   161 TInt CLandmarksItemIdDbCombiInfo::TestGetItemId( CStifItemParser& aItem )
       
   162 {
       
   163 			TLmkItemIdDbCombiInfo selItem;
       
   164 			TPosLmItemId lmItem;
       
   165 
       
   166 			CLmkLandmarkSelectorDlg* iLmkSelectDlg = CLmkLandmarkSelectorDlg::NewL();
       
   167     		TRAPD( result, iLmkSelectDlg->ExecuteLD(selItem));
       
   168 
       
   169       	    lmItem = selItem.GetItemId();
       
   170       	    return KErrNone;
       
   171  }
       
   172 
       
   173  TInt CLandmarksItemIdDbCombiInfo::TestGetLmDb( CStifItemParser& aItem )
       
   174  {
       
   175 
       
   176 			TLmkItemIdDbCombiInfo selItem;
       
   177 
       
   178 			CLmkLandmarkSelectorDlg* iLmkSelectDlg = CLmkLandmarkSelectorDlg::NewL();
       
   179     		TRAPD( result, iLmkSelectDlg->ExecuteLD(selItem));
       
   180 
       
   181     	    CPosLandmarkDatabase* ilDb = selItem.GetLmDb();
       
   182     	    return KErrNone;
       
   183     	    }
       
   184 // -----------------------------------------------------------------------------
       
   185 // CLandmarksItemIdDbCombiInfo::?member_function
       
   186 // ?implementation_description
       
   187 // (other items were commented in a header).
       
   188 // -----------------------------------------------------------------------------
       
   189 //
       
   190 /*
       
   191 TInt CLandmarksItemIdDbCombiInfo::?member_function(
       
   192    CItemParser& aItem )
       
   193    {
       
   194 
       
   195    ?code
       
   196 
       
   197    }
       
   198 */
       
   199 
       
   200 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
   201 // None
       
   202 
       
   203 //  [End of File] - Do not remove