|
1 /** |
|
2 * Copyright (c) 2010 Sasken Communication Technologies Ltd. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * Manasij Roy, Nalina Hariharan |
|
14 * |
|
15 * Description: |
|
16 * Private class implemented for implicit sharing of SmfLocation class |
|
17 * Note: This class has dependencies on QtMobility project |
|
18 * |
|
19 */ |
|
20 |
|
21 #ifndef SMFLOCATION_P_H_ |
|
22 #define SMFLOCATION_P_H_ |
|
23 |
|
24 #include <QUrl> |
|
25 #include <qgeopositioninfo.h> // Qt mobility class |
|
26 #include <QSharedData> |
|
27 |
|
28 // Qt mobility - namespace |
|
29 using namespace QtMobility; |
|
30 |
|
31 class SmfLocationPrivate : public QSharedData |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Constructor |
|
36 */ |
|
37 SmfLocationPrivate( ) { |
|
38 m_name.clear(); |
|
39 m_city.clear(); |
|
40 m_street.clear(); |
|
41 m_zipcode.clear(); |
|
42 m_country.clear(); |
|
43 m_url.clear(); |
|
44 m_placeId.clear(); } |
|
45 |
|
46 /** |
|
47 * Copy Consturctor |
|
48 * @param aOther The reference object to be copy constructed |
|
49 */ |
|
50 SmfLocationPrivate( const SmfLocationPrivate &aOther ) : |
|
51 QSharedData ( aOther ), |
|
52 m_name ( aOther.m_name ), |
|
53 m_city ( aOther.m_city ), |
|
54 m_street ( aOther.m_street ), |
|
55 m_zipcode ( aOther.m_zipcode ), |
|
56 m_country ( aOther.m_country ), |
|
57 m_geo ( aOther.m_geo ), |
|
58 m_url ( aOther.m_url ), |
|
59 m_placeId ( aOther.m_placeId ) { } |
|
60 |
|
61 /** |
|
62 * Destructor |
|
63 */ |
|
64 ~SmfLocationPrivate( ) |
|
65 { |
|
66 } |
|
67 |
|
68 QString m_name; // place name |
|
69 QString m_city; // city of place |
|
70 QString m_street; // street of place |
|
71 QString m_zipcode; // zip code of place |
|
72 QString m_country; // country of place |
|
73 QGeoPositionInfo m_geo; // place geo position information |
|
74 QUrl m_url; // url indicating the place |
|
75 QString m_placeId; // place id |
|
76 |
|
77 }; |
|
78 |
|
79 #endif /* SMFLOCATION_P_H_ */ |