|
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( ) { |
|
32 m_rating = 0; |
|
33 } |
|
34 |
|
35 /** |
|
36 * Copy Consturctor |
|
37 * @param aOther The reference object to be copy constructed |
|
38 */ |
|
39 SmfMusicRatingPrivate( const SmfMusicRatingPrivate &aOther ) : |
|
40 QSharedData ( aOther ), |
|
41 m_rating ( aOther.m_rating ), |
|
42 m_max ( aOther.m_max ), |
|
43 m_min ( aOther.m_min ) { } |
|
44 |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 ~SmfMusicRatingPrivate( ); |
|
49 |
|
50 int m_rating; // rating |
|
51 int m_max; // max rating |
|
52 int m_min; // min rating |
|
53 |
|
54 }; |
|
55 |
|
56 #endif /* SMFMUSICRATING_P_H_ */ |