landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp20.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 CPOSTP20_H
       
    21 #define CPOSTP20_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "FT_CLandmarkTestProcedureBase.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Test procedure 20
       
    30 */
       
    31 class CPosTp20 : public CLandmarkTestProcedureBase
       
    32     {
       
    33     public:  // Constructors and destructor
       
    34         
       
    35         /**
       
    36         * C++ default constructor.
       
    37         */
       
    38         
       
    39         CPosTp20(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {};
       
    40         
       
    41         /**
       
    42         * Destructor.
       
    43         */
       
    44         ~CPosTp20() {};
       
    45 
       
    46     public: // Functions from base classes
       
    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         CPosLandmarkDatabase* ReplaceGlobalCategoriesL();
       
    59 
       
    60         void SetupGlobalCategoriesL();
       
    61 
       
    62         //setup the default categories. english version
       
    63         //how to test russian??
       
    64         
       
    65         void VerifyGlobalCategoriesL(TBool aCheck = ETrue);
       
    66 
       
    67         void RenameAndDeleteGlobalL();
       
    68         
       
    69         void RemoveAllCategoriesL();
       
    70         
       
    71         
       
    72         // Added for BC testing 
       
    73         void UpdateGlobalCategoriesInDb();
       
    74         
       
    75         
       
    76         
       
    77 
       
    78     private: // Data
       
    79 
       
    80          CPosLmCategoryManager*          iCategoryManager;
       
    81          
       
    82          RArray<TUint>    				 iGlobalCategoryIds;
       
    83          
       
    84 
       
    85          RPointerArray<HBufC>            iGlobalCategoryNames;
       
    86          RArray<TPtrC>                   iGlobalCategoryTestNames;      
       
    87          
       
    88          TPosLmItemId			iLmId;
       
    89          TPosLmItemId			iCategoryId;
       
    90     };
       
    91 
       
    92 #endif      // CPOSTP20_H
       
    93             
       
    94 // End of File