18 */ |
18 */ |
19 |
19 |
20 #ifndef SMFALBUM_P_H_ |
20 #ifndef SMFALBUM_P_H_ |
21 #define SMFALBUM_P_H_ |
21 #define SMFALBUM_P_H_ |
22 |
22 |
|
23 #include <smfalbum.h> |
23 #include <smfartists.h> |
24 #include <smfartists.h> |
|
25 #include <smflocation.h> |
24 #include <QStringList> |
26 #include <QStringList> |
25 #include <QSharedData> |
27 #include <QSharedData> |
26 |
28 |
27 class SmfAlbumPrivate : public QSharedData |
29 class SmfAlbumPrivate : public QSharedData |
28 { |
30 { |
29 public: |
31 public: |
30 /** |
32 /** |
31 * Constructor |
33 * Constructor |
32 */ |
34 */ |
33 SmfAlbumPrivate( ) { |
35 SmfAlbumPrivate( ) { |
34 m_name.clear(); |
36 m_name.clear(); |
|
37 m_imageUrl.clear(); |
|
38 m_itemCount = 0; |
|
39 m_type = SmfAlbumUnspecified; |
35 m_albumId.clear(); |
40 m_albumId.clear(); |
36 |
41 m_secondaryId.clear(); |
37 } |
42 } |
38 |
43 |
39 /** |
44 /** |
40 * Copy Consturctor |
45 * Copy Consturctor |
41 * @param aOther The reference object to be copy constructed |
46 * @param aOther The reference object to be copy constructed |
42 */ |
47 */ |
43 SmfAlbumPrivate( const SmfAlbumPrivate &aOther ) : |
48 SmfAlbumPrivate( const SmfAlbumPrivate &aOther ) : |
44 QSharedData ( aOther ), |
49 QSharedData ( aOther ), |
45 m_name ( aOther.m_name ), |
50 m_name ( aOther.m_name ), |
46 m_image ( aOther.m_image ), |
51 m_imageUrl ( aOther.m_imageUrl ), |
47 m_artists ( aOther.m_artists ), |
52 m_artists ( aOther.m_artists ), |
48 m_albumId ( aOther.m_albumId ) { } |
53 m_location ( aOther.m_location ), |
|
54 m_itemCount ( aOther.m_itemCount ), |
|
55 m_type ( aOther.m_type ), |
|
56 m_albumId ( aOther.m_albumId ), |
|
57 m_secondaryId ( aOther.m_secondaryId ) { } |
49 |
58 |
50 /** |
59 /** |
51 * Destructor |
60 * Destructor |
52 */ |
61 */ |
53 ~SmfAlbumPrivate( ) |
62 ~SmfAlbumPrivate( ) |
54 { |
63 { |
55 } |
64 } |
56 |
65 |
57 QString m_name; // album name |
66 QString m_name; // album name |
58 QImage m_image; // album image |
67 QUrl m_imageUrl; // album's image url |
59 SmfArtists m_artists; // album's artists |
68 SmfArtists m_artists; // album's artists |
60 QString m_albumId; // album Id |
69 SmfLocation m_location; // album's location |
|
70 int m_itemCount; // count of items in the album |
|
71 SmfAlbumMediaType m_type;// type of media in the album |
|
72 QString m_albumId; // album Id |
|
73 QString m_secondaryId; // the secondary id of the album, e.g.- |
|
74 //-musicbrainz id of the album for a music album |
61 |
75 |
62 }; |
76 }; |
63 |
77 |
64 #endif /* SMFALBUM_P_H_ */ |
78 #endif /* SMFALBUM_P_H_ */ |