|
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 SmfPictureAlbum class |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef SMFPICTUREALBUM_P_H_ |
|
21 #define SMFPICTUREALBUM_P_H_ |
|
22 |
|
23 |
|
24 #include <QDateTime> |
|
25 #include <QStringList> |
|
26 #include <QUrl> |
|
27 #include <QSharedData> |
|
28 #include <smfclientglobal.h> |
|
29 #include <smfpicturealbum.h> |
|
30 |
|
31 class SmfPictureAlbumPrivate : public QSharedData |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Constructor |
|
36 */ |
|
37 SmfPictureAlbumPrivate( ) { |
|
38 m_title.clear(); // album title |
|
39 m_description.clear(); // description |
|
40 m_albumVisibility = SMFVisibilityPublic;// album visibility |
|
41 m_comments.clear(); // comments |
|
42 m_keywords.clear(); // tags |
|
43 m_url.clear(); // url |
|
44 m_picCount=0; //count of pictures |
|
45 m_albumId.clear(); // unique ID of the album, service provider specific |
|
46 } |
|
47 |
|
48 |
|
49 /** |
|
50 * Copy Consturctor |
|
51 * @param aOther The reference object to be copy constructed |
|
52 */ |
|
53 SmfPictureAlbumPrivate( const SmfPictureAlbumPrivate &aOther ) : |
|
54 QSharedData ( aOther ), |
|
55 m_albumId ( aOther.m_albumId), |
|
56 m_title ( aOther.m_title ), |
|
57 m_description ( aOther.m_description ), |
|
58 m_albumVisibility ( aOther.m_albumVisibility ), |
|
59 m_postedOn ( aOther.m_postedOn ), |
|
60 m_comments ( aOther.m_comments ), |
|
61 m_keywords ( aOther.m_keywords ), |
|
62 m_url ( aOther.m_url ), |
|
63 m_picCount (aOther.m_picCount), |
|
64 m_thumbnail ( aOther.m_thumbnail ) { } |
|
65 |
|
66 /** |
|
67 * Destructor |
|
68 */ |
|
69 ~SmfPictureAlbumPrivate( ) |
|
70 { |
|
71 } |
|
72 |
|
73 /** |
|
74 * Member variables |
|
75 */ |
|
76 QString m_title; // album title |
|
77 QString m_description; // description |
|
78 SmfPictureVisibility m_albumVisibility;// album visibility |
|
79 QDateTime m_postedOn; // date posted |
|
80 QList<SmfComment> m_comments; // comments |
|
81 QStringList m_keywords; // tags |
|
82 QUrl m_url; // url |
|
83 QImage m_thumbnail; // thumbnail data |
|
84 quint32 m_picCount; //count of pictures |
|
85 QString m_albumId; // unique ID of the album, service provider specific |
|
86 }; |
|
87 |
|
88 #endif /* SMFPICTUREALBUM_P_H_ */ |