example/clientapi/smf/inc/common/smfmusic/smfmusicrating_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 SmfMusicRating class
       
    17  *
       
    18  */
       
    19 
       
    20 #ifndef SMFMUSICRATING_P_H_
       
    21 #define SMFMUSICRATING_P_H_
       
    22 
       
    23 #include <QSharedData>
       
    24 
       
    25 class SmfMusicRatingPrivate : public QSharedData
       
    26 {
       
    27 public:
       
    28 	/**
       
    29 	 * Constructor
       
    30 	 */
       
    31 	SmfMusicRatingPrivate( int aMax, int aMin ) { 
       
    32 		m_rating = 0;
       
    33 		m_max = aMax;
       
    34 		m_min = aMin;
       
    35 	}
       
    36 	
       
    37 	/**
       
    38 	 * Copy Consturctor
       
    39 	 * @param aOther The reference object to be copy constructed
       
    40 	 */
       
    41 	SmfMusicRatingPrivate( const SmfMusicRatingPrivate &aOther ) : 
       
    42 		QSharedData ( aOther ), 
       
    43 		m_rating ( aOther.m_rating ),
       
    44 		m_max ( aOther.m_max ),
       
    45 		m_min ( aOther.m_min )  { }
       
    46 	
       
    47 	/**
       
    48 	 * Destructor
       
    49 	 */
       
    50 	~SmfMusicRatingPrivate( );
       
    51   
       
    52 	int m_rating;	// rating
       
    53 	int m_max;		// max rating
       
    54 	int m_min;		// min rating
       
    55 	
       
    56 };
       
    57 
       
    58 #endif /* SMFMUSICRATING_P_H_ */