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 SmfTrackInfo class
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
#ifndef SMFTRACKINFO_P_H_
|
|
21 |
#define SMFTRACKINFO_P_H_
|
|
22 |
|
|
23 |
#include <QTime>
|
|
24 |
#include <smfmusicrating.h>
|
|
25 |
#include <smfcomment.h>
|
|
26 |
#include <QStringList>
|
|
27 |
#include <QSharedData>
|
|
28 |
|
|
29 |
class SmfTrackInfoPrivate : public QSharedData
|
|
30 |
{
|
|
31 |
public:
|
|
32 |
/**
|
|
33 |
* Constructor
|
|
34 |
*/
|
|
35 |
SmfTrackInfoPrivate( ) : m_rating( )
|
|
36 |
{
|
|
37 |
m_trackId.clear();
|
|
38 |
m_title.clear();
|
|
39 |
m_genre.clear();
|
|
40 |
m_tags.clear();
|
|
41 |
m_comments.clear();
|
|
42 |
}
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Copy Constructor
|
|
46 |
* @param aOther The reference object to be copy constructed
|
|
47 |
*/
|
|
48 |
SmfTrackInfoPrivate( const SmfTrackInfoPrivate &aOther ) :
|
|
49 |
QSharedData ( aOther ),
|
|
50 |
m_trackId ( aOther.m_trackId ),
|
|
51 |
m_title ( aOther.m_title ),
|
|
52 |
m_album ( aOther.m_album ),
|
|
53 |
m_artists ( aOther.m_artists ),
|
|
54 |
m_genre ( aOther.m_genre ),
|
|
55 |
m_tags ( aOther.m_tags ),
|
|
56 |
m_year ( aOther.m_year ),
|
|
57 |
m_rating ( aOther.m_rating ),
|
|
58 |
m_comments ( aOther.m_comments ),
|
|
59 |
m_duration ( aOther.m_duration ) { }
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Destructor
|
|
63 |
*/
|
|
64 |
~SmfTrackInfoPrivate( )
|
|
65 |
{
|
|
66 |
}
|
|
67 |
|
|
68 |
QString m_trackId; // track id
|
|
69 |
QString m_title; // title
|
|
70 |
SmfAlbum m_album; // album
|
|
71 |
SmfArtists m_artists; // artist name
|
|
72 |
QString m_genre; // genre information
|
|
73 |
QStringList m_tags; // tag information
|
|
74 |
QDateTime m_year; // release year
|
|
75 |
SmfMusicRating m_rating;// rating
|
|
76 |
QList<SmfComment> m_comments; // comments
|
|
77 |
QTime m_duration; // duration
|
|
78 |
|
|
79 |
};
|
|
80 |
|
|
81 |
#endif /* SMFTRACKINFO_P_H_ */
|