diff -r 1cee9f1b95e0 -r a180113055cb smf/smfservermodule/smfcommon/smfartists.cpp --- a/smf/smfservermodule/smfcommon/smfartists.cpp Thu Sep 23 17:20:22 2010 +0530 +++ b/smf/smfservermodule/smfcommon/smfartists.cpp Thu Sep 23 17:43:31 2010 +0530 @@ -47,6 +47,8 @@ d->m_names = aOther.d->m_names; d->m_image = aOther.d->m_image; d->m_url = aOther.d->m_url; + d->m_tags = aOther.d->m_tags; + d->m_id = aOther.d->m_id; return *this; } @@ -85,6 +87,24 @@ } /** + * Method to get the tags applied for artist(s) + * @return list of tags, NULL if not supported + */ +QStringList SmfArtists::tags( ) const + { + return d->m_tags; + } + +/** + * Service specific Id for this artist(s), e.g. could be musicbrainz id for this artist + * @return service specific id of the artists, NULL if not supported + */ +QString SmfArtists::id( ) const + { + return d->m_id; + } + +/** * Method to set the artists names * @param aList The list of artists names */ @@ -110,7 +130,25 @@ { d->m_url = aUrl; } - + +/** + * Method to set tags of the artists + * @param aTags tags for the artists + */ +void SmfArtists::setTags( const QStringList &aTags ) + { + d->m_tags = aTags; + } + +/** + * Method to set the service specific ID of the artists + * @param aId The id of the artists + */ +void SmfArtists::setId( const QString &aId ) + { + d->m_id = aId; + } + /** * Method for Externalization. Writes the SmfArtists object to * the stream and returns a reference to the stream. @@ -130,6 +168,12 @@ // Serialize d->m_url aDataStream<m_url; + // Serialize d->m_tags + aDataStream<m_tags; + + // Serialize d->m_id + aDataStream<m_id; + return aDataStream; } @@ -152,6 +196,12 @@ // Deserialize d->m_url aDataStream>>aArtists.d->m_url; + // Deserialize d->m_tags + aDataStream>>aArtists.d->m_tags; + + // Deserialize d->m_id + aDataStream>>aArtists.d->m_id; + return aDataStream; }