Skip to content
Snippets Groups Projects
Commit 92ebaec0 authored by Julien Bonjean's avatar Julien Bonjean
Browse files

[#3376] Code cleanup

parent e5a12e06
Branches
Tags
No related merge requests found
...@@ -101,25 +101,11 @@ ...@@ -101,25 +101,11 @@
</arg> </arg>
</method> </method>
<method name="setNumberOfCredential" tp:name-for-bindings="setNumberOfCredential">
<tp:docstring>
</tp:docstring>
<arg type="s" name="accountID" direction="in">
<tp:docstring>
</tp:docstring>
</arg>
<arg type="i" name="number" direction="in">
<tp:docstring>
</tp:docstring>
</arg>
</method>
<method name="deleteAllCredential" tp:name-for-bindings="deleteAllCredential"> <method name="deleteAllCredential" tp:name-for-bindings="deleteAllCredential">
<tp:docstring> <tp:docstring>
</tp:docstring> </tp:docstring>
<arg type="s" name="accountID" direction="in"> <arg type="s" name="accountID" direction="in">
<tp:docstring> <tp:docstring>
Account ID
</tp:docstring> </tp:docstring>
</arg> </arg>
</method> </method>
...@@ -292,7 +278,6 @@ ...@@ -292,7 +278,6 @@
<method name="getVersion" tp:name-for-bindings="getVersion"> <method name="getVersion" tp:name-for-bindings="getVersion">
<tp:docstring> <tp:docstring>
Return SFLphone-daemon version
</tp:docstring> </tp:docstring>
<arg type="s" name="version" direction="out"> <arg type="s" name="version" direction="out">
<tp:docstring> <tp:docstring>
...@@ -302,8 +287,6 @@ ...@@ -302,8 +287,6 @@
<method name="getRingtoneList" tp:name-for-bindings="getRingtoneList"> <method name="getRingtoneList" tp:name-for-bindings="getRingtoneList">
<tp:docstring> <tp:docstring>
Return a list of valid Sun's .au sound file used
as ringtones.
</tp:docstring> </tp:docstring>
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/>
<arg type="as" name="list" direction="out"> <arg type="as" name="list" direction="out">
...@@ -314,7 +297,6 @@ ...@@ -314,7 +297,6 @@
<method name="getPlaybackDeviceList" tp:name-for-bindings="getPlaybackDeviceList"> <method name="getPlaybackDeviceList" tp:name-for-bindings="getPlaybackDeviceList">
<tp:docstring> <tp:docstring>
Provide a list of playback device from ALSA
</tp:docstring> </tp:docstring>
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/>
<arg type="as" name="list" direction="out"> <arg type="as" name="list" direction="out">
...@@ -325,7 +307,6 @@ ...@@ -325,7 +307,6 @@
<method name="getRecordDeviceList" tp:name-for-bindings="getRecordDeviceList"> <method name="getRecordDeviceList" tp:name-for-bindings="getRecordDeviceList">
<tp:docstring> <tp:docstring>
Provide a list of record device from ALSA
</tp:docstring> </tp:docstring>
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/>
<arg type="as" name="list" direction="out"> <arg type="as" name="list" direction="out">
...@@ -336,7 +317,6 @@ ...@@ -336,7 +317,6 @@
<method name="isRingtoneEnabled" tp:name-for-bindings="isRingtoneEnabled"> <method name="isRingtoneEnabled" tp:name-for-bindings="isRingtoneEnabled">
<tp:docstring> <tp:docstring>
Return true if ringtone is enabled, false otherwise
</tp:docstring> </tp:docstring>
<arg type="s" name="accountID" direction="in" /> <arg type="s" name="accountID" direction="in" />
<arg type="i" name="bool" direction="out"> <arg type="i" name="bool" direction="out">
...@@ -353,7 +333,6 @@ ...@@ -353,7 +333,6 @@
<method name="getRingtoneChoice" tp:name-for-bindings="getRingtoneChoice"> <method name="getRingtoneChoice" tp:name-for-bindings="getRingtoneChoice">
<tp:docstring> <tp:docstring>
Get current ringtone .au file selected
</tp:docstring> </tp:docstring>
<arg type="s" name="accountID" direction="in"/> <arg type="s" name="accountID" direction="in"/>
<arg type="s" name="tone" direction="out"> <arg type="s" name="tone" direction="out">
...@@ -364,12 +343,10 @@ ...@@ -364,12 +343,10 @@
<method name="setRingtoneChoice" tp:name-for-bindings="setRingtoneChoice"> <method name="setRingtoneChoice" tp:name-for-bindings="setRingtoneChoice">
<tp:docstring> <tp:docstring>
Set current ringtone .au file from list acquired using <tp:member-ref>getAccountList</tp:member-ref>
</tp:docstring> </tp:docstring>
<arg type="s" name="accountID" direction="in"/> <arg type="s" name="accountID" direction="in"/>
<arg type="s" name="tone" direction="in"> <arg type="s" name="tone" direction="in">
<tp:docstring> <tp:docstring>
A valid .au file path
</tp:docstring> </tp:docstring>
</arg> </arg>
</method> </method>
...@@ -669,7 +646,6 @@ ...@@ -669,7 +646,6 @@
</arg> </arg>
</method> </method>
<!-- Addressbook configuration --> <!-- Addressbook configuration -->
<method name="getAddressbookSettings" tp:name-for-bindings="getAddressbookSettings"> <method name="getAddressbookSettings" tp:name-for-bindings="getAddressbookSettings">
<tp:docstring> <tp:docstring>
...@@ -754,11 +730,6 @@ ...@@ -754,11 +730,6 @@
</method> </method>
<signal name="accountsChanged" tp:name-for-bindings="accountsChanged"> <signal name="accountsChanged" tp:name-for-bindings="accountsChanged">
<tp:docstring>
Signal emited on account changes. Clients should update
all account status with <tp:member-ref>getAccountDetails</tp:member-ref>
iterating over the list provided by <tp:member-ref>getAccountList</tp:member-ref>
</tp:docstring>
</signal> </signal>
<signal name="errorAlert" tp:name-for-bindings="errorAlert"> <signal name="errorAlert" tp:name-for-bindings="errorAlert">
...@@ -771,13 +742,10 @@ ...@@ -771,13 +742,10 @@
<!-- TLS Methods --> <!-- TLS Methods -->
<method name="getSupportedTlsMethod" tp:name-for-bindings="getSupportedTlsMethod"> <method name="getSupportedTlsMethod" tp:name-for-bindings="getSupportedTlsMethod">
<tp:docstring> <tp:docstring>
Provide a list of supported TLS method
</tp:docstring> </tp:docstring>
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/>
<arg type="as" name="list" direction="out"> <arg type="as" name="list" direction="out">
<tp:docstring> <tp:docstring>
A list of TLS method: (TLSv1, SSLv1, SSLv2,
SSLv3, SSLv23)
</tp:docstring> </tp:docstring>
</arg> </arg>
</method> </method>
...@@ -785,106 +753,62 @@ ...@@ -785,106 +753,62 @@
<method name="getTlsSettingsDefault" tp:name-for-bindings="getTlsSettingsDefault"> <method name="getTlsSettingsDefault" tp:name-for-bindings="getTlsSettingsDefault">
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="MapStringString"/> <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="MapStringString"/>
<tp:docstring> <tp:docstring>
Get default TLS setting for new accounts
</tp:docstring> </tp:docstring>
<arg type="a{ss}" name="details" direction="out"> <arg type="a{ss}" name="details" direction="out">
<tp:docstring> <tp:docstring>
A hash table containing details. Refer
to <tp:member-ref>getTlsSettings</tp:member-ref>
for possible keys
</tp:docstring> </tp:docstring>
</arg> </arg>
</method> </method>
<method name="getTlsSettings" tp:name-for-bindings="getTlsSettings"> <method name="getTlsSettings" tp:name-for-bindings="getTlsSettings">
<tp:docstring> <tp:docstring>
Get current TLS setting for a specific account
</tp:docstring> </tp:docstring>
<arg type="s" name="accountID" direction="in">
<tp:docstring>
The account ID
</tp:docstring>
</arg>
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="MapStringString"/> <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="MapStringString"/>
<arg type="a{ss}" name="details" direction="out"> <arg type="a{ss}" name="details" direction="out">
<tp:docstring> <tp:docstring>
A hash table containing details with key:
<ul>
<li>"TLS.listenerPort": valid numerical port</li>
<li>"TLS.enable": true/false</li>
<li>"TLS.certificateListFile": A valid path to
a .pem file containing CA certificate</li>
<li>"TLS.certificateFile": A valid path to a
file containing the public end-point
certificate (optional)</li>
<li>"TLS.privateKeyFile": A valid path to a
file containing the public end-point private
key (optional)</li>
<li>"TLS.password": Public end-point private
key password (optional)</li>
<li>"TLS.method": (TLSv1, SSLv1, SSLv2,
SSLv3, SSLv23)</li>
</ul>
</tp:docstring> </tp:docstring>
</arg> </arg>
</method> </method>
<method name="setTlsSettings" tp:name-for-bindings="setTlsSettings"> <method name="setTlsSettings" tp:name-for-bindings="setTlsSettings">
<tp:docstring> <tp:docstring>
Update TLS setting for a specific account
</tp:docstring> </tp:docstring>
<annotation name="com.trolltech.QtDBus.QtTypeName.In1" value="MapStringString"/> <annotation name="com.trolltech.QtDBus.QtTypeName.In1" value="MapStringString"/>
<arg type="s" name="accountID" direction="in">
<tp:docstring>
The account ID
</tp:docstring>
</arg>
<arg type="a{ss}" name="details" direction="in"> <arg type="a{ss}" name="details" direction="in">
<tp:docstring> <tp:docstring>
A hash table containing details. Refer
to <tp:member-ref>getTlsSettings</tp:member-ref>
for possible keys.
</tp:docstring> </tp:docstring>
</arg> </arg>
</method> </method>
<method name="getAddrFromInterfaceName" tp:name-for-bindings="getAddrFromInterfaceName"> <method name="getAddrFromInterfaceName" tp:name-for-bindings="getAddrFromInterfaceName">
<tp:docstring> <tp:docstring>
Resolve interface IPv4 address provided its name.
</tp:docstring> </tp:docstring>
<arg type="s" name="interface" direction="in"> <arg type="s" name="interface" direction="in">
<tp:docstring> <tp:docstring>
Interface name
</tp:docstring> </tp:docstring>
</arg> </arg>
<arg type="s" name="address" direction="out"> <arg type="s" name="address" direction="out">
<tp:docstring> <tp:docstring>
Interface IPv4 address
</tp:docstring> </tp:docstring>
</arg> </arg>
</method> </method>
<method name="getAllIpInterface" tp:name-for-bindings="getAllIpInterface"> <method name="getAllIpInterface" tp:name-for-bindings="getAllIpInterface">
<tp:docstring> <tp:docstring>
Provide a list of IP interface's IPv4 address.
</tp:docstring> </tp:docstring>
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/>
<arg type="as" name="list" direction="out"> <arg type="as" name="list" direction="out">
<tp:docstring> <tp:docstring>
A list of interface's IPv4 address
</tp:docstring> </tp:docstring>
</arg> </arg>
</method> </method>
<method name="getAllIpInterfaceByName" tp:name-for-bindings="getAllIpInterfaceByName"> <method name="getAllIpInterfaceByName" tp:name-for-bindings="getAllIpInterfaceByName">
<tp:docstring> <tp:docstring>
Provide a list of IP interface's name: default
(0.0.0.0), lo, eth0 ...
</tp:docstring> </tp:docstring>
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/> <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="VectorString"/>
<arg type="as" name="list" direction="out"> <arg type="as" name="list" direction="out">
<tp:docstring> <tp:docstring>
A list of interface's name
</tp:docstring> </tp:docstring>
</arg> </arg>
</method> </method>
......
...@@ -938,22 +938,6 @@ dbus_set_credential(account_t *a, int index) ...@@ -938,22 +938,6 @@ dbus_set_credential(account_t *a, int index)
} }
} }
void void
dbus_set_number_of_credential(account_t *a, int number)
{
DEBUG("Sending number of credential %d to server", number);
GError *error = NULL;
org_sflphone_SFLphone_ConfigurationManager_set_number_of_credential(
configurationManagerProxy, a->accountID, number, &error);
if (error)
{
ERROR ("Failed to call set_number_of_credential() on ConfigurationManager: %s",
error->message);
g_error_free(error);
}
}
void
dbus_delete_all_credential(account_t *a) dbus_delete_all_credential(account_t *a)
{ {
DEBUG("Deleting all credentials\n"); DEBUG("Deleting all credentials\n");
......
...@@ -145,13 +145,6 @@ int dbus_get_number_of_credential(gchar * accountID); ...@@ -145,13 +145,6 @@ int dbus_get_number_of_credential(gchar * accountID);
*/ */
void dbus_delete_all_credential(account_t *a); void dbus_delete_all_credential(account_t *a);
/**
* ConfigurationManager - Set the number of credential that
* is being used.
* @param a The account id
*/
void dbus_set_number_of_credential(account_t *a, int number);
/** /**
* ConfigurationManager - Set the additional credential information * ConfigurationManager - Set the additional credential information
* of a specific account, for a specific credential index. * of a specific account, for a specific credential index.
......
...@@ -587,7 +587,7 @@ gpdf_notification_add (const char *key, ...@@ -587,7 +587,7 @@ gpdf_notification_add (const char *key,
callback_data); callback_data);
if (notifiers != NULL) { if (notifiers != NULL) {
*notifiers = g_list_append(*notifiers, *notifiers = g_list_append(*notifiers,
(gpointer)id); GINT_TO_POINTER(id));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment