mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Move signal connections of scrobbler into scrobbler, easier to read.
This commit is contained in:
@@ -43,6 +43,18 @@ Scrobbler::Scrobbler( QObject* parent )
|
|||||||
SLOT( infoSystemInfo( QString, Tomahawk::InfoSystem::InfoType, QVariant, QVariant, Tomahawk::InfoSystem::InfoCustomData ) ) );
|
SLOT( infoSystemInfo( QString, Tomahawk::InfoSystem::InfoType, QVariant, QVariant, Tomahawk::InfoSystem::InfoCustomData ) ) );
|
||||||
|
|
||||||
connect( TomahawkApp::instance()->infoSystem(), SIGNAL( finished( QString ) ), SLOT( infoSystemFinished( QString ) ) );
|
connect( TomahawkApp::instance()->infoSystem(), SIGNAL( finished( QString ) ), SLOT( infoSystemFinished( QString ) ) );
|
||||||
|
|
||||||
|
connect( AudioEngine::instance(), SIGNAL( started( const Tomahawk::result_ptr& ) ),
|
||||||
|
SLOT( trackStarted( const Tomahawk::result_ptr& ) ), Qt::QueuedConnection );
|
||||||
|
|
||||||
|
connect( AudioEngine::instance(), SIGNAL( paused() ),
|
||||||
|
SLOT( trackPaused() ), Qt::QueuedConnection );
|
||||||
|
|
||||||
|
connect( AudioEngine::instance(), SIGNAL( resumed() ),
|
||||||
|
SLOT( trackResumed() ), Qt::QueuedConnection );
|
||||||
|
|
||||||
|
connect( AudioEngine::instance(), SIGNAL( stopped() ),
|
||||||
|
SLOT( trackStopped() ), Qt::QueuedConnection );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -225,17 +225,6 @@ TomahawkApp::init()
|
|||||||
qDebug() << "Setting NAM.";
|
qDebug() << "Setting NAM.";
|
||||||
TomahawkUtils::setNam( new lastfm::NetworkAccessManager( this ) );
|
TomahawkUtils::setNam( new lastfm::NetworkAccessManager( this ) );
|
||||||
|
|
||||||
connect( m_audioEngine, SIGNAL( started( const Tomahawk::result_ptr& ) ),
|
|
||||||
m_scrobbler, SLOT( trackStarted( const Tomahawk::result_ptr& ) ), Qt::QueuedConnection );
|
|
||||||
|
|
||||||
connect( m_audioEngine, SIGNAL( paused() ),
|
|
||||||
m_scrobbler, SLOT( trackPaused() ), Qt::QueuedConnection );
|
|
||||||
|
|
||||||
connect( m_audioEngine, SIGNAL( resumed() ),
|
|
||||||
m_scrobbler, SLOT( trackResumed() ), Qt::QueuedConnection );
|
|
||||||
|
|
||||||
connect( m_audioEngine, SIGNAL( stopped() ),
|
|
||||||
m_scrobbler, SLOT( trackStopped() ), Qt::QueuedConnection );
|
|
||||||
#else
|
#else
|
||||||
qDebug() << "Setting NAM.";
|
qDebug() << "Setting NAM.";
|
||||||
TomahawkUtils::setNam( new QNetworkAccessManager );
|
TomahawkUtils::setNam( new QNetworkAccessManager );
|
||||||
|
Reference in New Issue
Block a user