diff --git a/src/libtomahawk/database/DatabaseCommand_ShareTrack.cpp b/src/libtomahawk/database/DatabaseCommand_ShareTrack.cpp index b905b8835..867839133 100644 --- a/src/libtomahawk/database/DatabaseCommand_ShareTrack.cpp +++ b/src/libtomahawk/database/DatabaseCommand_ShareTrack.cpp @@ -57,6 +57,13 @@ DatabaseCommand_ShareTrack::DatabaseCommand_ShareTrack( const Tomahawk::result_p setTrack( result->track() ); } + +QString +DatabaseCommand_ShareTrack::commandname() const +{ + return "sharetrack"; +} + void DatabaseCommand_ShareTrack::exec( DatabaseImpl* dbi ) { @@ -95,3 +102,73 @@ DatabaseCommand_ShareTrack::postCommitHook() Qt::QueuedConnection, Q_ARG( const Tomahawk::query_ptr&, m_query ) ); } + + +bool +DatabaseCommand_ShareTrack::doesMutates() const +{ + return false; +} + + +bool +DatabaseCommand_ShareTrack::singletonCmd() const +{ + return false; +} + + +bool +DatabaseCommand_ShareTrack::localOnly() const +{ + return false; +} + + +bool +DatabaseCommand_ShareTrack::groupable() const +{ + return true; +} + + +QString +DatabaseCommand_ShareTrack::artist() const +{ + return m_artist; +} + + +void +DatabaseCommand_ShareTrack::setArtist( const QString& s ) +{ + m_artist = s; +} + + +QString +DatabaseCommand_ShareTrack::track() const +{ + return m_track; +} + + +void +DatabaseCommand_ShareTrack::setTrack( const QString& s ) +{ + m_track = s; +} + + +QString +DatabaseCommand_ShareTrack::recipient() const +{ + return m_recipient; +} + + +void +DatabaseCommand_ShareTrack::setRecipient( const QString& s ) +{ + m_recipient = s; +} diff --git a/src/libtomahawk/database/DatabaseCommand_ShareTrack.h b/src/libtomahawk/database/DatabaseCommand_ShareTrack.h index 6ab805857..d024609b0 100644 --- a/src/libtomahawk/database/DatabaseCommand_ShareTrack.h +++ b/src/libtomahawk/database/DatabaseCommand_ShareTrack.h @@ -48,24 +48,24 @@ public: //TODO: construct from result instead? - virtual QString commandname() const { return "sharetrack"; } + virtual QString commandname() const; virtual void exec( DatabaseImpl* ); virtual void postCommitHook(); - virtual bool doesMutates() const { return false; } - virtual bool singletonCmd() const { return false; } - virtual bool localOnly() const { return false; } - virtual bool groupable() const { return true; } + virtual bool doesMutates() const; + virtual bool singletonCmd() const; + virtual bool localOnly() const; + virtual bool groupable() const; - QString artist() const { return m_artist; } - void setArtist( const QString& s ) { m_artist = s; } + QString artist() const; + void setArtist( const QString& s ); - QString track() const { return m_track; } - void setTrack( const QString& s ) { m_track = s; } + QString track() const; + void setTrack( const QString& s ); - QString recipient() const { return m_recipient; } - void setRecipient( const QString& s ) { m_recipient = s; } + QString recipient() const; + void setRecipient( const QString& s ); private: Tomahawk::query_ptr m_query;