landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp101.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 2005 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: 
       
    15 *   ?description_line
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPOSTP101_H
       
    21 #define CPOSTP101_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "FT_CLandmarkTestProcedureBase.h"
       
    25 
       
    26 
       
    27 
       
    28 /**
       
    29 *  Test procedure 101
       
    30 */
       
    31 class CPosTp101 : public CLandmarkTestProcedureBase
       
    32     {
       
    33     public:  // Constructors and destructor
       
    34         
       
    35         /**
       
    36         * C++ default constructor.
       
    37         */
       
    38        
       
    39         CPosTp101(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {};
       
    40         /**
       
    41         * Destructor.
       
    42         */
       
    43         ~CPosTp101() {};
       
    44 
       
    45     public: // Functions from base classes
       
    46 
       
    47        
       
    48         /**
       
    49         * From CLandmarkTestProcedureBase
       
    50         * Runs the test in the module
       
    51         */
       
    52         void StartL();
       
    53         
       
    54         void CloseTest();
       
    55 
       
    56     private:
       
    57     
       
    58         void VerifySetOfDatabasesL();
       
    59 
       
    60         void VerifyDatabaseL(CDesCArray* aLmUris, CDesCArray* aNewLmUris = NULL);
       
    61 
       
    62         void CheckDatabasesL(
       
    63             CDesCArray* aExpectedLmUris,
       
    64             TUint aExpectedMaxMatches = KPosLmMaxNumOfMatchesUnlimited
       
    65         );
       
    66 
       
    67 
       
    68         void SearchL(
       
    69             const RPointerArray<CSearchResult>& aSearchResults, 
       
    70             TExecutionMode aExecutionMode);
       
    71 
       
    72         void SearchWithSortOrderL(const RPointerArray<CSearchResult>& aSearchResults);
       
    73 
       
    74         void GetLmIdsL(
       
    75             TInt aDbId, 
       
    76             RArray<TPosLmItemId> aSearchResults,
       
    77             RArray<TPosLmItemId>& aLmIdForADb
       
    78         );
       
    79         
       
    80         void CheckEqualsLmsL(
       
    81             TPosLmItemId aSource, 
       
    82             TPosLmItemId aTarget
       
    83         );
       
    84         
       
    85         void OnTheFlySearchL();
       
    86         
       
    87         void SearchAndDeleteL(
       
    88             const RPointerArray<CSearchResult>& aSearchResults
       
    89         );
       
    90 
       
    91         void SearchAndRenameL(
       
    92             const RPointerArray<CSearchResult>& aSearchResults
       
    93         );
       
    94 
       
    95         void SearchAndCancelL(const TBool& aInCallback = EFalse);
       
    96         
       
    97         void SearchWithMaximumL(
       
    98             const RPointerArray<CSearchResult>& aSearchResults
       
    99         );
       
   100 
       
   101 
       
   102         CDesCArray* CreateDatabasesL(
       
   103             TInt aNrOfLmDbs, 
       
   104             TInt aLmPerDb, 
       
   105             TInt aLastId, 
       
   106             TBool aDebug = EFalse
       
   107         );
       
   108         
       
   109     private:
       
   110 
       
   111         CDesCArray* iDbArray;
       
   112 
       
   113     };
       
   114 
       
   115 #endif      // CPOSTP56_H
       
   116             
       
   117 // End of File