example/clientapi/smf/inc/common/smfmusic/smfmusicprofile_p.h
changeset 3 0446eb7b28aa
parent 2 86af6c333601
child 4 969092730d34
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 SmfMusicProfile class
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef SMFMUSICPROFILE_P_H_
       
    21 #define SMFMUSICPROFILE_P_H_
       
    22 
       
    23 
       
    24 #include <smftrackinfo.h>
       
    25 #include <smfevent.h>
       
    26 #include <QSharedData>
       
    27 
       
    28 class SmfMusicProfilePrivate : public QSharedData
       
    29 {
       
    30 public:
       
    31 	/**
       
    32 	 * Constructor
       
    33 	 */
       
    34 	SmfMusicProfilePrivate( ) { 
       
    35 		m_usage.clear(); 
       
    36 		m_interest.clear();
       
    37 		m_events.clear();
       
    38 		m_profileId.clear();
       
    39 	}
       
    40 	
       
    41 	/**
       
    42 	 * Copy Consturctor
       
    43 	 * @param aOther The reference object to be copy constructed
       
    44 	 */
       
    45 	SmfMusicProfilePrivate( const SmfMusicProfilePrivate &aOther ) : 
       
    46 		QSharedData ( aOther ), 
       
    47 		m_usage ( aOther.m_usage ), 
       
    48 		m_interest ( aOther.m_interest ),
       
    49 		m_events ( aOther.m_events ),
       
    50 		m_profileId ( aOther.m_profileId ) 	{ }
       
    51 	
       
    52 	/**
       
    53 	 * Destructor
       
    54 	 */
       
    55 	~SmfMusicProfilePrivate( );
       
    56   
       
    57 	QList<SmfTrackInfo> m_usage;	// usage tracks
       
    58 	QList<SmfTrackInfo> m_interest;// interested tracks
       
    59 	QList<SmfEvent> m_events;		// events list
       
    60 	QString m_profileId;
       
    61 	
       
    62 };
       
    63 
       
    64 #endif /* SMFMUSICPROFILE_P_H_ */