1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02:00

* Style fixes to Result.

This commit is contained in:
Christian Muehlhaeuser
2014-10-10 18:50:54 +02:00
parent 58f7620dc0
commit be9ac6b44b

View File

@@ -145,18 +145,21 @@ Result::collection() const
return m_collection; return m_collection;
} }
QString QString
Result::url() const Result::url() const
{ {
return m_url; return m_url;
} }
bool bool
Result::checked() const Result::checked() const
{ {
return m_checked; return m_checked;
} }
QString QString
Result::mimetype() const Result::mimetype() const
{ {
@@ -304,60 +307,70 @@ Result::setCollection( const Tomahawk::collection_ptr& collection , bool emitOnl
} }
} }
void void
Result::setFriendlySource(const QString &s) Result::setFriendlySource(const QString& s)
{ {
m_friendlySource = s; m_friendlySource = s;
} }
void void
Result::setPurchaseUrl(const QString &u) Result::setPurchaseUrl(const QString& u)
{ {
m_purchaseUrl = u; m_purchaseUrl = u;
} }
void void
Result::setLinkUrl(const QString &u) Result::setLinkUrl(const QString& u)
{ {
m_linkUrl = u; m_linkUrl = u;
} }
void void
Result::setChecked( bool checked ) Result::setChecked( bool checked )
{ {
m_checked = checked; m_checked = checked;
} }
void void
Result::setMimetype( const QString &mimetype ) Result::setMimetype( const QString& mimetype )
{ {
m_mimetype = mimetype; m_mimetype = mimetype;
} }
void void
Result::setBitrate( unsigned int bitrate ) Result::setBitrate( unsigned int bitrate )
{ {
m_bitrate = bitrate; m_bitrate = bitrate;
} }
void void
Result::setSize( unsigned int size ) Result::setSize( unsigned int size )
{ {
m_size = size; m_size = size;
} }
void void
Result::setModificationTime( unsigned int modtime ) Result::setModificationTime( unsigned int modtime )
{ {
m_modtime = modtime; m_modtime = modtime;
} }
void void
Result::setTrack(const track_ptr &track) Result::setTrack( const track_ptr& track )
{ {
m_track = track; m_track = track;
} }
unsigned int unsigned int
Result::fileId() const Result::fileId() const
{ {
@@ -376,12 +389,14 @@ Result::friendlySource() const
return collection()->source()->friendlyName(); return collection()->source()->friendlyName();
} }
QString QString
Result::purchaseUrl() const Result::purchaseUrl() const
{ {
return m_purchaseUrl; return m_purchaseUrl;
} }
QString QString
Result::linkUrl() const Result::linkUrl() const
{ {