mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-21 13:21:52 +02:00
* Headless. Now.
This commit is contained in:
@@ -76,10 +76,10 @@ Album::Album( unsigned int id, const QString& name, const Tomahawk::artist_ptr&
|
|||||||
, m_id( id )
|
, m_id( id )
|
||||||
, m_name( name )
|
, m_name( name )
|
||||||
, m_artist( artist )
|
, m_artist( artist )
|
||||||
|
, m_infoLoaded( false )
|
||||||
#ifndef ENABLE_HEADLESS
|
#ifndef ENABLE_HEADLESS
|
||||||
, m_cover( 0 )
|
, m_cover( 0 )
|
||||||
#endif
|
#endif
|
||||||
, m_infoLoaded( false )
|
|
||||||
{
|
{
|
||||||
connect( Tomahawk::InfoSystem::InfoSystem::instance(),
|
connect( Tomahawk::InfoSystem::InfoSystem::instance(),
|
||||||
SIGNAL( info( Tomahawk::InfoSystem::InfoRequestData, QVariant ) ),
|
SIGNAL( info( Tomahawk::InfoSystem::InfoRequestData, QVariant ) ),
|
||||||
|
@@ -73,13 +73,13 @@ private:
|
|||||||
QString m_name;
|
QString m_name;
|
||||||
artist_ptr m_artist;
|
artist_ptr m_artist;
|
||||||
QByteArray m_coverBuffer;
|
QByteArray m_coverBuffer;
|
||||||
#ifndef ENABLE_HEADLESS
|
|
||||||
mutable QPixmap* m_cover;
|
|
||||||
#endif
|
|
||||||
bool m_infoLoaded;
|
bool m_infoLoaded;
|
||||||
mutable QString m_uuid;
|
mutable QString m_uuid;
|
||||||
|
|
||||||
|
#ifndef ENABLE_HEADLESS
|
||||||
|
mutable QPixmap* m_cover;
|
||||||
mutable QHash< int, QPixmap > m_coverCache;
|
mutable QHash< int, QPixmap > m_coverCache;
|
||||||
|
#endif
|
||||||
|
|
||||||
Tomahawk::playlistinterface_ptr m_playlistInterface;
|
Tomahawk::playlistinterface_ptr m_playlistInterface;
|
||||||
};
|
};
|
||||||
|
@@ -75,10 +75,10 @@ Artist::Artist( unsigned int id, const QString& name )
|
|||||||
: QObject()
|
: QObject()
|
||||||
, m_id( id )
|
, m_id( id )
|
||||||
, m_name( name )
|
, m_name( name )
|
||||||
|
, m_infoLoaded( false )
|
||||||
#ifndef ENABLE_HEADLESS
|
#ifndef ENABLE_HEADLESS
|
||||||
, m_cover( 0 )
|
, m_cover( 0 )
|
||||||
#endif
|
#endif
|
||||||
, m_infoLoaded( false )
|
|
||||||
{
|
{
|
||||||
m_sortname = DatabaseImpl::sortname( name, true );
|
m_sortname = DatabaseImpl::sortname( name, true );
|
||||||
|
|
||||||
|
@@ -72,13 +72,13 @@ private:
|
|||||||
QString m_name;
|
QString m_name;
|
||||||
QString m_sortname;
|
QString m_sortname;
|
||||||
QByteArray m_coverBuffer;
|
QByteArray m_coverBuffer;
|
||||||
#ifndef ENABLE_HEADLESS
|
|
||||||
mutable QPixmap* m_cover;
|
|
||||||
#endif
|
|
||||||
bool m_infoLoaded;
|
bool m_infoLoaded;
|
||||||
mutable QString m_uuid;
|
mutable QString m_uuid;
|
||||||
|
|
||||||
|
#ifndef ENABLE_HEADLESS
|
||||||
|
mutable QPixmap* m_cover;
|
||||||
mutable QHash< int, QPixmap > m_coverCache;
|
mutable QHash< int, QPixmap > m_coverCache;
|
||||||
|
#endif
|
||||||
|
|
||||||
Tomahawk::playlistinterface_ptr m_playlistInterface;
|
Tomahawk::playlistinterface_ptr m_playlistInterface;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user