landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp52.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 CPOSTP52_H
       
    21 #define CPOSTP52_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "FT_CLandmarkTestProcedureBase.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 class CPosLandmarkParser;
       
    28 
       
    29 /**
       
    30 *  Test procedure 48
       
    31 */
       
    32 class CPosTp52 :public CLandmarkTestProcedureBase
       
    33     {
       
    34     public:  // Constructors and destructor
       
    35         
       
    36         /**
       
    37         * C++ default constructor.
       
    38         */
       
    39         
       
    40         CPosTp52(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {iErrorsFound=KErrNone;};
       
    41         /**
       
    42         * Destructor.
       
    43         */
       
    44         ~CPosTp52() {};
       
    45 
       
    46     public: // Functions from base classes
       
    47 
       
    48        
       
    49         void CloseTest();
       
    50 
       
    51         /**
       
    52         * From CLandmarkTestProcedureBase
       
    53         * Runs the test in the module
       
    54         */
       
    55         void StartL();
       
    56 
       
    57     private:
       
    58 
       
    59         /**
       
    60         * Do the import of landmarks
       
    61         */
       
    62         TInt ImportLandmarksL(TBool aSync, TUint aTransferOption);
       
    63 
       
    64         /**
       
    65         * Prepare landmarkdb for test
       
    66         */
       
    67         void ResetLandmarksDbL();
       
    68 
       
    69         /**
       
    70         * Get nr of landmarks in lm db
       
    71         */
       
    72         TInt GetNrOfLandmarksL();
       
    73 
       
    74         /**
       
    75         * Import landmarks from test, both sync and async
       
    76         */
       
    77         void DoTestL(
       
    78             const TDesC&  aTestFile, 
       
    79             const TDesC8& aMimeType,
       
    80             TInt aExpectedErrorCode, 
       
    81             TInt aExpNrImportedLandmarks=0);
       
    82 
       
    83         /**
       
    84         * Check landmark in lm db
       
    85         */
       
    86         void CheckLongLandmarkNameL();
       
    87 
       
    88         /**
       
    89         * Check landmark category in lm db
       
    90         */
       
    91         void CheckLongCategoryNameL(TInt aNumExpectedCategories);
       
    92 
       
    93     private:
       
    94         CPosLandmarkParser* iLandmarkParser;
       
    95         TInt iErrorsFound;
       
    96 
       
    97     };
       
    98 
       
    99 #endif      // CPOSTp52_H
       
   100             
       
   101 // End of File