1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 11:50:37 +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;
ErrorStatusMessage::ErrorStatusMessage( const QString& message, int timeoutSecs ) :
JobStatusItem()
ErrorStatusMessage::ErrorStatusMessage( const QString& message, int timeoutSecs )
: JobStatusItem()
, m_message( message )
{
m_timer = new QTimer( this );

View File

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

View File

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