mirror of
https://github.com/KDE/kasts.git
synced 2024-12-26 08:25:16 +01:00
Remove redundant slots.
This commit is contained in:
parent
5e350b9d5f
commit
5b548c96c8
@ -23,11 +23,11 @@ MediaSessionClient::MediaSessionClient(AudioManager *audioPlayer, QObject *paren
|
|||||||
// Sets the playback duration metadata.
|
// Sets the playback duration metadata.
|
||||||
connect(m_audioPlayer, &AudioManager::positionChanged, this, &MediaSessionClient::setPosition);
|
connect(m_audioPlayer, &AudioManager::positionChanged, this, &MediaSessionClient::setPosition);
|
||||||
// Sets the playback position metadata.
|
// Sets the playback position metadata.
|
||||||
connect(m_audioPlayer, &AudioManager::playing, this, &MediaSessionClient::setPlaying);
|
connect(m_audioPlayer, &AudioManager::playing, this, &MediaSessionClient::setSessionPlaybackState);
|
||||||
// Sets the playback to playing.
|
// Sets the playback to playing.
|
||||||
connect(m_audioPlayer, &AudioManager::paused, this, &MediaSessionClient::setPaused);
|
connect(m_audioPlayer, &AudioManager::paused, this, &MediaSessionClient::setSessionPlaybackState);
|
||||||
// Sets the playback to paused.
|
// Sets the playback to paused.
|
||||||
connect(m_audioPlayer, &AudioManager::stopped, this, &MediaSessionClient::setStopped);
|
connect(m_audioPlayer, &AudioManager::stopped, this, &MediaSessionClient::setSessionPlaybackState);
|
||||||
// Sets the playback to stopped.
|
// Sets the playback to stopped.
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,24 +105,3 @@ void MediaSessionClient::setPosition()
|
|||||||
qint64 position = qint64(m_audioPlayer->position()) * 1000;
|
qint64 position = qint64(m_audioPlayer->position()) * 1000;
|
||||||
QAndroidJniObject::callStaticMethod<void>("org/kde/kasts/KastsActivity", "setPosition", "(I)V", position);
|
QAndroidJniObject::callStaticMethod<void>("org/kde/kasts/KastsActivity", "setPosition", "(I)V", position);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MediaSessionClient::setPlaying()
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Sets the media session's current playback state to playing.
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
void MediaSessionClient::setPaused()
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Sets the media session's current playback state to paused.
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
void MediaSessionClient::setStopped()
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Sets the media session's current playback state to stopped.
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user