diff --git a/daemon/src/dbus/configurationmanager-introspec.xml b/daemon/src/dbus/configurationmanager-introspec.xml index 7168fbf0defda60e77109c7b546f9d61ab53afde..7ff88b660f333966bf55e852e027ac438284f292 100755 --- a/daemon/src/dbus/configurationmanager-introspec.xml +++ b/daemon/src/dbus/configurationmanager-introspec.xml @@ -272,26 +272,6 @@ </arg> </method> - <method name="getRingtoneChoice" tp:name-for-bindings="getRingtoneChoice"> - <tp:docstring> - </tp:docstring> - <arg type="s" name="accountID" direction="in"/> - <arg type="s" name="tone" direction="out"> - <tp:docstring> - </tp:docstring> - </arg> - </method> - - <method name="setRingtoneChoice" tp:name-for-bindings="setRingtoneChoice"> - <tp:docstring> - </tp:docstring> - <arg type="s" name="accountID" direction="in"/> - <arg type="s" name="tone" direction="in"> - <tp:docstring> - </tp:docstring> - </arg> - </method> - <method name="getAudioManager" tp:name-for-bindings="getAudioManager"> <tp:docstring> </tp:docstring> diff --git a/daemon/src/dbus/configurationmanager.cpp b/daemon/src/dbus/configurationmanager.cpp index 632f7280e1e585871af3ba56dcdb757ca8e7cafb..f248ed2720d56de9334b0dc87c9270b8e08a015a 100644 --- a/daemon/src/dbus/configurationmanager.cpp +++ b/daemon/src/dbus/configurationmanager.cpp @@ -462,16 +462,6 @@ int32_t ConfigurationManager::isIax2Enabled (void) return Manager::instance().isIax2Enabled(); } -std::string ConfigurationManager::getRingtoneChoice (const std::string& accountID) -{ - return Manager::instance().getRingtoneChoice (accountID); -} - -void ConfigurationManager::setRingtoneChoice (const std::string& accountID, const std::string& tone) -{ - Manager::instance().setRingtoneChoice (accountID, tone); -} - std::string ConfigurationManager::getRecordPath (void) { return Manager::instance().getRecordPath(); diff --git a/daemon/src/dbus/configurationmanager.h b/daemon/src/dbus/configurationmanager.h index 3360423eb3915b99d1aa6bc8438e154e733c5527..bd0cfce84b3228ae56f5540ba82455f57b73eac5 100644 --- a/daemon/src/dbus/configurationmanager.h +++ b/daemon/src/dbus/configurationmanager.h @@ -105,8 +105,6 @@ class ConfigurationManager bool isMd5CredentialHashing (void); void setMd5CredentialHashing (const bool& enabled); int32_t isIax2Enabled (void); - std::string getRingtoneChoice (const std::string& accountID); - void setRingtoneChoice (const std::string& accountID, const std::string& tone); std::string getRecordPath (void); void setRecordPath (const std::string& recPath); bool getIsAlwaysRecording(void); diff --git a/daemon/src/managerimpl.cpp b/daemon/src/managerimpl.cpp index 5810bb2f32c549bcd1d5b5d56a22dfa83343c057..f302ac225ca99c907dc98caa1ad4db228ce60bd1 100644 --- a/daemon/src/managerimpl.cpp +++ b/daemon/src/managerimpl.cpp @@ -2508,51 +2508,6 @@ void ManagerImpl::ringtoneEnabled (const std::string& id) } -std::string ManagerImpl::getRingtoneChoice (const std::string& id) const -{ - - // retreive specified account id - Account *account = getAccount (id); - - if (!account) { - _warn ("Manager: Warning: Not a valid account ID for ringone choice"); - return ""; - } - - // we need the absolute path - std::string tone_name = account->getRingtonePath(); - std::string tone_path; - - if (tone_name.find (DIR_SEPARATOR_CH) == std::string::npos) { - // check in ringtone directory ($(PREFIX)/share/sflphone/ringtones) - tone_path = std::string (PROGSHAREDIR) + DIR_SEPARATOR_STR + RINGDIR - + DIR_SEPARATOR_STR + tone_name; - } else { - // the absolute has been saved; do nothing - tone_path = tone_name; - } - - _debug ("Manager: get ringtone path %s", tone_path.c_str()); - - return tone_path; -} - -void ManagerImpl::setRingtoneChoice (const std::string& tone, const std::string& id) -{ - _debug ("Manager: Set ringtone path %s to account", tone.c_str()); - - // retreive specified account id - Account *account = getAccount (id); - - if (!account) { - _warn ("Manager: Warning: Not a valid account ID for ringtone choice"); - return; - } - - // we save the absolute path - account->setRingtonePath (tone); -} - std::string ManagerImpl::getRecordPath (void) const { return audioPreference.getRecordpath(); diff --git a/daemon/src/managerimpl.h b/daemon/src/managerimpl.h index 14cb8984a611921dac026f3678e6d65d255c2593..5f9b5dd51cf6900135ab1969aeeeea9de991dc04 100644 --- a/daemon/src/managerimpl.h +++ b/daemon/src/managerimpl.h @@ -657,18 +657,6 @@ class ManagerImpl */ void ringtoneEnabled (const std::string& id); - /** - * Get the ringtone - * @return gchar* The file name selected as a ringtone - */ - std::string getRingtoneChoice (const std::string& id) const; - - /** - * Set a ringtone - * @param tone The file name of the ringtone - */ - void setRingtoneChoice (const std::string&, const std::string& id); - /** * Get the recording path from configuration tree * @return the string correspoding to the path diff --git a/gnome/src/dbus/configurationmanager-introspec.xml b/gnome/src/dbus/configurationmanager-introspec.xml index 7168fbf0defda60e77109c7b546f9d61ab53afde..7ff88b660f333966bf55e852e027ac438284f292 100755 --- a/gnome/src/dbus/configurationmanager-introspec.xml +++ b/gnome/src/dbus/configurationmanager-introspec.xml @@ -272,26 +272,6 @@ </arg> </method> - <method name="getRingtoneChoice" tp:name-for-bindings="getRingtoneChoice"> - <tp:docstring> - </tp:docstring> - <arg type="s" name="accountID" direction="in"/> - <arg type="s" name="tone" direction="out"> - <tp:docstring> - </tp:docstring> - </arg> - </method> - - <method name="setRingtoneChoice" tp:name-for-bindings="setRingtoneChoice"> - <tp:docstring> - </tp:docstring> - <arg type="s" name="accountID" direction="in"/> - <arg type="s" name="tone" direction="in"> - <tp:docstring> - </tp:docstring> - </arg> - </method> - <method name="getAudioManager" tp:name-for-bindings="getAudioManager"> <tp:docstring> </tp:docstring> diff --git a/gnome/src/dbus/dbus.c b/gnome/src/dbus/dbus.c index 08eb4eaa315bd4a2d87f457a6cae68462cec566f..766d752410c9589626b556b9a7f58cffd50ac4da 100644 --- a/gnome/src/dbus/dbus.c +++ b/gnome/src/dbus/dbus.c @@ -1763,33 +1763,6 @@ dbus_set_echo_cancel_delay(int delay) } } -gchar* -dbus_get_ringtone_choice (const gchar *accountID) -{ - gchar* tone; - GError* error = NULL; - org_sflphone_SFLphone_ConfigurationManager_get_ringtone_choice ( - configurationManagerProxy, accountID, &tone, &error); - - if (error) { - g_error_free (error); - } - - return tone; -} - -void -dbus_set_ringtone_choice (const gchar *accountID, const gchar* tone) -{ - GError* error = NULL; - org_sflphone_SFLphone_ConfigurationManager_set_ringtone_choice ( - configurationManagerProxy, accountID, tone, &error); - - if (error) { - g_error_free (error); - } -} - int dbus_is_iax2_enabled() diff --git a/gnome/src/dbus/dbus.h b/gnome/src/dbus/dbus.h index 91159ecf4355c9adf50eae96fa8298960359f496..18627f1cf7ac44a5a02da1470a3b8607cadddbeb 100644 --- a/gnome/src/dbus/dbus.h +++ b/gnome/src/dbus/dbus.h @@ -325,18 +325,6 @@ void dbus_set_echo_cancel_delay(int delay); */ int dbus_is_iax2_enabled (void); -/** - * ConfigurationManager - Get the ringtone - * @return gchar* The file name selected as a ringtone - */ -gchar* dbus_get_ringtone_choice (const gchar *accountID); - -/** - * ConfigurationManager - Set a ringtone - * @param tone The file name of the ringtone - */ -void dbus_set_ringtone_choice (const gchar *accountID, const gchar* tone); - /** * ConfigurationManager - Gives the maximum number of days the user wants to have in the history * @return double The maximum number of days