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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: CPosLmIdListCriteria class
19 #ifndef CPOSLMIDLISTCRITERIA_H
20 #define CPOSLMIDLISTCRITERIA_H
23 #include <EPos_Landmarks.h>
24 #include "EPos_CPosLmSearchCriteria.h"
27 * Landmark ID list search criterion.
29 * This criterion is used if the client only wants to search a subset of the
30 * landmarks in the database.
32 * This criterion must be combined with other search criteria using a
33 * @ref CPosLmCompositeCriteria. It is of no use on its own. If it is not
34 * combined with another criterion,
35 * @ref CPosLandmarkSearch::StartLandmarkSearchL will fail with error code
38 * @p Example: If this criterion is combined with a @ref CPosLmTextCriteria,
39 * the search operation searches the landmarks specified in the ID list
40 * criterion and returns those which match the given text string.
42 * Only one ID list criterion is allowed in each composite criterion, otherwise
43 * @ref CPosLandmarkSearch::StartLandmarkSearchL will fail with error code
46 * If the criterion does not contain any landmark IDs,
47 * @ref CPosLandmarkSearch::StartLandmarkSearchL will fail with error code
50 * @lib eposlmsearchlib.lib
53 class CPosLmIdListCriteria : public CPosLmSearchCriteria
58 * Two-phased constructor.
60 * @returns A new instance of this class.
62 IMPORT_C static CPosLmIdListCriteria* NewLC();
67 IMPORT_C virtual ~CPosLmIdListCriteria();
72 * Sets the IDs of the landmarks which should be included in the search.
74 * @param[in] aIdArray The IDs of the landmarks which should be included
77 IMPORT_C void SetLandmarkIdsL( const RArray<TPosLmItemId>& aIdArray );
80 * Retrieves the list of IDs of the landmarks which should be included
83 * @param[out] aIdArray On return, contains the IDs of the landmarks which
84 * should be included in the search.
86 IMPORT_C void GetLandmarkIdsL( RArray<TPosLmItemId>& aIdArray ) const;
91 CPosLmIdListCriteria();
93 // Prohibit copy constructor
94 CPosLmIdListCriteria( const CPosLmIdListCriteria& );
95 // Prohibit assigment operator
96 CPosLmIdListCriteria& operator= ( const CPosLmIdListCriteria& );
100 RArray<TPosLmItemId> iIdArray;
103 #endif // CPOSLMIDLISTCRITERIA_H