|
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 SmfEvent class |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef SMFEVENT_P_H_ |
|
21 #define SMFEVENT_P_H_ |
|
22 |
|
23 |
|
24 #include <smflocation.h> |
|
25 #include <smfartists.h> |
|
26 #include <QStringList> |
|
27 #include <QSharedData> |
|
28 |
|
29 class SmfEventPrivate : public QSharedData |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Constructor |
|
34 */ |
|
35 SmfEventPrivate( ) { |
|
36 m_name.clear(); |
|
37 m_url.clear(); |
|
38 m_eventId.clear(); |
|
39 |
|
40 } |
|
41 |
|
42 /** |
|
43 * Copy Consturctor |
|
44 * @param aOther The reference object to be copy constructed |
|
45 */ |
|
46 SmfEventPrivate( const SmfEventPrivate &aOther ) : |
|
47 QSharedData ( aOther ), |
|
48 m_name ( aOther.m_name ), |
|
49 m_dateTime ( aOther.m_dateTime ), |
|
50 m_duration ( aOther.m_duration ), |
|
51 m_artists ( aOther.m_artists ), |
|
52 m_venue ( aOther.m_venue ), |
|
53 m_url ( aOther.m_url ), |
|
54 m_eventId ( aOther.m_eventId ) { } |
|
55 |
|
56 /** |
|
57 * Destructor |
|
58 */ |
|
59 ~SmfEventPrivate( ) |
|
60 { |
|
61 } |
|
62 |
|
63 QString m_name; // event name |
|
64 QDateTime m_dateTime; // event date and time |
|
65 QTime m_duration; // event duration |
|
66 SmfArtists m_artists; // event artist names |
|
67 SmfLocation m_venue; // event venue |
|
68 QUrl m_url; // ticket url |
|
69 QString m_eventId; // event Id |
|
70 |
|
71 }; |
|
72 |
|
73 #endif /* SMFEVENT_P_H_ */ |