Skip to content

Commit

Permalink
* DropJobNotifier now expects our own NetworkReply instead of a QNetw…
Browse files Browse the repository at this point in the history
…orkReply.
  • Loading branch information
muesli committed Nov 14, 2012
1 parent 1e7c20a commit f794684
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
21 changes: 12 additions & 9 deletions src/libtomahawk/utils/DropJobNotifier.cpp
Expand Up @@ -3,7 +3,7 @@
* Copyright 2010-2011, Leo Franchi <lfranchi@kde.org>
* Copyright 2010-2011, Hugo Lindström <hugolm84@gmail.com>
* Copyright 2010-2011, Jeff Mitchell <jeff@tomahawk-player.org>
*
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -20,22 +20,25 @@

#include "DropJobNotifier.h"

#include "utils/Logger.h"
#include "utils/TomahawkUtils.h"
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>

#include <qjson/parser.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/QNetworkReply>
#include "jobview/JobStatusView.h"
#include "jobview/JobStatusModel.h"
#include "utils/NetworkReply.h"
#include "utils/TomahawkUtils.h"
#include "utils/Logger.h"

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()
, m_type( "unknown" )
, m_job( 0 )
Expand Down
7 changes: 4 additions & 3 deletions src/libtomahawk/utils/DropJobNotifier.h
Expand Up @@ -30,15 +30,16 @@
#include <QStringList>
#include <QPixmap>

class QNetworkReply;
class NetworkReply;

namespace Tomahawk
{

class DLLEXPORT DropJobNotifier : public JobStatusItem
{
Q_OBJECT
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
DropJobNotifier( QPixmap pixmap, DropJob::DropType type );
Expand All @@ -57,7 +58,7 @@ public slots:
void init( DropJob::DropType type );

QString m_type;
QNetworkReply* m_job;
NetworkReply* m_job;
QPixmap m_pixmap;
QString m_service;
};
Expand Down

0 comments on commit f794684

Please sign in to comment.