diff --git a/src/media/avrecording.cpp b/src/media/avrecording.cpp index c3bc5e65ccbd18154db57f9c238f581105c7b1f7..2bfac747d188261d27f98b5f2b5b8cd6688f8ed6 100644 --- a/src/media/avrecording.cpp +++ b/src/media/avrecording.cpp @@ -189,7 +189,7 @@ void Media::AVRecording::play() void Media::AVRecording::stop() { CallManagerInterface& callManager = CallManager::instance(); - Q_NOREPLY callManager.stopRecordedFilePlayback(path().path()); + Q_NOREPLY callManager.stopRecordedFilePlayback(); emit stopped(); RecordingPlaybackManager::instance().desactivateRecording(this); diff --git a/src/qtwrapper/callmanager_wrap.h b/src/qtwrapper/callmanager_wrap.h index fd67980aedb1e19b2cdcbab8a136150235ca7df1..75874fab5ef74a2a0704c2b37b3142282596ba56 100644 --- a/src/qtwrapper/callmanager_wrap.h +++ b/src/qtwrapper/callmanager_wrap.h @@ -327,9 +327,9 @@ public Q_SLOTS: // METHODS DRing::startTone(start, type); } - void stopRecordedFilePlayback(const QString &filepath) + void stopRecordedFilePlayback() { - DRing::stopRecordedFilePlayback(filepath.toStdString()); + DRing::stopRecordedFilePlayback(); } bool toggleRecording(const QString &callID) diff --git a/src/ringtonemodel.cpp b/src/ringtonemodel.cpp index eb7ff80fa89ab028df8715d83079912f459acff9..ecd1e917f2627db3bd9bf22471cda19b5d816f5a 100644 --- a/src/ringtonemodel.cpp +++ b/src/ringtonemodel.cpp @@ -240,7 +240,7 @@ void RingtoneModelPrivate::slotStopTimer() { if (m_pCurrent) { CallManagerInterface& callManager = CallManager::instance(); - callManager.stopRecordedFilePlayback(m_pCurrent->path()); + callManager.stopRecordedFilePlayback(); m_isPlaying = false; const QModelIndex& idx = q_ptr->index(m_lRingtone.indexOf(m_pCurrent),0); emit q_ptr->dataChanged(idx,q_ptr->index(idx.row(),1)); diff --git a/test/mocks/callmanager_mock.h b/test/mocks/callmanager_mock.h index ec2118dbc8c38ace50f1037d5b5d010ff891663e..fb9062e65f72afa86037081aaff7527dbccf8232 100644 --- a/test/mocks/callmanager_mock.h +++ b/test/mocks/callmanager_mock.h @@ -240,10 +240,8 @@ public Q_SLOTS: // METHODS Q_UNUSED(type) } - void stopRecordedFilePlayback(const QString &filepath) - { - Q_UNUSED(filepath) - } + void stopRecordedFilePlayback() + { } bool toggleRecording(const QString &callID) {