5
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-2006 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 the License "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: CLandmarkFilter class
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
// -----------------------------------------------------------------------------
|
|
21 |
// CLandmarkFilter::SetLmSortPref ( const TPosLmSortPref& aLmSortPref )
|
|
22 |
// Sets the sorting order for landmarks.
|
|
23 |
// -----------------------------------------------------------------------------
|
|
24 |
//
|
|
25 |
inline void CLandmarkFilter::SetLmSortPref( const TPosLmSortPref& aLmSortPref )
|
|
26 |
{
|
|
27 |
iLmSortPref = aLmSortPref;
|
|
28 |
}
|
|
29 |
|
|
30 |
// -----------------------------------------------------------------------------
|
|
31 |
// CLandmarkFilter::SetCatSortPref ( const CPosLmCategoryManager::TCategorySortPref& aCatSortPref )
|
|
32 |
// Sets the sorting order for categories.
|
|
33 |
// -----------------------------------------------------------------------------
|
|
34 |
//
|
|
35 |
inline void CLandmarkFilter::SetCatSortPref(
|
|
36 |
const CPosLmCategoryManager::TCategorySortPref& aCatSortPref )
|
|
37 |
{
|
|
38 |
iCatSortPref = aCatSortPref;
|
|
39 |
}
|
|
40 |
|
|
41 |
// -----------------------------------------------------------------------------
|
|
42 |
// CLandmarkFilter::SetPreviousMatches ( const TBool& aSearchOnlyPreviousMatches )
|
|
43 |
// Sets the flag for searching on a previously searched list.
|
|
44 |
// -----------------------------------------------------------------------------
|
|
45 |
//
|
|
46 |
inline void CLandmarkFilter::SetPreviousMatches(
|
|
47 |
const TBool& aSearchOnlyPreviousMatches )
|
|
48 |
{
|
|
49 |
iSearchOnlyPreviousMatches = aSearchOnlyPreviousMatches;
|
|
50 |
}
|
|
51 |
|
|
52 |
// -----------------------------------------------------------------------------
|
|
53 |
// CLandmarkFilter::SetMaximumMatches ( const TInt32& aMaximumMatches )
|
|
54 |
// Sets the maximum matches to be retrieved.
|
|
55 |
// -----------------------------------------------------------------------------
|
|
56 |
//
|
|
57 |
inline void CLandmarkFilter::SetMaximumMatches( const TInt32& aMaximumMatches )
|
|
58 |
{
|
|
59 |
iMaximumMatches = aMaximumMatches;
|
|
60 |
}
|
|
61 |
|
|
62 |
// -----------------------------------------------------------------------------
|
|
63 |
// CLandmarkFilter::Criteria ()
|
|
64 |
// Returns the criteria on which search should be made.
|
|
65 |
// -----------------------------------------------------------------------------
|
|
66 |
//
|
|
67 |
inline CPosLmSearchCriteria& CLandmarkFilter::Criteria( )
|
|
68 |
{
|
|
69 |
return *iCriteria;
|
|
70 |
}
|
|
71 |
|
|
72 |
// -----------------------------------------------------------------------------
|
|
73 |
// CLandmarkFilter::LmSortPref ()
|
|
74 |
// Returns the sorting order for landmarks.
|
|
75 |
// -----------------------------------------------------------------------------
|
|
76 |
//
|
|
77 |
inline TPosLmSortPref CLandmarkFilter::LmSortPref( )
|
|
78 |
{
|
|
79 |
return iLmSortPref;
|
|
80 |
}
|
|
81 |
|
|
82 |
// -----------------------------------------------------------------------------
|
|
83 |
// CLandmarkFilter::CatSortPref ()
|
|
84 |
// Returns the sorting order for categories.
|
|
85 |
// -----------------------------------------------------------------------------
|
|
86 |
//
|
|
87 |
inline CPosLmCategoryManager::TCategorySortPref CLandmarkFilter::CatSortPref( )
|
|
88 |
{
|
|
89 |
return iCatSortPref;
|
|
90 |
}
|
|
91 |
|
|
92 |
// -----------------------------------------------------------------------------
|
|
93 |
// CLandmarkFilter::PreviousMatches ()
|
|
94 |
// Returns the flag for searching on a previously searched list.
|
|
95 |
// -----------------------------------------------------------------------------
|
|
96 |
//
|
|
97 |
inline TBool CLandmarkFilter::PreviousMatches( )
|
|
98 |
{
|
|
99 |
return iSearchOnlyPreviousMatches;
|
|
100 |
}
|
|
101 |
|
|
102 |
// -----------------------------------------------------------------------------
|
|
103 |
// CLandmarkFilter::MaximumMatches ()
|
|
104 |
// Sets the maximum matches to be retrieved.
|
|
105 |
// -----------------------------------------------------------------------------
|
|
106 |
//
|
|
107 |
inline TInt32 CLandmarkFilter::MaximumMatches( )
|
|
108 |
{
|
|
109 |
return iMaximumMatches;
|
|
110 |
}
|
|
111 |
|
|
112 |
// -----------------------------------------------------------------------------
|
|
113 |
// CLandmarkFilter::IsLandmark ()
|
|
114 |
// Returns the flag if search is on landmark or category.
|
|
115 |
// -----------------------------------------------------------------------------
|
|
116 |
//
|
|
117 |
inline TBool CLandmarkFilter::IsLandmark( )
|
|
118 |
{
|
|
119 |
return iIsLandmark;
|
|
120 |
}
|