equal
deleted
inserted
replaced
45 SmfArtists& SmfArtists::operator=( const SmfArtists &aOther ) |
45 SmfArtists& SmfArtists::operator=( const SmfArtists &aOther ) |
46 { |
46 { |
47 d->m_names = aOther.d->m_names; |
47 d->m_names = aOther.d->m_names; |
48 d->m_image = aOther.d->m_image; |
48 d->m_image = aOther.d->m_image; |
49 d->m_url = aOther.d->m_url; |
49 d->m_url = aOther.d->m_url; |
|
50 d->m_tags = aOther.d->m_tags; |
|
51 d->m_id = aOther.d->m_id; |
50 return *this; |
52 return *this; |
51 } |
53 } |
52 |
54 |
53 /** |
55 /** |
54 * Destructor |
56 * Destructor |
83 { |
85 { |
84 return d->m_url; |
86 return d->m_url; |
85 } |
87 } |
86 |
88 |
87 /** |
89 /** |
|
90 * Method to get the tags applied for artist(s) |
|
91 * @return list of tags, NULL if not supported |
|
92 */ |
|
93 QStringList SmfArtists::tags( ) const |
|
94 { |
|
95 return d->m_tags; |
|
96 } |
|
97 |
|
98 /** |
|
99 * Service specific Id for this artist(s), e.g. could be musicbrainz id for this artist |
|
100 * @return service specific id of the artists, NULL if not supported |
|
101 */ |
|
102 QString SmfArtists::id( ) const |
|
103 { |
|
104 return d->m_id; |
|
105 } |
|
106 |
|
107 /** |
88 * Method to set the artists names |
108 * Method to set the artists names |
89 * @param aList The list of artists names |
109 * @param aList The list of artists names |
90 */ |
110 */ |
91 void SmfArtists::setNames( const QStringList &aList ) |
111 void SmfArtists::setNames( const QStringList &aList ) |
92 { |
112 { |
108 */ |
128 */ |
109 void SmfArtists::setUrl( const QUrl &aUrl ) |
129 void SmfArtists::setUrl( const QUrl &aUrl ) |
110 { |
130 { |
111 d->m_url = aUrl; |
131 d->m_url = aUrl; |
112 } |
132 } |
113 |
133 |
|
134 /** |
|
135 * Method to set tags of the artists |
|
136 * @param aTags tags for the artists |
|
137 */ |
|
138 void SmfArtists::setTags( const QStringList &aTags ) |
|
139 { |
|
140 d->m_tags = aTags; |
|
141 } |
|
142 |
|
143 /** |
|
144 * Method to set the service specific ID of the artists |
|
145 * @param aId The id of the artists |
|
146 */ |
|
147 void SmfArtists::setId( const QString &aId ) |
|
148 { |
|
149 d->m_id = aId; |
|
150 } |
|
151 |
114 /** |
152 /** |
115 * Method for Externalization. Writes the SmfArtists object to |
153 * Method for Externalization. Writes the SmfArtists object to |
116 * the stream and returns a reference to the stream. |
154 * the stream and returns a reference to the stream. |
117 * @param aDataStream Stream to be written |
155 * @param aDataStream Stream to be written |
118 * @param aArtists The SmfArtists object to be externalized |
156 * @param aArtists The SmfArtists object to be externalized |
128 aDataStream<<aArtists.d->m_names; |
166 aDataStream<<aArtists.d->m_names; |
129 |
167 |
130 // Serialize d->m_url |
168 // Serialize d->m_url |
131 aDataStream<<aArtists.d->m_url; |
169 aDataStream<<aArtists.d->m_url; |
132 |
170 |
|
171 // Serialize d->m_tags |
|
172 aDataStream<<aArtists.d->m_tags; |
|
173 |
|
174 // Serialize d->m_id |
|
175 aDataStream<<aArtists.d->m_id; |
|
176 |
133 return aDataStream; |
177 return aDataStream; |
134 } |
178 } |
135 |
179 |
136 /** |
180 /** |
137 * Method for Internalization. Reads a SmfArtists object from |
181 * Method for Internalization. Reads a SmfArtists object from |
150 aDataStream>>aArtists.d->m_names; |
194 aDataStream>>aArtists.d->m_names; |
151 |
195 |
152 // Deserialize d->m_url |
196 // Deserialize d->m_url |
153 aDataStream>>aArtists.d->m_url; |
197 aDataStream>>aArtists.d->m_url; |
154 |
198 |
|
199 // Deserialize d->m_tags |
|
200 aDataStream>>aArtists.d->m_tags; |
|
201 |
|
202 // Deserialize d->m_id |
|
203 aDataStream>>aArtists.d->m_id; |
|
204 |
155 return aDataStream; |
205 return aDataStream; |
156 } |
206 } |
157 |
207 |