landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp131.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 CPOSTP131_H
       
    21 #define CPOSTP131_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "FT_CLandmarkTestProcedureBase.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Test procedure 131
       
    30 */
       
    31 class CPosTp131 : public CLandmarkTestProcedureBase, public MProgressObserver
       
    32     {
       
    33     public:  // Constructors and destructor
       
    34         
       
    35         /**
       
    36         * C++ default constructor.
       
    37         */
       
    38        
       
    39         CPosTp131(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {iAscendedSorted = ETrue;iErrorsFound=KErrNone;iPartialFlag=EFalse;};
       
    40         /**
       
    41         * Destructor.
       
    42         */
       
    43         ~CPosTp131() {};
       
    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         /**
       
    57         * From MProgressObserver
       
    58         * Notifies the progress of the execution of a CPosLmOperation object.
       
    59         *
       
    60         * @param sProgress the progress of the operation
       
    61         */
       
    62         void NotifyProgress(TReal aProgress);
       
    63 
       
    64     private:
       
    65 
       
    66         void SearchL(
       
    67             const RPointerArray<CSearchResult>& aSearchResults, 
       
    68             TExecutionMode aExecutionMode);
       
    69 
       
    70         void SearchWithSortOrderL(const RPointerArray<CSearchResult>& aSearchResults);
       
    71         
       
    72         void SearchPartialLandmarksL(const RPointerArray<CSearchResult>& aSearchResults);
       
    73         
       
    74         void CheckPartialErrorCodeL(const TBool aPartial, const TInt aErr);
       
    75         
       
    76         void CheckPartialLandmarkL(const CPosLandmark& aLandmark, 
       
    77                                      const CPosLandmark::TAttributes& aAttr,
       
    78                                      const RArray<TUint>& aReqFields);
       
    79         
       
    80         void CheckResetL(const RPointerArray<CSearchResult>& aSearchResults);
       
    81         
       
    82         void CancelTestL(const RPointerArray<CSearchResult>& aSearchResults);
       
    83         
       
    84         void LandmarksSortL(RArray<TPosLmItemId>& aArray, const TPosLmSortPref& aSortPref);
       
    85         
       
    86         void ExecuteLmOpL();
       
    87         
       
    88         private:
       
    89         
       
    90         	CPosLmDisplayData* iDisplayData;
       
    91         	TBool iAscendedSorted;
       
    92         	TInt iErrorsFound;
       
    93         	TBool iPartialFlag;
       
    94     };
       
    95 
       
    96 #endif      // CPOSTP131_H
       
    97             
       
    98 // End of File