smf/inc/common/smfmusic/smfmusicprofile.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 music profile class represents a user's profile in music site
    33  * The music profile class represents a user's profile in music site
    34  */
    34  */
    35 class SMFCLIENT_EXPORT SmfMusicProfile : public QObject
    35 class SMFCLIENT_EXPORT SmfMusicProfile
    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 	SmfMusicProfile( QObject *aParent = 0 );
    41 	SmfMusicProfile( );
    44 	
    42 	
    45 	/**
    43 	/**
    46 	 * Copy Constructor
    44 	 * Copy Constructor
    47 	 * @param aOther The reference object
    45 	 * @param aOther The reference object
    48 	 */
    46 	 */
    49 	SmfMusicProfile( const SmfMusicProfile &aOther );
    47 	SmfMusicProfile( const SmfMusicProfile &aOther );
       
    48 	
       
    49 	/**
       
    50 	 * Overloaded = operator
       
    51 	 * @param aOther The reference object
       
    52 	 */
       
    53 	SmfMusicProfile& operator=( const SmfMusicProfile &aOther );
    50 	
    54 	
    51 	/**
    55 	/**
    52 	 * Destructor
    56 	 * Destructor
    53 	 */
    57 	 */
    54 	~SmfMusicProfile( );
    58 	~SmfMusicProfile( );
    87 	 * Method to set the user's interested tracks
    91 	 * Method to set the user's interested tracks
    88 	 * @param aInterest The users new interested track list
    92 	 * @param aInterest The users new interested track list
    89 	 */
    93 	 */
    90 	void setInterestInfo( const QList<SmfTrackInfo>& aInterest );
    94 	void setInterestInfo( const QList<SmfTrackInfo>& aInterest );
    91 
    95 
       
    96 	/**
       
    97 	 * Method to set the user events as list of SmfEvents
       
    98 	 * @param aList The list of events
       
    99 	 */
       
   100 	void setUserEvents( const QList<SmfEvent> &aList );
       
   101 	
       
   102 	/**
       
   103 	 * Method to set the id of the music profile
       
   104 	 * @param aId The ID value 
       
   105 	 */
       
   106 	void setId( const QString &aId );
       
   107 
    92 private:
   108 private:
    93 	QSharedDataPointer<SmfMusicProfilePrivate> d;
   109 	QSharedDataPointer<SmfMusicProfilePrivate> d;
    94 
   110 
    95 	friend QDataStream &operator<<( QDataStream &aDataStream, 
   111 	friend QDataStream &operator<<( QDataStream &aDataStream, 
    96 			const SmfMusicProfile &aProfile );
   112 			const SmfMusicProfile &aProfile );
   119  * @return reference to the stream
   135  * @return reference to the stream
   120  */
   136  */
   121 QDataStream &operator>>( QDataStream &aDataStream, 
   137 QDataStream &operator>>( QDataStream &aDataStream, 
   122 		SmfMusicProfile &aProfile);
   138 		SmfMusicProfile &aProfile);
   123 
   139 
       
   140 
   124 // Make the class SmfMusicProfile known to QMetaType, so that as to register it.
   141 // Make the class SmfMusicProfile known to QMetaType, so that as to register it.
   125 Q_DECLARE_METATYPE(SmfMusicProfile)
   142 Q_DECLARE_METATYPE(SmfMusicProfile)
   126 
   143 
   127 #endif /* SMFMUSICPROFILE_H_ */
   144 #endif /* SMFMUSICPROFILE_H_ */