2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: CPosLmPartialReadParameters class
19 #ifndef CPOSLMPARTIALREADPARAMETERS_H
20 #define CPOSLMPARTIALREADPARAMETERS_H
23 #include <lbsfields.h>
24 #include "EPos_CPosLandmark.h"
27 * Container class for partial landmark settings.
28 * Partial settings are used to define which landmark data should be returned
29 * when @ref CPosLandmarkDatabase::ReadPartialLandmarkLC is called.
31 * @lib eposlandmarks.lib
34 class CPosLmPartialReadParameters : public CBase
39 * Two-phased constructor.
40 * @returns A new instance of this class.
42 IMPORT_C static CPosLmPartialReadParameters* NewLC();
47 virtual ~CPosLmPartialReadParameters();
52 * Returns a bitmap of the landmark attributes which should be included
53 * in a partial landmark.
55 * The bitmap is a combination of the values in
56 * CPosLandmark::TAttribute.
58 * @return The partial landmark attributes bitmap.
60 IMPORT_C CPosLandmark::TAttributes RequestedAttributes() const;
63 * Sets a bitmap of the landmark attributes which should be included in
66 * The bitmap is constructed from the values in
67 * CPosLandmark::TAttribute.
69 * @param[in] aAttributes A partial landmark attributes bitmap.
71 IMPORT_C void SetRequestedAttributes(
72 CPosLandmark::TAttributes aAttributes
76 * Returns the position fields which should be included in a partial
79 * @param[out] aRequestedFields Will contain the requested position fields,
80 * i.e. @p TPositionFieldId.
81 * @returns @p KErrNone if successful, otherwise one of the system wide
84 IMPORT_C TInt GetRequestedPositionFields(
85 RArray<TUint>& aRequestedFields
89 * Sets the position fields which should be included in a partial
92 * @param[in] aRequestedFields The requested position fields, i.e.
93 * @p TPositionFieldId.
94 * @returns @p KErrNone if successful, otherwise one of the system wide
97 IMPORT_C TInt SetRequestedPositionFields(
98 const RArray<TUint>& aRequestedFields
104 CPosLmPartialReadParameters();
106 // Symbian constructor
109 // Prohibit copy constructor
110 CPosLmPartialReadParameters(
111 const CPosLmPartialReadParameters& );
112 // Prohibit assigment operator
113 CPosLmPartialReadParameters& operator= (
114 const CPosLmPartialReadParameters& );
118 // Requested position fields
119 RArray<TUint> iRequestedFields;
121 // Requested attributes
125 #endif // CPOSLMPARTIALREADPARAMETERS_H