landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp11.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 2004 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 CPOSTP11_H
       
    21 #define CPOSTP11_H
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include <EPos_CPosLandmarkCategory.h>
       
    26 #include <EPos_CPosLMCategoryManager.h>
       
    27 #include "FT_CLandmarkTestProcedureBase.h"
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  Test procedure 11
       
    33 */
       
    34 class CPosTp11 :public CLandmarkTestProcedureBase
       
    35     {
       
    36     public:  // Constructors and destructor
       
    37         
       
    38         /**
       
    39         * C++ default constructor.
       
    40         */
       
    41        // CPosTp11() : CLandmarkTestProcedureBase(11) {};
       
    42         CPosTp11(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {};
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         ~CPosTp11() {};
       
    47 
       
    48     public: // Functions from base classes
       
    49 
       
    50         /**
       
    51         * From CUtfwTestBase
       
    52         * Retrieves the test module name
       
    53         * @param aName The name of the test module.
       
    54         */
       
    55        /* void GetName(
       
    56             TDes&   aName
       
    57             ) const;
       
    58 			*/
       
    59         /**
       
    60         * From CLandmarkTestProcedureBase
       
    61         * Runs the test in the module
       
    62         */
       
    63         void StartL();
       
    64 
       
    65         /**
       
    66         * From CLandmarkTestProcedureBase
       
    67         * Cleans up after a test.
       
    68         * Always called, even if the test leaves. 
       
    69         */
       
    70         void CloseTest();
       
    71 
       
    72     private:
       
    73             
       
    74         void AddCategoriesL();
       
    75 
       
    76         void AddLandmarksL();
       
    77 
       
    78         void IterateCategoriesL();
       
    79 
       
    80         void IterateSetOfCategoriesL();
       
    81 
       
    82         void CheckIteratorItemsL(CPosLmItemIterator& iter);
       
    83         
       
    84         CPosLandmarkCategory* InternalGet(TPosLmItemId id);
       
    85 
       
    86         void IterateSortedCategoriesL();
       
    87 
       
    88         void IterateReferencedCategoriesL();
       
    89                                      
       
    90         void IterateReferencedSortedCategoriesL();       
       
    91         
       
    92         // Added for BC testing 
       
    93         void MakeEmptyLmDatabaseL( CPosLandmarkDatabase& aLdb,
       
    94                                    CPosLmCategoryManager& aCatMgr ); 
       
    95         
       
    96 
       
    97     private: // data
       
    98 
       
    99         CPosLmCategoryManager*                 iCategoryManager;
       
   100         RPointerArray<CPosLandmarkCategory>    iCategories;
       
   101         RArray<CPosLandmarkCategory>           iReferencedCategories;
       
   102         RPointerArray<CPosLandmark>            iLandmarks;       
       
   103     };
       
   104 
       
   105 #endif      // CPOSTP11_H
       
   106             
       
   107 // End of File