Remove redundant slots.

This commit is contained in:
Swapnil Tripathi 2021-08-14 20:53:47 +05:30 committed by Tobias Fella
parent 5e350b9d5f
commit 5b548c96c8

View File

@ -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.
*/
}