mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 09:04:33 +02:00
Move implementations out of the header
This commit is contained in:
committed by
Michael Zanetti
parent
c2b54683d3
commit
96f28f53ce
@@ -140,6 +140,24 @@ Result::collection() const
|
|||||||
return m_collection;
|
return m_collection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString
|
||||||
|
Result::url() const
|
||||||
|
{
|
||||||
|
return m_url;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
Result::checked() const
|
||||||
|
{
|
||||||
|
return m_checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString
|
||||||
|
Result::mimetype() const
|
||||||
|
{
|
||||||
|
return m_mimetype;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
float
|
float
|
||||||
Result::score() const
|
Result::score() const
|
||||||
@@ -271,6 +289,66 @@ Result::setCollection( const Tomahawk::collection_ptr& collection )
|
|||||||
connect( m_collection->source().data(), SIGNAL( offline() ), SLOT( onOffline() ), Qt::QueuedConnection );
|
connect( m_collection->source().data(), SIGNAL( offline() ), SLOT( onOffline() ), Qt::QueuedConnection );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Result::setFriendlySource(const QString &s)
|
||||||
|
{
|
||||||
|
m_friendlySource = s;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Result::setPurchaseUrl(const QString &u)
|
||||||
|
{
|
||||||
|
m_purchaseUrl = u;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Result::setLinkUrl(const QString &u)
|
||||||
|
{
|
||||||
|
m_linkUrl = u;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Result::setChecked( bool checked )
|
||||||
|
{
|
||||||
|
m_checked = checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
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)
|
||||||
|
{
|
||||||
|
m_track = track;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned int
|
||||||
|
Result::fileId() const
|
||||||
|
{
|
||||||
|
return m_fileId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
QString
|
QString
|
||||||
Result::friendlySource() const
|
Result::friendlySource() const
|
||||||
@@ -283,6 +361,18 @@ Result::friendlySource() const
|
|||||||
return collection()->source()->friendlyName();
|
return collection()->source()->friendlyName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString
|
||||||
|
Result::purchaseUrl() const
|
||||||
|
{
|
||||||
|
return m_purchaseUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString
|
||||||
|
Result::linkUrl() const
|
||||||
|
{
|
||||||
|
return m_linkUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
QPixmap
|
QPixmap
|
||||||
Result::sourceIcon( TomahawkUtils::ImageMode style, const QSize& desiredSize ) const
|
Result::sourceIcon( TomahawkUtils::ImageMode style, const QSize& desiredSize ) const
|
||||||
@@ -339,6 +429,35 @@ Result::sourceIcon( TomahawkUtils::ImageMode style, const QSize& desiredSize ) c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned int
|
||||||
|
Result::bitrate() const
|
||||||
|
{
|
||||||
|
return m_bitrate;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned int
|
||||||
|
Result::size() const
|
||||||
|
{
|
||||||
|
return m_size;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned int
|
||||||
|
Result::modificationTime() const
|
||||||
|
{
|
||||||
|
return m_modtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Result::setScore( float score )
|
||||||
|
{
|
||||||
|
m_score = score;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Result::setFileId(unsigned int id)
|
||||||
|
{
|
||||||
|
m_fileId = id;
|
||||||
|
}
|
||||||
|
|
||||||
Tomahawk::Resolver*
|
Tomahawk::Resolver*
|
||||||
Result::resolvedBy() const
|
Result::resolvedBy() const
|
||||||
|
@@ -71,40 +71,40 @@ public:
|
|||||||
bool playable() const;
|
bool playable() const;
|
||||||
|
|
||||||
collection_ptr collection() const;
|
collection_ptr collection() const;
|
||||||
QString url() const { return m_url; }
|
QString url() const;
|
||||||
/**
|
/**
|
||||||
* Has the given url been checked that it is accessible/valid.
|
* Has the given url been checked that it is accessible/valid.
|
||||||
*
|
*
|
||||||
* Results marked as true will bypass the ResultUrlChecker.
|
* Results marked as true will bypass the ResultUrlChecker.
|
||||||
*/
|
*/
|
||||||
bool checked() const { return m_checked; }
|
bool checked() const;
|
||||||
QString mimetype() const { return m_mimetype; }
|
QString mimetype() const;
|
||||||
QString friendlySource() const;
|
QString friendlySource() const;
|
||||||
QString purchaseUrl() const { return m_purchaseUrl; }
|
QString purchaseUrl() const;
|
||||||
QString linkUrl() const { return m_linkUrl; }
|
QString linkUrl() const;
|
||||||
|
|
||||||
QPixmap sourceIcon( TomahawkUtils::ImageMode style, const QSize& desiredSize = QSize() ) const;
|
QPixmap sourceIcon( TomahawkUtils::ImageMode style, const QSize& desiredSize = QSize() ) const;
|
||||||
|
|
||||||
unsigned int bitrate() const { return m_bitrate; }
|
unsigned int bitrate() const;
|
||||||
unsigned int size() const { return m_size; }
|
unsigned int size() const;
|
||||||
unsigned int modificationTime() const { return m_modtime; }
|
unsigned int modificationTime() const;
|
||||||
|
|
||||||
void setScore( float score ) { m_score = score; }
|
void setScore( float score );
|
||||||
void setFileId( unsigned int id ) { m_fileId = id; }
|
void setFileId( unsigned int id );
|
||||||
void setRID( RID id ) { m_rid = id; }
|
void setRID( RID id ) { m_rid = id; }
|
||||||
void setCollection( const Tomahawk::collection_ptr& collection );
|
void setCollection( const Tomahawk::collection_ptr& collection );
|
||||||
void setFriendlySource( const QString& s ) { m_friendlySource = s; }
|
void setFriendlySource( const QString& s );
|
||||||
void setPurchaseUrl( const QString& u ) { m_purchaseUrl = u; }
|
void setPurchaseUrl( const QString& u );
|
||||||
void setLinkUrl( const QString& u ) { m_linkUrl = u; }
|
void setLinkUrl( const QString& u );
|
||||||
void setChecked( bool checked ) { m_checked = checked; }
|
void setChecked( bool checked );
|
||||||
void setMimetype( const QString& mimetype ) { m_mimetype = mimetype; }
|
void setMimetype( const QString& mimetype );
|
||||||
void setBitrate( unsigned int bitrate ) { m_bitrate = bitrate; }
|
void setBitrate( unsigned int bitrate );
|
||||||
void setSize( unsigned int size ) { m_size = size; }
|
void setSize( unsigned int size );
|
||||||
void setModificationTime( unsigned int modtime ) { m_modtime = modtime; }
|
void setModificationTime( unsigned int modtime );
|
||||||
|
|
||||||
void setTrack( const track_ptr& track ) { m_track = track; }
|
void setTrack( const track_ptr& track );
|
||||||
|
|
||||||
unsigned int fileId() const { return m_fileId; }
|
unsigned int fileId() const;
|
||||||
|
|
||||||
track_ptr track() const;
|
track_ptr track() const;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user