smf/smfservermodule/smfcommon/smfmusicfingerprint.cpp
changeset 25 a180113055cb
parent 18 013a02bf2bb0
--- a/smf/smfservermodule/smfcommon/smfmusicfingerprint.cpp	Thu Sep 23 17:20:22 2010 +0530
+++ b/smf/smfservermodule/smfcommon/smfmusicfingerprint.cpp	Thu Sep 23 17:43:31 2010 +0530
@@ -45,6 +45,7 @@
 SmfMusicFingerPrint& SmfMusicFingerPrint::operator=( const SmfMusicFingerPrint &aOther )
 	{
 	d->m_fingerPrintData = aOther.d->m_fingerPrintData;
+	d->m_id = aOther.d->m_id;
 	return *this;
 	}
 
@@ -65,6 +66,15 @@
 	}
 
 /**
+ * Method to get the service specific id of this fingerprint data
+ * @return The ID value 
+ */
+QString SmfMusicFingerPrint::id( ) const
+	{
+	return d->m_id;
+	}	
+
+/**
  * Method to set the music finger print data
  * @param aFp The music finger print data
  */
@@ -73,6 +83,15 @@
 	d->m_fingerPrintData = aFp;
 	}
 
+/**
+ * Method to set the service specific id of this fingerprint data
+ * @param aId The ID value 
+ */
+void SmfMusicFingerPrint::setId( const QString &aId )
+	{
+	d->m_id = aId;
+	}
+
 
 /**
  * Method for Externalization. Writes the SmfMusicFingerPrint object to 
@@ -87,6 +106,9 @@
 	// Serialize d->m_fingerPrintData
 	aDataStream<<aMFP.d->m_fingerPrintData;
 	
+	// Serialize d->m_id
+	aDataStream<<aMFP.d->m_id;
+	
 	return aDataStream;
 	}
 
@@ -103,6 +125,9 @@
 	// Deserialize d->m_fingerPrintData
 	aDataStream>>aMFP.d->m_fingerPrintData;
 	
+	// Deserialize d->m_id
+	aDataStream>>aMFP.d->m_id;
+	
 	return aDataStream;
 	}