diff -r 969092730d34 -r edb9dc8273d9 smf/inc/common/smfmusic/smftrackinfo.h --- a/smf/inc/common/smfmusic/smftrackinfo.h Thu Apr 15 15:40:08 2010 +0530 +++ b/smf/inc/common/smfmusic/smftrackinfo.h Thu Apr 22 15:18:37 2010 +0530 @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -35,22 +36,25 @@ * @ingroup smf_common_group * The track info class represents information about a music track */ -class SMFCLIENT_EXPORT SmfTrackInfo : public QObject +class SMFCLIENT_EXPORT SmfTrackInfo { - Q_OBJECT public: /** * Constructor with default argument - * @param aParent The parent object - * (parent should be of type SmfMusicServicePlugin) */ - SmfTrackInfo(QObject *aParent = 0 ); + SmfTrackInfo( ); /** * Copy Constructor * @param aOther The reference object */ SmfTrackInfo( const SmfTrackInfo &aOther ); + + /** + * Overloaded = operator + * @param aOther The reference object + */ + SmfTrackInfo& operator=( const SmfTrackInfo &aOther ); /** * Destructor @@ -58,12 +62,6 @@ ~SmfTrackInfo( ); /** - * Method to get the id of the track - * @return The ID value - */ - QString id( ) const; - - /** * Method to get the track title * @return The title of the track */ @@ -109,7 +107,7 @@ * Method to get the comments on the track * @return The comments on the track */ - QStringList comments( ) const; + QList comments( ) const; /** * Method to get the track's duration @@ -118,6 +116,12 @@ QTime duration( ) const; /** + * Method to get the id of the track + * @return The ID value + */ + QString id( ) const; + + /** * Method to set the track title * @param aTitle The new title of the track */ @@ -163,7 +167,7 @@ * Method to set the comments on the track * @param aComment The new comment of the track */ - void setComment( const QStringList &aComments ); + void setComment( const QList &aComments ); /** * Method to set the duration of the track @@ -171,6 +175,12 @@ */ void setDuration( const QTime &aDuration ); + /** + * Method to set the id of the track + * @param aId The ID value + */ + void setId( const QString &aId ); + private: QSharedDataPointer d; @@ -203,7 +213,9 @@ QDataStream &operator>>( QDataStream &aDataStream, SmfTrackInfo &aTrackInfo); + // Make the class SmfTrackInfo known to QMetaType, so that as to register it. Q_DECLARE_METATYPE(SmfTrackInfo) + #endif /* SMFTRACKINFO_H_ */