smf/inc/common/smfmusic/smfplaylist.h
changeset 5 edb9dc8273d9
parent 3 0446eb7b28aa
equal deleted inserted replaced
4:969092730d34 5:edb9dc8273d9
    29 
    29 
    30 /**
    30 /**
    31  * @ingroup smf_common_group
    31  * @ingroup smf_common_group
    32  * The playlist class represents an instance of a playlist
    32  * The playlist class represents an instance of a playlist
    33  */
    33  */
    34 class SMFCLIENT_EXPORT SmfPlaylist : public QObject
    34 class SMFCLIENT_EXPORT SmfPlaylist
    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 	SmfPlaylist( QObject *aParent = 0 );
    40 	SmfPlaylist();
    43 	
    41 	
    44 	/**
    42 	/**
    45 	 * Copy Constructor
    43 	 * Copy Constructor
    46 	 * @param aOther The reference object
    44 	 * @param aOther The reference object
    47 	 */
    45 	 */
    48 	SmfPlaylist( const SmfPlaylist &aOther );
    46 	SmfPlaylist( const SmfPlaylist &aOther );
       
    47 	
       
    48 	/**
       
    49 	 * Overloaded = operator
       
    50 	 * @param aOther The reference object
       
    51 	 */
       
    52 	SmfPlaylist& operator=( const SmfPlaylist &aOther );
    49 	
    53 	
    50 	/**
    54 	/**
    51 	 * Destructor
    55 	 * Destructor
    52 	 */
    56 	 */
    53 	~SmfPlaylist( );
    57 	~SmfPlaylist( );
    92 	 * Method to set the creation date of the playlist
    96 	 * Method to set the creation date of the playlist
    93 	 * @param aDate The new date and time of creation of the playlist
    97 	 * @param aDate The new date and time of creation of the playlist
    94 	 */
    98 	 */
    95 	void setCreationDate( const QDateTime &aDate );
    99 	void setCreationDate( const QDateTime &aDate );
    96 	
   100 	
       
   101 	/**
       
   102 	 * Method to set the id of the playlist
       
   103 	 * @param aId The ID value 
       
   104 	 */
       
   105 	void setId( const QString &aId);
       
   106 	
    97 private:
   107 private:
    98 	QSharedDataPointer<SmfPlaylistPrivate> d;
   108 	QSharedDataPointer<SmfPlaylistPrivate> d;
    99 	
   109 	
   100 	friend QDataStream &operator<<( QDataStream &aDataStream, 
   110 	friend QDataStream &operator<<( QDataStream &aDataStream, 
   101 			const SmfPlaylist &aPlaylist );
   111 			const SmfPlaylist &aPlaylist );
   124  * @return reference to the stream
   134  * @return reference to the stream
   125  */
   135  */
   126 QDataStream &operator>>( QDataStream &aDataStream, 
   136 QDataStream &operator>>( QDataStream &aDataStream, 
   127 		SmfPlaylist &aPlaylist);
   137 		SmfPlaylist &aPlaylist);
   128 
   138 
       
   139 
   129 // Make the class SmfPlaylist known to QMetaType, so that as to register it.
   140 // Make the class SmfPlaylist known to QMetaType, so that as to register it.
   130 Q_DECLARE_METATYPE(SmfPlaylist)
   141 Q_DECLARE_METATYPE(SmfPlaylist)
   131 
   142 
   132 #endif /* SMFPLAYLIST_H_ */
   143 #endif /* SMFPLAYLIST_H_ */