smf/inc/common/smfmusic/smfplaylist_p.h
changeset 3 0446eb7b28aa
child 5 edb9dc8273d9
equal deleted inserted replaced
2:86af6c333601 3:0446eb7b28aa
       
     1 /**
       
     2  * Copyright (c) 2010 Sasken Communication Technologies Ltd.
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of the "Eclipse Public License v1.0" 
       
     6  * which accompanies  this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html"
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
       
    11  *
       
    12  * Contributors:
       
    13  * Manasij Roy, Nalina Hariharan
       
    14  * 
       
    15  * Description:
       
    16  * Private class implemented for implicit sharing of SmfPlaylist class
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef SMFPLAYLIST_P_H_
       
    21 #define SMFPLAYLIST_P_H_
       
    22 
       
    23 #include <smftrackinfo.h>
       
    24 #include <QSharedData>
       
    25 
       
    26 class SmfPlaylistPrivate : public QSharedData
       
    27 {
       
    28 public:
       
    29 	/**
       
    30 	 * Constructor
       
    31 	 */
       
    32 	SmfPlaylistPrivate( ) { 
       
    33 		m_trackList.clear(); 
       
    34 		m_title.clear();
       
    35 		m_playlistId.clear();
       
    36 	}
       
    37 	
       
    38 	/**
       
    39 	 * Copy Consturctor
       
    40 	 * @param aOther The reference object to be copy constructed
       
    41 	 */
       
    42 	SmfPlaylistPrivate( const SmfPlaylistPrivate &aOther ) : 
       
    43 		QSharedData ( aOther ), 
       
    44 		m_trackList ( aOther.m_trackList ), 
       
    45 		m_title ( aOther.m_title ),
       
    46 		m_creationDate ( aOther.m_creationDate ),
       
    47 		m_playlistId ( aOther.m_playlistId ) 	{ }
       
    48 	
       
    49 	/**
       
    50 	 * Destructor
       
    51 	 */
       
    52 	~SmfPlaylistPrivate( );
       
    53   
       
    54 	QList<SmfTrackInfo> m_trackList;// list of tracks
       
    55 	QString m_title;				// playlist name
       
    56 	QDateTime m_creationDate;		// creation date
       
    57 	QString m_playlistId;
       
    58 	
       
    59 };
       
    60 
       
    61 #endif /* SMFPLAYLIST_P_H_ */