equal
deleted
inserted
replaced
29 |
29 |
30 /** |
30 /** |
31 * @ingroup smf_common_group |
31 * @ingroup smf_common_group |
32 * The SmfAlbum class represents a music album |
32 * The SmfAlbum class represents a music album |
33 */ |
33 */ |
34 class SMFCLIENT_EXPORT SmfAlbum : public QObject |
34 class SMFCLIENT_EXPORT SmfAlbum |
35 { |
35 { |
36 Q_OBJECT |
|
37 public: |
36 public: |
38 /** |
37 /** |
39 * Constructor with default argument |
38 * Constructor with default argument |
40 * @param aParent The parent object |
|
41 */ |
39 */ |
42 SmfAlbum( QObject *aParent = 0 ); |
40 SmfAlbum( ); |
43 |
41 |
44 /** |
42 /** |
45 * Copy Constructor |
43 * Copy Constructor |
46 * @param aOther The reference object |
44 * @param aOther The reference object |
47 */ |
45 */ |
81 * Method to get the id of the album |
79 * Method to get the id of the album |
82 * @return The ID value |
80 * @return The ID value |
83 */ |
81 */ |
84 QString id( ) const; |
82 QString id( ) const; |
85 |
83 |
|
84 /** |
|
85 * Method to set the album name |
|
86 * @param aName The album name |
|
87 */ |
|
88 void setName( const QString &aName ); |
|
89 |
|
90 /** |
|
91 * Method to set the album's image |
|
92 * @param aImage The album's image |
|
93 */ |
|
94 void setImage( const QImage &aImage ); |
|
95 |
|
96 /** |
|
97 * Method to set the artist names |
|
98 * @param aArtists The list of artists in the album |
|
99 */ |
|
100 void setArtists( const SmfArtists &aArtists ); |
|
101 |
|
102 /** |
|
103 * Method to set the id of the album |
|
104 * @param aId The ID value |
|
105 */ |
|
106 void setId( const QString &aId ); |
|
107 |
86 private: |
108 private: |
87 QSharedDataPointer<SmfAlbumPrivate> d; |
109 QSharedDataPointer<SmfAlbumPrivate> d; |
88 |
110 |
89 friend QDataStream &operator<<( QDataStream &aDataStream, |
111 friend QDataStream &operator<<( QDataStream &aDataStream, |
90 const SmfAlbum &aAlbum ); |
112 const SmfAlbum &aAlbum ); |
113 * @return reference to the stream |
135 * @return reference to the stream |
114 */ |
136 */ |
115 QDataStream &operator>>( QDataStream &aDataStream, |
137 QDataStream &operator>>( QDataStream &aDataStream, |
116 SmfAlbum &aAlbum); |
138 SmfAlbum &aAlbum); |
117 |
139 |
|
140 // Make the class SmfAlbum known to QMetaType, so that as to register it. |
|
141 Q_DECLARE_METATYPE(SmfAlbum) |
118 |
142 |
119 #endif /* SMFALBUM_H_ */ |
143 #endif /* SMFALBUM_H_ */ |