18
|
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 |
#include <smfmusicrating.h>
|
|
25 |
|
|
26 |
class SmfMusicRatingPrivate : public QSharedData
|
|
27 |
{
|
|
28 |
public:
|
|
29 |
/**
|
|
30 |
* Constructor
|
|
31 |
*/
|
|
32 |
SmfMusicRatingPrivate( ) {
|
|
33 |
m_rating = 0;
|
|
34 |
m_max = SMF_MAX_RATING;
|
|
35 |
m_min = SMF_MIN_RATING;
|
|
36 |
}
|
|
37 |
|
|
38 |
/**
|
|
39 |
* Copy Consturctor
|
|
40 |
* @param aOther The reference object to be copy constructed
|
|
41 |
*/
|
|
42 |
SmfMusicRatingPrivate( const SmfMusicRatingPrivate &aOther ) :
|
|
43 |
QSharedData ( aOther ),
|
|
44 |
m_rating ( aOther.m_rating ),
|
|
45 |
m_max ( aOther.m_max ),
|
|
46 |
m_min ( aOther.m_min ) { }
|
|
47 |
|
|
48 |
/**
|
|
49 |
* Destructor
|
|
50 |
*/
|
|
51 |
~SmfMusicRatingPrivate( )
|
|
52 |
{
|
|
53 |
}
|
|
54 |
|
|
55 |
qint32 m_rating; // rating
|
|
56 |
qint32 m_max; // max rating
|
|
57 |
qint32 m_min; // min rating
|
|
58 |
|
|
59 |
};
|
|
60 |
|
|
61 |
#endif /* SMFMUSICRATING_P_H_ */
|