|
1 /** |
|
2 * @file smfvenue.h |
|
3 * @author Nalina Hariharan, Sasken Communication Technologies Ltd - Initial contribution |
|
4 * @version 1.0 |
|
5 * |
|
6 * @section LICENSE |
|
7 * |
|
8 * Copyright (c) 2010 Sasken Communication Technologies Ltd. |
|
9 * All rights reserved. |
|
10 * This component and the accompanying materials are made available |
|
11 * under the terms of the "{License}" |
|
12 * which accompanies this distribution, and is available |
|
13 * at the URL "{LicenseUrl}". |
|
14 * |
|
15 * @section DESCRIPTION |
|
16 * |
|
17 * The venue class represents a venue and its related information |
|
18 * |
|
19 * Note: This class has dependencies on QtMobility project |
|
20 */ |
|
21 |
|
22 #ifndef SMFVENUE_H_ |
|
23 #define SMFVENUE_H_ |
|
24 |
|
25 #include <QUrl> |
|
26 #include <qgeopositioninfo.h> // Qt mobility class |
|
27 #include <qdatastream.h> |
|
28 #include "SmfClientGlobal.h" |
|
29 |
|
30 /** |
|
31 * Popular venues. |
|
32 * Consists of venue name, city, street, pin, country,url and geo info. |
|
33 */ |
|
34 class SMFCLIENT_EXPORT SmfVenue : QObject |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Gets the venue name |
|
42 */ |
|
43 QString getName(); |
|
44 |
|
45 /** |
|
46 * Sets the venue name |
|
47 */ |
|
48 void setName(QString& name); |
|
49 |
|
50 /** |
|
51 * Gets the city name |
|
52 */ |
|
53 QString getCity(); |
|
54 |
|
55 /** |
|
56 * Sets the city name |
|
57 */ |
|
58 void setCity(QString& name); |
|
59 |
|
60 /** |
|
61 * Gets the Street name |
|
62 */ |
|
63 QString getStreet(); |
|
64 |
|
65 /** |
|
66 * Sets the Street name |
|
67 */ |
|
68 void setStreet(QString& name); |
|
69 |
|
70 /** |
|
71 * Gets the Pin |
|
72 */ |
|
73 QString getPin(); |
|
74 |
|
75 /** |
|
76 * Sets the Pin |
|
77 */ |
|
78 void setPin(QString& name); |
|
79 |
|
80 /** |
|
81 * Gets the Country name |
|
82 */ |
|
83 QString getCountry(); |
|
84 |
|
85 /** |
|
86 * Sets the Country name |
|
87 */ |
|
88 void setCountry(QString& name); |
|
89 |
|
90 /** |
|
91 * Gets the geo info |
|
92 */ |
|
93 QtMobility::QGeoPositionInfo getGeo(); |
|
94 |
|
95 /** |
|
96 * Sets the geo info |
|
97 */ |
|
98 void setGeo(QtMobility::QGeoPositionInfo& geo); |
|
99 |
|
100 /** |
|
101 * Gets the url |
|
102 */ |
|
103 QUrl getUrl(); |
|
104 |
|
105 /** |
|
106 * Sets the url |
|
107 */ |
|
108 void setUrl(QUrl& url); |
|
109 |
|
110 |
|
111 private: |
|
112 QString m_name; |
|
113 QString m_city; |
|
114 QString m_street; |
|
115 QString m_pin; |
|
116 QString m_country; |
|
117 QtMobility::QGeoPositionInfo m_geo; |
|
118 QUrl m_url; |
|
119 }; |
|
120 |
|
121 /** |
|
122 * Externalization |
|
123 */ |
|
124 QDataStream &operator<<(QDataStream &, const SmfVenue&); |
|
125 /** |
|
126 * Internalization |
|
127 */ |
|
128 QDataStream &operator>>(QDataStream &, SmfVenue&); |
|
129 #endif /* SMFVENUE_H_ */ |