landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp18.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 CPOSTP18_H
       
    21 #define CPOSTP18_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "FT_CLandmarkTestProcedureBase.h"
       
    25 #include <EPos_CPosLandmark.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 
       
    30 /**
       
    31 *  Test procedure 18
       
    32 */
       
    33 class CPosTp18 : public CLandmarkTestProcedureBase
       
    34     {
       
    35     public:  // Constructors and destructor
       
    36         
       
    37         /**
       
    38         * C++ default constructor.
       
    39         */
       
    40         
       
    41         CPosTp18(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {};
       
    42         /**
       
    43         * Destructor.
       
    44         */
       
    45         ~CPosTp18() {};
       
    46 
       
    47     public: // Functions from base classes
       
    48 
       
    49         
       
    50         /**
       
    51         * From CLandmarkTestProcedureBase
       
    52         * Runs the test in the module
       
    53         */
       
    54         void StartL();
       
    55 
       
    56         void CloseTest();
       
    57     
       
    58     private:
       
    59 
       
    60         void TestAllPartialAttributesL();
       
    61 
       
    62         void TestPartialPositionFieldsL();
       
    63 
       
    64         void PreparePartialLandmarksL();
       
    65 
       
    66         void PreparePartialLandmarksAsyncL(TExecutionMode aExecutionMode);
       
    67         
       
    68         void PreparePartialLandmarksAsyncAndCancelL(const TBool& aInCallback=EFalse);
       
    69 
       
    70         void AppendFields(RArray<TUint>& aArray);
       
    71 
       
    72         CPosLandmark* GetPartialLandmarkLC(const TPosLmItemId aId,
       
    73                                            const CPosLmPartialReadParameters& partialParam);
       
    74         
       
    75         void CheckPartialLandmarkL(const CPosLandmark& aLandmark, 
       
    76                                    const CPosLandmark::TAttributes& aAttr);
       
    77         
       
    78         void CheckPartialLandmarkL(const CPosLandmark& aLandmark, 
       
    79                                    const RArray<TUint>& aReqFields,
       
    80                                    const RArray<TBool>& aAvailFields);
       
    81 
       
    82         void CheckPartialErrorCodeL(const TBool aPartial, const TInt aErr);
       
    83 
       
    84     private: // data
       
    85         CArrayPtr<CPosLandmark>*    iArrayPtr;
       
    86 
       
    87     };
       
    88 
       
    89 #endif      // CPOSTP18_H
       
    90             
       
    91 // End of File