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