mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 00:54:20 +02:00
Move implementations out of the header
This commit is contained in:
@@ -237,6 +237,20 @@ Album::id() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QString
|
||||||
|
Album::name() const
|
||||||
|
{
|
||||||
|
return m_name;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QString
|
||||||
|
Album::sortname() const
|
||||||
|
{
|
||||||
|
return m_sortname;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifndef ENABLE_HEADLESS
|
#ifndef ENABLE_HEADLESS
|
||||||
QPixmap
|
QPixmap
|
||||||
Album::cover( const QSize& size, bool forceLoad ) const
|
Album::cover( const QSize& size, bool forceLoad ) const
|
||||||
@@ -303,6 +317,13 @@ Album::cover( const QSize& size, bool forceLoad ) const
|
|||||||
else
|
else
|
||||||
return QPixmap();
|
return QPixmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
Album::coverLoaded() const
|
||||||
|
{
|
||||||
|
return m_coverLoaded;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -369,6 +390,20 @@ Album::playlistInterface( ModelMode mode, const Tomahawk::collection_ptr& collec
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QWeakPointer<Album>
|
||||||
|
Album::weakRef()
|
||||||
|
{
|
||||||
|
return m_ownRef;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
Album::setWeakRef( QWeakPointer<Album> weakRef )
|
||||||
|
{
|
||||||
|
m_ownRef = weakRef;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
QList<Tomahawk::query_ptr>
|
QList<Tomahawk::query_ptr>
|
||||||
Album::tracks( ModelMode mode, const Tomahawk::collection_ptr& collection )
|
Album::tracks( ModelMode mode, const Tomahawk::collection_ptr& collection )
|
||||||
{
|
{
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||||
* Copyright 2010-2012, Jeff Mitchell <jeff@tomahawk-player.org>
|
* Copyright 2010-2012, Jeff Mitchell <jeff@tomahawk-player.org>
|
||||||
|
* Copyright 2013, Uwe L. Korn <uwelk@xhochy.com>
|
||||||
*
|
*
|
||||||
* Tomahawk is free software: you can redistribute it and/or modify
|
* Tomahawk is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -20,11 +21,7 @@
|
|||||||
#ifndef TOMAHAWKALBUM_H
|
#ifndef TOMAHAWKALBUM_H
|
||||||
#define TOMAHAWKALBUM_H
|
#define TOMAHAWKALBUM_H
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QPixmap>
|
||||||
#include <QtCore/QSharedPointer>
|
|
||||||
#ifndef ENABLE_HEADLESS
|
|
||||||
#include <QtGui/QPixmap>
|
|
||||||
#endif
|
|
||||||
#include <QFuture>
|
#include <QFuture>
|
||||||
|
|
||||||
#include "Typedefs.h"
|
#include "Typedefs.h"
|
||||||
@@ -51,20 +48,20 @@ public:
|
|||||||
virtual ~Album();
|
virtual ~Album();
|
||||||
|
|
||||||
unsigned int id() const;
|
unsigned int id() const;
|
||||||
QString name() const { return m_name; }
|
QString name() const;
|
||||||
QString sortname() const { return m_sortname; }
|
QString sortname() const;
|
||||||
|
|
||||||
artist_ptr artist() const;
|
artist_ptr artist() const;
|
||||||
#ifndef ENABLE_HEADLESS
|
#ifndef ENABLE_HEADLESS
|
||||||
QPixmap cover( const QSize& size, bool forceLoad = true ) const;
|
QPixmap cover( const QSize& size, bool forceLoad = true ) const;
|
||||||
#endif
|
#endif
|
||||||
bool coverLoaded() const { return m_coverLoaded; }
|
bool coverLoaded() const;
|
||||||
|
|
||||||
QList<Tomahawk::query_ptr> tracks( ModelMode mode = Mixed, const Tomahawk::collection_ptr& collection = Tomahawk::collection_ptr() );
|
QList<Tomahawk::query_ptr> tracks( ModelMode mode = Mixed, const Tomahawk::collection_ptr& collection = Tomahawk::collection_ptr() );
|
||||||
Tomahawk::playlistinterface_ptr playlistInterface( ModelMode mode, const Tomahawk::collection_ptr& collection = Tomahawk::collection_ptr() );
|
Tomahawk::playlistinterface_ptr playlistInterface( ModelMode mode, const Tomahawk::collection_ptr& collection = Tomahawk::collection_ptr() );
|
||||||
|
|
||||||
QWeakPointer< Tomahawk::Album > weakRef() { return m_ownRef; }
|
QWeakPointer< Tomahawk::Album > weakRef();
|
||||||
void setWeakRef( QWeakPointer< Tomahawk::Album > weakRef ) { m_ownRef = weakRef; }
|
void setWeakRef( QWeakPointer< Tomahawk::Album > weakRef );
|
||||||
|
|
||||||
void loadId( bool autoCreate );
|
void loadId( bool autoCreate );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user