From be9ac6b44b9542dbf3b9fb4053e9a2e672bf1597 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 10 Oct 2014 18:50:54 +0200 Subject: [PATCH] * Style fixes to Result. --- src/libtomahawk/Result.cpp | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/libtomahawk/Result.cpp b/src/libtomahawk/Result.cpp index b209eef60..4f0f3a32f 100644 --- a/src/libtomahawk/Result.cpp +++ b/src/libtomahawk/Result.cpp @@ -145,18 +145,21 @@ Result::collection() const return m_collection; } + QString Result::url() const { return m_url; } + bool Result::checked() const { return m_checked; } + QString Result::mimetype() const { @@ -304,60 +307,70 @@ Result::setCollection( const Tomahawk::collection_ptr& collection , bool emitOnl } } + void -Result::setFriendlySource(const QString &s) +Result::setFriendlySource(const QString& s) { m_friendlySource = s; } + void -Result::setPurchaseUrl(const QString &u) +Result::setPurchaseUrl(const QString& u) { m_purchaseUrl = u; } + void -Result::setLinkUrl(const QString &u) +Result::setLinkUrl(const QString& u) { m_linkUrl = u; } + void Result::setChecked( bool checked ) { m_checked = checked; } + void -Result::setMimetype( const QString &mimetype ) +Result::setMimetype( const QString& mimetype ) { m_mimetype = mimetype; } + void Result::setBitrate( unsigned int bitrate ) { m_bitrate = bitrate; } + void Result::setSize( unsigned int size ) { m_size = size; } + void Result::setModificationTime( unsigned int modtime ) { m_modtime = modtime; } + void -Result::setTrack(const track_ptr &track) +Result::setTrack( const track_ptr& track ) { m_track = track; } + unsigned int Result::fileId() const { @@ -376,12 +389,14 @@ Result::friendlySource() const return collection()->source()->friendlyName(); } + QString Result::purchaseUrl() const { return m_purchaseUrl; } + QString Result::linkUrl() const {