|
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 |
|
21 #ifndef CSEARCHRESULT_H |
|
22 #define CSEARCHRESULT_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <EPos_CPosLandmark.h> |
|
27 |
|
28 #include "Ft_CSearchResultBase.h" |
|
29 |
|
30 class CSearchResult : public CSearchResultBase |
|
31 { |
|
32 |
|
33 public: // Constructors and destructor |
|
34 |
|
35 /** |
|
36 * Two-phased constructor. |
|
37 */ |
|
38 static CSearchResult* NewL(const TDesC& aDes); |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 ~CSearchResult(); |
|
44 |
|
45 public: |
|
46 |
|
47 TPtrC TextCriteria() const; |
|
48 |
|
49 const RArray<TUint>& PositionFields() const; |
|
50 |
|
51 private: |
|
52 |
|
53 CSearchResult(); |
|
54 |
|
55 void ConstructL(const TDesC& aDes); |
|
56 |
|
57 |
|
58 private: |
|
59 |
|
60 // By default, prohibit copy constructor |
|
61 CSearchResult(const CSearchResult&); |
|
62 // Prohibit assigment operator |
|
63 CSearchResult& operator=(const CSearchResult&); |
|
64 |
|
65 void ParsePositionFields(const TDesC& aDes); |
|
66 |
|
67 void Print(); |
|
68 |
|
69 TBool Equals32(const TReal aValue1, const TReal aValue2, const TReal aAccuracy); |
|
70 |
|
71 private: // Data |
|
72 |
|
73 enum TValueIndex |
|
74 { |
|
75 ETextCriteria =0, |
|
76 EAttributes =1, |
|
77 EPositionFields =2, |
|
78 ELmSearchResult =3, |
|
79 ERedefined =4 |
|
80 }; |
|
81 |
|
82 HBufC* iTextCriteria; |
|
83 |
|
84 RArray<TUint> iPositionFields; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif // CSEARCHRESULT_H |
|
89 |
|
90 // End of File |