|
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 * See class description below |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef POSLMSQLQUERYHELPER_H |
|
21 #define POSLMSQLQUERYHELPER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * This is a helper class for creating sql queries. |
|
30 * |
|
31 * @version $Revision: 1.2 $, $Date: 2005/02/22 13:43:30 $ |
|
32 */ |
|
33 class PosLmSqlQueryHelper |
|
34 { |
|
35 public: // New functions |
|
36 |
|
37 /** |
|
38 * Appends a WHERE clause to a SQL query. |
|
39 * The SQL query will search for landmark whose latitude and longitude |
|
40 * coordinates resides between the specified limits. |
|
41 * |
|
42 * @param aDbQuery The sql query. |
|
43 * @param aSouthLatitude The southern latitude border of the search area. |
|
44 * @param aNorthLatitude The northern latitude border of the search area. |
|
45 * @param aWestLongitude The western longitude border of the search area. |
|
46 * @param aEastLongitude The eastern longitude border of the search area. |
|
47 */ |
|
48 static void AppendAreaCriteriaToQueryL( |
|
49 /* IN/OUT */ HBufC* aDbQuery, |
|
50 /* IN */ TReal64 aSouthLatitude, |
|
51 /* IN */ TReal64 aNorthLatitude, |
|
52 /* IN */ TReal64 aWestLongitude, |
|
53 /* IN */ TReal64 aEastLongitude |
|
54 ); |
|
55 |
|
56 }; |
|
57 |
|
58 #endif // POSLMSQLQUERYHELPER_H |
|
59 |
|
60 // End of File |