example/clientapi/smf/inc/common/smfmusic/smfartists_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 SmfArtists class
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef SMFARTISTS_P_H_
       
    21 #define SMFARTISTS_P_H_
       
    22 
       
    23 #include <QImage>
       
    24 #include <QUrl>
       
    25 #include <QSharedData>
       
    26 
       
    27 class SmfArtistsPrivate : public QSharedData
       
    28 {
       
    29 public:
       
    30 	/**
       
    31 	 * Constructor
       
    32 	 */
       
    33 	SmfArtistsPrivate( ) { 
       
    34 		m_names.clear(); 
       
    35 		m_url.clear();
       
    36 	}
       
    37 	
       
    38 	/**
       
    39 	 * Copy Consturctor
       
    40 	 * @param aOther The reference object to be copy constructed
       
    41 	 */
       
    42 	SmfArtistsPrivate( const SmfArtistsPrivate &aOther ) : 
       
    43 		QSharedData ( aOther ), 
       
    44 		m_names ( aOther.m_names ), 
       
    45 		m_image ( aOther.m_image ),
       
    46 		m_url ( aOther.m_url ) 	{ }
       
    47 	
       
    48 	/**
       
    49 	 * Destructor
       
    50 	 */
       
    51 	~SmfArtistsPrivate( );
       
    52   
       
    53 	QStringList	m_names;	// artist names
       
    54 	QImage 		m_image;	// image
       
    55 	QUrl 		m_url;		// url
       
    56 };
       
    57 
       
    58 
       
    59 #endif /* SMFARTISTS_P_H_ */