smf/inc/common/smfmusic/smfmusicfingerprint.h
changeset 5 edb9dc8273d9
parent 3 0446eb7b28aa
equal deleted inserted replaced
4:969092730d34 5:edb9dc8273d9
    28 
    28 
    29 /**
    29 /**
    30  * @ingroup smf_common_group
    30  * @ingroup smf_common_group
    31  * The musicfingerprint class represents a music finger print used in searches
    31  * The musicfingerprint class represents a music finger print used in searches
    32  */
    32  */
    33 class SMFCLIENT_EXPORT SmfMusicFingerPrint : public QObject
    33 class SMFCLIENT_EXPORT SmfMusicFingerPrint
    34 	{
    34 	{
    35 	Q_OBJECT
       
    36 public:
    35 public:
    37 	/**
    36 	/**
    38 	 * Constructor with default argument
    37 	 * Constructor with default argument
    39 	 * @param aParent The parent object
       
    40 	 */
    38 	 */
    41 	SmfMusicFingerPrint( QObject *aParent = 0 );
    39 	SmfMusicFingerPrint( );
    42 	
    40 	
    43 	/**
    41 	/**
    44 	 * Constructor with default argument
    42 	 * Constructor with default argument
    45 	 * @param aParent The parent object
    43 	 * @param aParent The parent object
    46 	 */
    44 	 */
    47 	SmfMusicFingerPrint( const SmfMusicFingerPrint &aOther );
    45 	SmfMusicFingerPrint( const SmfMusicFingerPrint &aOther );
    48 	
    46 	
    49 	/**
    47 	/**
       
    48 	 * Overloaded = operator
       
    49 	 * @param aOther The reference object
       
    50 	 */
       
    51 	SmfMusicFingerPrint& operator=( const SmfMusicFingerPrint &aOther );
       
    52 	
       
    53 	/**
    50 	 * Destructor
    54 	 * Destructor
    51 	 */
    55 	 */
    52 	~SmfMusicFingerPrint( );
    56 	~SmfMusicFingerPrint( );
    53 	
    57 	
    54 	/**
    58 	/**
    55 	 * GEt the music finger print data
    59 	 * Method to get the music finger print data
    56 	 * @return The music finger print data
    60 	 * @return The music finger print data
    57 	 */
    61 	 */
    58 	QByteArray musicFingerPrint ( ) const;
    62 	QByteArray musicFingerPrint ( ) const;
       
    63 	
       
    64 	/**
       
    65 	 * Method to set the music finger print data
       
    66 	 * @param aFp The music finger print data
       
    67 	 */
       
    68 	void setMusicFingerPrint ( const QByteArray &aFp);
    59 	
    69 	
    60 private:
    70 private:
    61 	QSharedDataPointer<SmfMusicFingerPrintPrivate> d;
    71 	QSharedDataPointer<SmfMusicFingerPrintPrivate> d;
    62 	
    72 	
    63 	friend QDataStream &operator<<( QDataStream &aDataStream, 
    73 	friend QDataStream &operator<<( QDataStream &aDataStream, 
    87  * @return reference to the stream
    97  * @return reference to the stream
    88  */
    98  */
    89 QDataStream &operator>>( QDataStream &aDataStream, 
    99 QDataStream &operator>>( QDataStream &aDataStream, 
    90 		SmfMusicFingerPrint &aMFP);
   100 		SmfMusicFingerPrint &aMFP);
    91 
   101 
       
   102 
       
   103 // Make the class SmfMusicFingerPrint known to QMetaType, so that as to register it.
       
   104 Q_DECLARE_METATYPE(SmfMusicFingerPrint)
       
   105 
       
   106 
    92 #endif /* SMFMUSICFINGERPRINT_H_ */
   107 #endif /* SMFMUSICFINGERPRINT_H_ */