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 SmfPicture class |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef SMFPICTURE_P_H_ |
|
21 #define SMFPICTURE_P_H_ |
|
22 |
|
23 |
|
24 #include <QDateTime> |
|
25 #include <QStringList> |
|
26 #include <QUrl> |
|
27 #include <QSharedData> |
|
28 #include <smfclientglobal.h> |
|
29 |
|
30 class SmfPicturePrivate : public QSharedData |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Constructor |
|
35 */ |
|
36 SmfPicturePrivate( ) { |
|
37 m_photoId.clear(); |
|
38 m_owner.clear(); |
|
39 m_title.clear(); |
|
40 m_description.clear(); |
|
41 m_comments.clear(); |
|
42 m_tags.clear(); |
|
43 m_url.clear(); |
|
44 m_caption.clear(); |
|
45 } |
|
46 |
|
47 /** |
|
48 * Copy Consturctor |
|
49 * @param aOther The reference object to be copy constructed |
|
50 */ |
|
51 SmfPicturePrivate( const SmfPicturePrivate &aOther ) : |
|
52 QSharedData ( aOther ), |
|
53 m_photoId ( aOther.m_photoId ), |
|
54 m_owner ( aOther.m_owner ), |
|
55 m_title ( aOther.m_title ), |
|
56 m_description ( aOther.m_description ), |
|
57 m_picVisibility ( aOther.m_picVisibility ), |
|
58 m_postedOn ( aOther.m_postedOn ), |
|
59 m_comments ( aOther.m_comments ), |
|
60 m_tags ( aOther.m_tags ), |
|
61 m_url ( aOther.m_url ), |
|
62 m_picture ( aOther.m_picture ), |
|
63 m_caption ( aOther.m_caption ) { } |
|
64 |
|
65 /** |
|
66 * Destructor |
|
67 */ |
|
68 ~SmfPicturePrivate( ); |
|
69 |
|
70 QString m_photoId; // unique ID of the picture, service provider specific |
|
71 QString m_owner; // owner of the picture |
|
72 QString m_title; // picture title |
|
73 QString m_description;// description |
|
74 SmfPictureVisibility m_picVisibility; // picture visibility |
|
75 QDateTime m_postedOn;// date posted |
|
76 QStringList m_comments;// comments |
|
77 QStringList m_tags; // tags |
|
78 QUrl m_url; // url |
|
79 QImage m_picture; // picture data as bytearray |
|
80 QString m_caption; // caption |
|
81 |
|
82 }; |
|
83 |
|
84 #endif /* SMFPICTURE_P_H_ */ |
|