example/clientapi/smf/inc/common/smfmusic/smfplaylist.h
changeset 1 4b1e636e8a71
child 2 86af6c333601
equal deleted inserted replaced
0:5d2360e70d9f 1:4b1e636e8a71
       
     1 /**
       
     2  * @file	smfplaylist.h
       
     3  * @author  Nalina Hariharan,Manasij Roy Sasken Communication Technologies Ltd - Initial contribution
       
     4  * @version 1.0
       
     5  *
       
     6  * @section LICENSE
       
     7  *
       
     8  * Copyright (c) 2010 Sasken Communication Technologies Ltd. 
       
     9  * All rights reserved.
       
    10  * This component and the accompanying materials are made available 
       
    11  * under the terms of the "{License}" 
       
    12  * which accompanies  this distribution, and is available 
       
    13  * at the URL "{LicenseUrl}".
       
    14  * 
       
    15  * @section DESCRIPTION
       
    16  *
       
    17  * The playlist class represents an instance of a playlist
       
    18  */
       
    19 
       
    20 #ifndef SMFPLAYLIST_H_
       
    21 #define SMFPLAYLIST_H_
       
    22 
       
    23 #include <smftrackinfo.h>
       
    24 #include <qdatastream.h>
       
    25 
       
    26 /**
       
    27  * The playlist class represents an instance of a playlist
       
    28  */
       
    29 class SmfPlaylist : public QObject
       
    30 	{
       
    31 	Q_OBJECT
       
    32 public:
       
    33 	/**
       
    34 	 * Constructor with default argument
       
    35 	 * @param aParent The parent object
       
    36 	 */
       
    37 	SmfPlaylist( QObject *aParent = 0 );
       
    38 	
       
    39 	/**
       
    40 	 * Destructor
       
    41 	 */
       
    42 	~SmfPlaylist( );
       
    43 	
       
    44 	/**
       
    45 	 * Method to get the list of tracks in the playlist
       
    46 	 * @param aList The list of tracks in the playlist
       
    47 	 */
       
    48 	void getTrackList( QList<SmfTrackInfo>& aList );
       
    49 	
       
    50 	/**
       
    51 	 * Method to get the playlist title
       
    52 	 * @param aTitle The title of the playlist
       
    53 	 */
       
    54 	void getPlayListTitle( QString &aTitle );
       
    55 	
       
    56 	/**
       
    57 	 * Method to get the creation date of the playlist
       
    58 	 * @param aDate The date and time of creation of the playlist
       
    59 	 */
       
    60 	void getCreationDate( QDateTime &aDate );
       
    61 	
       
    62 	/**
       
    63 	 * Method to get the id of the playlist
       
    64 	 * @param aId The ID value 
       
    65 	 */
       
    66 	void getId( QString &aId );
       
    67 	
       
    68 	/**
       
    69 	 * Method to set the list of tracks in the playlist
       
    70 	 * @param aList The new list of tracks in the playlist
       
    71 	 */
       
    72 	void setTrackList( const QList<SmfTrackInfo> &aList );
       
    73 	
       
    74 	/**
       
    75 	 * Method to set the playlist title
       
    76 	 * @param aTitle The new title of the playlist
       
    77 	 */
       
    78 	void setPlayListTitle( const QString &aTitle );
       
    79 	
       
    80 	/**
       
    81 	 * Method to set the creation date of the playlist
       
    82 	 * @param aDate The new date and time of creation of the playlist
       
    83 	 */
       
    84 	void setCreationDate( const QDateTime &aDate );
       
    85 	
       
    86 private:
       
    87 	QList<SmfTrackInfo> m_trackList;	// list of tracks
       
    88 	QString m_title;				// playlist name
       
    89 	QDateTime m_creationDate;		// creation date
       
    90 	QString m_playlistId;
       
    91 	
       
    92 	};
       
    93  /**
       
    94   * Externalization
       
    95   */
       
    96  QDataStream &operator<<(QDataStream &, const SmfPlaylist &);
       
    97  /**
       
    98   * Internalization
       
    99   */
       
   100  QDataStream &operator>>(QDataStream &, SmfPlaylist &);
       
   101  
       
   102 #endif /* SMFPLAYLIST_H_ */