smf/smfservermodule/smfclient/common/smfplaylist_p.h
changeset 10 1d94eb8df9c2
parent 9 b85b0c039c14
equal deleted inserted replaced
9:b85b0c039c14 10:1d94eb8df9c2
     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 		}
       
    55   
       
    56 	QList<SmfTrackInfo> m_trackList;// list of tracks
       
    57 	QString m_title;				// playlist name
       
    58 	QDateTime m_creationDate;		// creation date
       
    59 	QString m_playlistId;
       
    60 	
       
    61 };
       
    62 
       
    63 #endif /* SMFPLAYLIST_P_H_ */