smf/smfservermodule/smfclient/common/smfartists_p.h
changeset 7 be09cf1f39dd
equal deleted inserted replaced
6:c39a6cfd1fb9 7:be09cf1f39dd
       
     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 <QStringList>
       
    26 #include <QSharedData>
       
    27 
       
    28 class SmfArtistsPrivate : public QSharedData
       
    29 {
       
    30 public:
       
    31 	/**
       
    32 	 * Constructor
       
    33 	 */
       
    34 	SmfArtistsPrivate( ) { 
       
    35 		m_names.clear(); 
       
    36 		m_url.clear();
       
    37 	}
       
    38 	
       
    39 	/**
       
    40 	 * Copy Consturctor
       
    41 	 * @param aOther The reference object to be copy constructed
       
    42 	 */
       
    43 	SmfArtistsPrivate( const SmfArtistsPrivate &aOther ) : 
       
    44 		QSharedData ( aOther ), 
       
    45 		m_names ( aOther.m_names ), 
       
    46 		m_image ( aOther.m_image ),
       
    47 		m_url ( aOther.m_url ) 	{ }
       
    48 	
       
    49 	/**
       
    50 	 * Destructor
       
    51 	 */
       
    52 	~SmfArtistsPrivate( )
       
    53 		{
       
    54 		}
       
    55   
       
    56 	QStringList	m_names;	// artist names
       
    57 	QImage 		m_image;	// image
       
    58 	QUrl 		m_url;		// url
       
    59 };
       
    60 
       
    61 
       
    62 #endif /* SMFARTISTS_P_H_ */