equal
deleted
inserted
replaced
43 * @return The target reference value |
43 * @return The target reference value |
44 */ |
44 */ |
45 SmfMusicFingerPrint& SmfMusicFingerPrint::operator=( const SmfMusicFingerPrint &aOther ) |
45 SmfMusicFingerPrint& SmfMusicFingerPrint::operator=( const SmfMusicFingerPrint &aOther ) |
46 { |
46 { |
47 d->m_fingerPrintData = aOther.d->m_fingerPrintData; |
47 d->m_fingerPrintData = aOther.d->m_fingerPrintData; |
|
48 d->m_id = aOther.d->m_id; |
48 return *this; |
49 return *this; |
49 } |
50 } |
50 |
51 |
51 /** |
52 /** |
52 * Destructor |
53 * Destructor |
63 { |
64 { |
64 return d->m_fingerPrintData; |
65 return d->m_fingerPrintData; |
65 } |
66 } |
66 |
67 |
67 /** |
68 /** |
|
69 * Method to get the service specific id of this fingerprint data |
|
70 * @return The ID value |
|
71 */ |
|
72 QString SmfMusicFingerPrint::id( ) const |
|
73 { |
|
74 return d->m_id; |
|
75 } |
|
76 |
|
77 /** |
68 * Method to set the music finger print data |
78 * Method to set the music finger print data |
69 * @param aFp The music finger print data |
79 * @param aFp The music finger print data |
70 */ |
80 */ |
71 void SmfMusicFingerPrint::setMusicFingerPrint ( const QByteArray &aFp) |
81 void SmfMusicFingerPrint::setMusicFingerPrint ( const QByteArray &aFp) |
72 { |
82 { |
73 d->m_fingerPrintData = aFp; |
83 d->m_fingerPrintData = aFp; |
|
84 } |
|
85 |
|
86 /** |
|
87 * Method to set the service specific id of this fingerprint data |
|
88 * @param aId The ID value |
|
89 */ |
|
90 void SmfMusicFingerPrint::setId( const QString &aId ) |
|
91 { |
|
92 d->m_id = aId; |
74 } |
93 } |
75 |
94 |
76 |
95 |
77 /** |
96 /** |
78 * Method for Externalization. Writes the SmfMusicFingerPrint object to |
97 * Method for Externalization. Writes the SmfMusicFingerPrint object to |
84 QDataStream &operator<<( QDataStream &aDataStream, |
103 QDataStream &operator<<( QDataStream &aDataStream, |
85 const SmfMusicFingerPrint &aMFP ) |
104 const SmfMusicFingerPrint &aMFP ) |
86 { |
105 { |
87 // Serialize d->m_fingerPrintData |
106 // Serialize d->m_fingerPrintData |
88 aDataStream<<aMFP.d->m_fingerPrintData; |
107 aDataStream<<aMFP.d->m_fingerPrintData; |
|
108 |
|
109 // Serialize d->m_id |
|
110 aDataStream<<aMFP.d->m_id; |
89 |
111 |
90 return aDataStream; |
112 return aDataStream; |
91 } |
113 } |
92 |
114 |
93 /** |
115 /** |
101 SmfMusicFingerPrint &aMFP) |
123 SmfMusicFingerPrint &aMFP) |
102 { |
124 { |
103 // Deserialize d->m_fingerPrintData |
125 // Deserialize d->m_fingerPrintData |
104 aDataStream>>aMFP.d->m_fingerPrintData; |
126 aDataStream>>aMFP.d->m_fingerPrintData; |
105 |
127 |
|
128 // Deserialize d->m_id |
|
129 aDataStream>>aMFP.d->m_id; |
|
130 |
106 return aDataStream; |
131 return aDataStream; |
107 } |
132 } |
108 |
133 |