1 /* |
|
2 * Copyright (c) 2006-2009 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: Implementation class from the CAddressInfo abstract class. |
|
15 */ |
|
16 |
|
17 #ifndef INTERNALADDRESSINFO_H_ |
|
18 #define INTERNALADDRESSINFO_H_ |
|
19 |
|
20 #include "reversegeocode.h" |
|
21 /* |
|
22 * Internal implementation class for theCAddressInfo abstract class. |
|
23 */ |
|
24 NONSHARABLE_CLASS( CInternalAddressInfo ) : public MAddressInfo |
|
25 { |
|
26 public: |
|
27 //from CAddressInfo class |
|
28 |
|
29 /** |
|
30 * Gets the country name |
|
31 * @return The country name |
|
32 */ |
|
33 virtual TDesC& GetCountryName(); |
|
34 |
|
35 /** |
|
36 * Gets the state name |
|
37 * @return The state name |
|
38 */ |
|
39 virtual TDesC& GetState(); |
|
40 |
|
41 /** |
|
42 * Gets the city name |
|
43 * @return The city name |
|
44 */ |
|
45 virtual TDesC& GetCity(); |
|
46 |
|
47 /** |
|
48 * Gets the district name |
|
49 * @return The district name |
|
50 */ |
|
51 virtual TDesC& GetDistrict(); |
|
52 |
|
53 /** |
|
54 * Gets the pincode |
|
55 * @return The cpincode |
|
56 */ |
|
57 virtual TDesC& GetPincode(); |
|
58 |
|
59 /** |
|
60 * Gets the Thoroughfare name |
|
61 * @return The Thoroughfare name |
|
62 */ |
|
63 virtual TDesC& GetThoroughfareName(); |
|
64 |
|
65 /** |
|
66 * Gets the ThoroughfareNumber |
|
67 * @return The ThoroughfareNumber |
|
68 */ |
|
69 virtual TDesC& GetThoroughfareNumber(); |
|
70 |
|
71 protected: |
|
72 |
|
73 /** |
|
74 * Performs the secondphase construction |
|
75 */ |
|
76 void ConstructL(); |
|
77 |
|
78 /** |
|
79 * Constructor |
|
80 */ |
|
81 CInternalAddressInfo(); |
|
82 |
|
83 public: |
|
84 |
|
85 |
|
86 /** |
|
87 * Factory function to create the instance |
|
88 * @return A pointer to the CInternalAddressInfo |
|
89 */ |
|
90 static CInternalAddressInfo* NewL(); |
|
91 |
|
92 |
|
93 /** |
|
94 * Destructor |
|
95 */ |
|
96 ~CInternalAddressInfo(); |
|
97 |
|
98 // internal setter utilities to |
|
99 // set the different attributes of the address. |
|
100 |
|
101 /** |
|
102 * Sets the country name |
|
103 * @param aCountryName The country name |
|
104 */ |
|
105 void SetCountryName( const TDesC& aCountryName ); |
|
106 |
|
107 /** |
|
108 * Sets the state name |
|
109 * @param aStateName The state name |
|
110 */ |
|
111 void SetState( const TDesC& aStateName ); |
|
112 |
|
113 /** |
|
114 * Sets the City name |
|
115 * @param aCityName The City name |
|
116 */ |
|
117 void SetCity( const TDesC& aCityName ); |
|
118 |
|
119 /** |
|
120 * Sets the District name |
|
121 * @param aDistrictName The District name |
|
122 */ |
|
123 void SetDistrict( const TDesC& aDistrictName ); |
|
124 |
|
125 /** |
|
126 * Sets the Pincode |
|
127 * @param aPincode The Pincode\ |
|
128 */ |
|
129 void SetPincode( const TDesC& aPincode ); |
|
130 |
|
131 /** |
|
132 * Sets the Thoroughfare name |
|
133 * @param aTFName The Thoroughfare name |
|
134 */ |
|
135 void SetThoroughfareName( const TDesC& aTFName ); |
|
136 /** |
|
137 * Sets the ThoroughfareNumber |
|
138 * @param aTFNumber The ThoroughfareNumber |
|
139 */ |
|
140 void SetThoroughfareNumber( const TDesC& aTFNumber ); |
|
141 |
|
142 /** |
|
143 * Resets the address info |
|
144 */ |
|
145 void ResetAddressInfoL(); |
|
146 |
|
147 private: |
|
148 HBufC* iCountryName; |
|
149 HBufC* iState; |
|
150 HBufC* iCity; |
|
151 HBufC* iDistrict; |
|
152 HBufC* iPin; |
|
153 HBufC* iTFName; |
|
154 HBufC* iTFNumber; |
|
155 }; |
|
156 #endif /* INTERNALADDRESSINFO_H_ */ |
|
157 |
|
158 // End of file |
|