diff -r 969092730d34 -r edb9dc8273d9 smf/inc/common/smfmusic/smflyrics.h --- a/smf/inc/common/smfmusic/smflyrics.h Thu Apr 15 15:40:08 2010 +0530 +++ b/smf/inc/common/smfmusic/smflyrics.h Thu Apr 22 15:18:37 2010 +0530 @@ -31,15 +31,13 @@ * @ingroup smf_common_group * The lyrics class represents an instance of a music track's lyrics */ -class SMFCLIENT_EXPORT SmfLyrics : public QObject +class SMFCLIENT_EXPORT SmfLyrics { - Q_OBJECT public: /** * Constructor with default argument - * @param aParent The parent object */ - SmfLyrics( QObject *aParent = 0 ); + SmfLyrics( ); /** * Copy Constructor @@ -48,6 +46,13 @@ SmfLyrics( const SmfLyrics &aOther ); /** + * Overloaded = operator + * @param aOther The reference object + * @return The current object reference + */ + SmfLyrics& operator=( const SmfLyrics &aOther ); + + /** * Destructor */ ~SmfLyrics( ); @@ -76,6 +81,30 @@ */ QString id( ) const; + /** + * Method to set the lyrics + * @param aLyrics The lyrics data + */ + void setLyrics( const QByteArray &aLyrics ); + + /** + * Method to set the language + * @param aLang The language + */ + void setLanguage( const QString &aLang ); + + /** + * Method to set the release year + * @param aRelYear The release year + */ + void setReleaseYear( const QDateTime &aRelYear ); + + /** + * Method to set the id of the lyrics + * @param aId The ID value + */ + void setId( const QString &aId ); + private: QSharedDataPointer d; @@ -108,7 +137,9 @@ QDataStream &operator>>( QDataStream &aDataStream, SmfLyrics &aLyrics); + // Make the class SmfLyrics known to QMetaType, so that as to register it. Q_DECLARE_METATYPE(SmfLyrics) + #endif /* SMFLYRICS_H_ */