1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

compile with new snore api

This commit is contained in:
Patrick von Reth
2014-01-12 01:42:47 +01:00
parent 68be28cf81
commit d23a9c4fe2

View File

@@ -76,8 +76,7 @@ SnoreNotifyPlugin::SnoreNotifyPlugin()
addAlert( InfoNowStopped, tr( "Playback Stopped" ) );
addAlert( InfoInboxReceived, tr( "You received a Song recomondation" ) );
m_snore->addApplication( m_application );
m_snore->applicationIsInitialized( m_application );
m_snore->registerApplication( m_application );
connect( m_snore, SIGNAL( actionInvoked( Snore::Notification ) ), this, SLOT( slotActionInvoked( Snore::Notification ) ) );
}
@@ -87,7 +86,7 @@ SnoreNotifyPlugin::~SnoreNotifyPlugin()
{
tDebug( LOGVERBOSE ) << Q_FUNC_INFO;
m_snore->removeApplication(m_application->name());
m_snore->deregisterApplication( m_application );
foreach( Snore::Alert* alert, m_alerts )
{
alert->deleteLater();