smf/inc/common/smfmusic/smfartists.h
changeset 5 edb9dc8273d9
parent 3 0446eb7b28aa
equal deleted inserted replaced
4:969092730d34 5:edb9dc8273d9
    30 
    30 
    31 /**
    31 /**
    32  * @ingroup smf_common_group
    32  * @ingroup smf_common_group
    33  * The SmfArtists class represents the artists in a track or an album
    33  * The SmfArtists class represents the artists in a track or an album
    34  */
    34  */
    35 class SMFCLIENT_EXPORT SmfArtists : public QObject
    35 class SMFCLIENT_EXPORT SmfArtists
    36 	{
    36 	{
    37 	Q_OBJECT
       
    38 public:
    37 public:
    39 	/**
    38 	/**
    40 	 * Constructor with default argument
    39 	 * Constructor with default argument
    41 	 * @param aParent The parent object
       
    42 	 */
    40 	 */
    43 	SmfArtists( QObject *aParent = 0 );
    41 	SmfArtists();
    44 	
    42 	
    45 	/**
    43 	/**
    46 	 * Copy Constructor
    44 	 * Copy Constructor
    47 	 * @param aOther The reference object
    45 	 * @param aOther The reference object
    48 	 */
    46 	 */
    75 	 * Method to get the url of the artists
    73 	 * Method to get the url of the artists
    76 	 * @return The url of the artists
    74 	 * @return The url of the artists
    77 	 */
    75 	 */
    78 	QUrl url( ) const;
    76 	QUrl url( ) const;
    79 		
    77 		
       
    78 	/**
       
    79 	 * Method to set the artists names
       
    80 	 * @param aList The list of artists names
       
    81 	 */
       
    82 	void setNames( const QStringList &aList );
       
    83 	
       
    84 	/**
       
    85 	 * Method to set the image of the artists
       
    86 	 * @param aImage The image of the artists
       
    87 	 */
       
    88 	void setImage( const QImage &aImage );
       
    89 	
       
    90 	/**
       
    91 	 * Method to set the url of the artists
       
    92 	 * @param aUrl The url of the artists
       
    93 	 */
       
    94 	void setUrl( const QUrl &aUrl );
       
    95 		
    80 private:
    96 private:
    81 	QSharedDataPointer<SmfArtistsPrivate> d;
    97 	QSharedDataPointer<SmfArtistsPrivate> d;
    82 	
    98 	
    83 	friend QDataStream &operator<<( QDataStream &aDataStream, 
    99 	friend QDataStream &operator<<( QDataStream &aDataStream, 
    84 			const SmfArtists &aArtists );
   100 			const SmfArtists &aArtists );
   107  * @return reference to the stream
   123  * @return reference to the stream
   108  */
   124  */
   109 QDataStream &operator>>( QDataStream &aDataStream, 
   125 QDataStream &operator>>( QDataStream &aDataStream, 
   110 		SmfArtists &aArtists);
   126 		SmfArtists &aArtists);
   111 
   127 
       
   128 // Make the class SmfArtists known to QMetaType, so that as to register it.
       
   129 Q_DECLARE_METATYPE(SmfArtists)
   112 
   130 
   113 #endif /* SMFARTISTS_H_ */
   131 #endif /* SMFARTISTS_H_ */