diff --git a/bin/dbus/cx.ring.Ring.CallManager.xml b/bin/dbus/cx.ring.Ring.CallManager.xml index 84a3394518724f817d7f3f51386a645619df51fe..c2ae995013f29dc86beee4fa083fa3a9fdae70f3 100644 --- a/bin/dbus/cx.ring.Ring.CallManager.xml +++ b/bin/dbus/cx.ring.Ring.CallManager.xml @@ -706,7 +706,6 @@ <method name="stopRecordedFilePlayback" tp:name-for-bindings="stopRecordedFilePlayback"> <tp:added version="0.9.14"/> <tp:docstring/> - <arg type="s" name="filepath" direction="in"/> </method> <signal name="voiceMailNotify" tp:name-for-bindings="voiceMailNotify"> diff --git a/bin/dbus/dbuscallmanager.cpp b/bin/dbus/dbuscallmanager.cpp index 3bbcf45081b97ab29a685224f57a173490164529..7ebf8bbf9755f30c36c5b8ed29774ca0d91585d3 100644 --- a/bin/dbus/dbuscallmanager.cpp +++ b/bin/dbus/dbuscallmanager.cpp @@ -208,9 +208,9 @@ DBusCallManager::startRecordedFilePlayback(const std::string& filepath) -> declt } void -DBusCallManager::stopRecordedFilePlayback(const std::string& filepath) +DBusCallManager::stopRecordedFilePlayback() { - DRing::stopRecordedFilePlayback(filepath); + DRing::stopRecordedFilePlayback(); } auto diff --git a/bin/dbus/dbuscallmanager.h b/bin/dbus/dbuscallmanager.h index 2f504200081236e427c80c5474265864ed76ce87..9ee0d60888fba68a5e1ad37b66ecc509c69edfcb 100644 --- a/bin/dbus/dbuscallmanager.h +++ b/bin/dbus/dbuscallmanager.h @@ -85,7 +85,7 @@ class DBusCallManager : std::string getConferenceId(const std::string& callID); std::map<std::string, std::string> getConferenceDetails(const std::string& callID); bool startRecordedFilePlayback(const std::string& filepath); - void stopRecordedFilePlayback(const std::string& filepath); + void stopRecordedFilePlayback(); bool toggleRecording(const std::string& callID); void setRecording(const std::string& callID); void recordPlaybackSeek(const double& value); diff --git a/src/client/callmanager.cpp b/src/client/callmanager.cpp index 28dfd67fca3ee461162d48f2b424e992b2b07c8a..c8b8c5bf174dd68296a7c8bf8cac7bfdc59ff3a3 100644 --- a/src/client/callmanager.cpp +++ b/src/client/callmanager.cpp @@ -247,9 +247,9 @@ startRecordedFilePlayback(const std::string& filepath) } void -stopRecordedFilePlayback(const std::string& filepath) +stopRecordedFilePlayback() { - ring::Manager::instance().stopRecordedFilePlayback(filepath); + ring::Manager::instance().stopRecordedFilePlayback(); } bool diff --git a/src/dring/callmanager_interface.h b/src/dring/callmanager_interface.h index 5ddbc669e74cc7a246fdc795b080945be0c43706..d8e1e718801e378d30ad32bde1f84be266192dcd 100644 --- a/src/dring/callmanager_interface.h +++ b/src/dring/callmanager_interface.h @@ -75,7 +75,7 @@ void stopSmartInfo(); /* File Playback methods */ bool startRecordedFilePlayback(const std::string& filepath); -void stopRecordedFilePlayback(const std::string& filepath); +void stopRecordedFilePlayback(); /* General audio methods */ bool toggleRecording(const std::string& callID); diff --git a/src/manager.cpp b/src/manager.cpp index f74a26dd382496039820f74c6f690894b84f67b2..b4f30d7a5f81c60922cda08b2860b1913d685a40 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -2415,11 +2415,9 @@ Manager::recordingPlaybackSeek(const double value) } void -Manager::stopRecordedFilePlayback(const std::string& filepath) +Manager::stopRecordedFilePlayback() { - // TODO: argument is uneeded (API change) - - RING_DBG("Stop recorded file playback %s", filepath.c_str()); + RING_DBG("Stop recorded file playback"); checkAudio(); pimpl_->toneCtrl_.stopAudioFile(); diff --git a/src/manager.h b/src/manager.h index f28a641ea97aca3b03ab70f60f97603abde0087d..2aa19f6245bb12e02cc9fb9eb6590b2114eb31ce 100644 --- a/src/manager.h +++ b/src/manager.h @@ -593,16 +593,15 @@ class Manager { /** * Start playback fo a recorded file if and only if audio layer is not already started. * @param File path of the file to play - */ + */ bool startRecordedFilePlayback(const std::string&); void recordingPlaybackSeek(const double value); /** * Stop playback of recorded file - * @param File of the file to stop */ - void stopRecordedFilePlayback(const std::string&); + void stopRecordedFilePlayback(); /** * Set the maximum number of days to keep in the history