1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

Do less work in the constructor body

This commit is contained in:
Uwe L. Korn
2014-05-24 12:13:44 +01:00
parent 5e7f3daa5e
commit d32eb8fe1e
2 changed files with 6 additions and 6 deletions

View File

@@ -39,21 +39,21 @@
#include "UrlHandler.h"
#include <boost/bind.hpp>
#include <QtCrypto>
#include <QFile>
#include <QFileInfo>
#include <QtCrypto>
#include <QWebFrame>
#include <QMap>
#include <QWebFrame>
using namespace Tomahawk;
JSResolverHelper::JSResolverHelper( const QString& scriptPath, JSResolver* parent )
: QObject( parent )
, m_resolver( parent )
, m_scriptPath( scriptPath )
, m_urlCallbackIsAsync( false )
, m_urlTranslatorIsAsync( false )
{
m_scriptPath = scriptPath;
m_resolver = parent;
}

View File

@@ -90,13 +90,13 @@ private:
boost::function< void( QSharedPointer< QIODevice >& ) > callback );
void returnUrlTranslation( const QString& streamUrl, boost::function< void( const QString& ) > callback );
QVariantMap m_resolverConfig;
JSResolver* m_resolver;
QString m_scriptPath, m_urlCallback, m_urlTranslator;
QHash< QString, boost::function< void( QSharedPointer< QIODevice >& ) > > m_streamCallbacks;
QHash< QString, boost::function< void( const QString& ) > > m_translatorCallbacks;
bool m_urlCallbackIsAsync;
bool m_urlTranslatorIsAsync;
QVariantMap m_resolverConfig;
JSResolver* m_resolver;
QString m_pendingUrl;
Tomahawk::album_ptr m_pendingAlbum;
};