mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 18:44:30 +02:00
* DropJobNotifier now expects our own NetworkReply instead of a QNetworkReply.
This commit is contained in:
@@ -20,22 +20,25 @@
|
|||||||
|
|
||||||
#include "DropJobNotifier.h"
|
#include "DropJobNotifier.h"
|
||||||
|
|
||||||
#include "utils/Logger.h"
|
|
||||||
#include "utils/TomahawkUtils.h"
|
|
||||||
#include "Query.h"
|
|
||||||
#include "SourceList.h"
|
|
||||||
#include "jobview/JobStatusView.h"
|
|
||||||
#include "jobview/JobStatusModel.h"
|
|
||||||
#include "DropJob.h"
|
|
||||||
#include <qjson/parser.h>
|
|
||||||
#include "DropJobNotifier.h"
|
|
||||||
#include <QtNetwork/QNetworkAccessManager>
|
#include <QtNetwork/QNetworkAccessManager>
|
||||||
#include <QtNetwork/QNetworkReply>
|
#include <QtNetwork/QNetworkReply>
|
||||||
|
|
||||||
|
#include <qjson/parser.h>
|
||||||
|
|
||||||
|
#include "Query.h"
|
||||||
|
#include "SourceList.h"
|
||||||
|
#include "DropJob.h"
|
||||||
|
#include "DropJobNotifier.h"
|
||||||
|
#include "jobview/JobStatusView.h"
|
||||||
|
#include "jobview/JobStatusModel.h"
|
||||||
|
#include "utils/NetworkReply.h"
|
||||||
|
#include "utils/TomahawkUtils.h"
|
||||||
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
|
|
||||||
DropJobNotifier::DropJobNotifier( QPixmap servicePixmap, QString service, DropJob::DropType type, QNetworkReply* job )
|
DropJobNotifier::DropJobNotifier( QPixmap servicePixmap, QString service, DropJob::DropType type, NetworkReply* job )
|
||||||
: JobStatusItem()
|
: JobStatusItem()
|
||||||
, m_type( "unknown" )
|
, m_type( "unknown" )
|
||||||
, m_job( 0 )
|
, m_job( 0 )
|
||||||
|
@@ -30,7 +30,8 @@
|
|||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
|
|
||||||
class QNetworkReply;
|
class NetworkReply;
|
||||||
|
|
||||||
namespace Tomahawk
|
namespace Tomahawk
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -38,7 +39,7 @@ class DLLEXPORT DropJobNotifier : public JobStatusItem
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
DropJobNotifier( QPixmap pixmap, QString service, DropJob::DropType type, QNetworkReply* job );
|
DropJobNotifier( QPixmap pixmap, QString service, DropJob::DropType type, NetworkReply* job );
|
||||||
|
|
||||||
// No QNetworkReply, needs manual finished call
|
// No QNetworkReply, needs manual finished call
|
||||||
DropJobNotifier( QPixmap pixmap, DropJob::DropType type );
|
DropJobNotifier( QPixmap pixmap, DropJob::DropType type );
|
||||||
@@ -57,7 +58,7 @@ private:
|
|||||||
void init( DropJob::DropType type );
|
void init( DropJob::DropType type );
|
||||||
|
|
||||||
QString m_type;
|
QString m_type;
|
||||||
QNetworkReply* m_job;
|
NetworkReply* m_job;
|
||||||
QPixmap m_pixmap;
|
QPixmap m_pixmap;
|
||||||
QString m_service;
|
QString m_service;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user