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 * The SmfMusicFingerPrint class represents a music finger print used in searches |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef SMFMUSICFINGERPRINT_H_ |
|
21 #define SMFMUSICFINGERPRINT_H_ |
|
22 |
|
23 #include <qdatastream.h> |
|
24 #include <QSharedData> |
|
25 #include <smfclientglobal.h> |
|
26 |
|
27 class SmfMusicFingerPrintPrivate; |
|
28 |
|
29 /** |
|
30 * @ingroup smf_common_group |
|
31 * The musicfingerprint class represents a music finger print used in searches |
|
32 */ |
|
33 class SMFCLIENT_EXPORT SmfMusicFingerPrint : public QObject |
|
34 { |
|
35 Q_OBJECT |
|
36 public: |
|
37 /** |
|
38 * Constructor with default argument |
|
39 * @param aParent The parent object |
|
40 */ |
|
41 SmfMusicFingerPrint( QObject *aParent = 0 ); |
|
42 /** |
|
43 * Destructor |
|
44 */ |
|
45 ~SmfMusicFingerPrint( ); |
|
46 |
|
47 /** |
|
48 * GEt the music finger print data |
|
49 * @return The music finger print data |
|
50 */ |
|
51 QByteArray musicFingerPrint ( ) const; |
|
52 |
|
53 private: |
|
54 QSharedDataPointer<SmfMusicFingerPrintPrivate> d; |
|
55 |
|
56 friend QDataStream &operator<<( QDataStream &aDataStream, |
|
57 const SmfMusicFingerPrint &aMFP ); |
|
58 |
|
59 friend QDataStream &operator>>( QDataStream &aDataStream, |
|
60 SmfMusicFingerPrint &aMFP ); |
|
61 |
|
62 }; |
|
63 |
|
64 |
|
65 /** |
|
66 * Method for Externalization. Writes the SmfMusicFingerPrint object to |
|
67 * the stream and returns a reference to the stream. |
|
68 * @param aDataStream Stream to be written |
|
69 * @param aMFP The SmfMusicFingerPrint object to be externalized |
|
70 * @return reference to the written stream |
|
71 */ |
|
72 QDataStream &operator<<( QDataStream &aDataStream, |
|
73 const SmfMusicFingerPrint &aMFP ); |
|
74 |
|
75 /** |
|
76 * Method for Internalization. Reads a SmfMusicFingerPrint object from |
|
77 * the stream and returns a reference to the stream. |
|
78 * @param aDataStream Stream to be read |
|
79 * @param aMFP The SmfMusicFingerPrint object to be internalized |
|
80 * @return reference to the stream |
|
81 */ |
|
82 QDataStream &operator>>( QDataStream &aDataStream, |
|
83 SmfMusicFingerPrint &aMFP); |
|
84 |
|
85 #endif /* SMFMUSICFINGERPRINT_H_ */ |
|