1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00
This commit is contained in:
Leo Franchi
2012-02-25 20:54:54 -05:00
parent 7668f04c0c
commit d641f06e6d
3 changed files with 9 additions and 3 deletions

View File

@@ -24,8 +24,8 @@
QPixmap* ErrorStatusMessage::s_pixmap = 0; QPixmap* ErrorStatusMessage::s_pixmap = 0;
ErrorStatusMessage::ErrorStatusMessage( const QString& message, int timeoutSecs ) : ErrorStatusMessage::ErrorStatusMessage( const QString& message, int timeoutSecs )
JobStatusItem() : JobStatusItem()
, m_message( message ) , m_message( message )
{ {
m_timer = new QTimer( this ); m_timer = new QTimer( this );

View File

@@ -20,11 +20,12 @@
#define ERRORSTATUSMESSAGE_H #define ERRORSTATUSMESSAGE_H
#include "JobStatusItem.h" #include "JobStatusItem.h"
#include "dllmacro.h"
class QTimer; class QTimer;
class QPixmap; class QPixmap;
class ErrorStatusMessage : public JobStatusItem class DLLEXPORT ErrorStatusMessage : public JobStatusItem
{ {
Q_OBJECT Q_OBJECT
public: public:

View File

@@ -25,9 +25,12 @@
#include "utils/tomahawkutils.h" #include "utils/tomahawkutils.h"
#include "utils/logger.h" #include "utils/logger.h"
#ifndef ENABLE_HEADLESS
#include "jobview/JobStatusView.h" #include "jobview/JobStatusView.h"
#include "jobview/JobStatusModel.h" #include "jobview/JobStatusModel.h"
#include "jobview/ErrorStatusMessage.h" #include "jobview/ErrorStatusMessage.h"
#endif
#include "sourcelist.h" #include "sourcelist.h"
#include "playlist.h" #include "playlist.h"
@@ -117,7 +120,9 @@ void
XSPFLoader::reportError() XSPFLoader::reportError()
{ {
emit error( FetchError ); emit error( FetchError );
#ifndef ENABLE_HEADLESS
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( errorToString( FetchError) ) ); JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( errorToString( FetchError) ) );
#endif
deleteLater(); deleteLater();
} }