60
61
* CallManager - Hold a call
61
62
* @param c The call to hold
63
void dbus_hold (const callable_obj_t * c );
64
void dbus_hold (const callable_obj_t * c);
66
67
* CallManager - Unhold a call
67
68
* @param c The call to unhold
69
void dbus_unhold (const callable_obj_t * c );
70
void dbus_unhold (const callable_obj_t * c);
72
73
* CallManager - Hang up a call
73
74
* @param c The call to hang up
75
void dbus_hang_up (const callable_obj_t * c );
76
void dbus_hang_up (const callable_obj_t * c);
78
79
* CallManager - Transfer a call
110
111
* @param accountID The unique of the account
111
112
* @return GHashTable* The details of the account
113
GHashTable * dbus_account_details(gchar * accountID);
114
GHashTable * dbus_account_details (gchar * accountID);
116
117
* ConfigurationManager - Set the details of a specific account
117
118
* @param a The account to update
119
void dbus_set_account_details(account_t *a);
120
void dbus_set_account_details (account_t *a);
122
* ConfigurationManager - Set the additional credential information
123
* ConfigurationManager - Set the additional credential information
123
124
* of a specific account, for a specific credential index.
124
125
* This function will add the new section on the server side
125
126
* if it cannot be found.
126
127
* @param a The account to update
127
128
* @param index The index for the credential to update
129
void dbus_set_credential(account_t *a, int index);
130
void dbus_set_credential (account_t *a, int index);
132
* ConfigurationManager - Set the additional credential information
133
* ConfigurationManager - Set the additional credential information
133
134
* of a specific account, for a specific credential index.
134
135
* This function will add the new section on the server side
135
136
* if it cannot be found.
136
137
* @param a The account to update
137
138
* @return int The number of credentials specified
139
int dbus_get_number_of_credential(gchar * accountID);
140
int dbus_get_number_of_credential (gchar * accountID);
142
143
* ConfigurationManager - Delete all credentials defined for
143
144
* a given account.
144
145
* @param a The account id
146
void dbus_delete_all_credential(account_t *a);
149
* ConfigurationManager - Set the number of credential that
151
* @param a The account id
153
void dbus_set_number_of_credential(account_t *a, int number);
156
* ConfigurationManager - Set the additional credential information
147
void dbus_delete_all_credential (account_t *a);
150
* ConfigurationManager - Set the additional credential information
157
151
* of a specific account, for a specific credential index.
158
152
* This function will add the new section on the server side
159
153
* if it cannot be found.
161
155
* @param index The credential index
162
156
* @return GHashTable* The credential at index "index" for the given account
164
GHashTable* dbus_get_credential(gchar * accountID, int index);
167
* ConfigurationManager - Get the details for the ip2ip profile
169
GHashTable * dbus_get_ip2_ip_details(void);
172
* ConfigurationManager - Set the details for the ip2ip profile
174
void dbus_set_ip2ip_details(GHashTable * properties);
158
GHashTable* dbus_get_credential (gchar * accountID, int index);
161
* ConfigurationManager - Get the details for the ip2ip profile
163
GHashTable * dbus_get_ip2_ip_details (void);
166
* ConfigurationManager - Set the details for the ip2ip profile
168
void dbus_set_ip2ip_details (GHashTable * properties);
177
171
* ConfigurationManager - Send registration request
180
174
* 0 for unregistration request
181
175
* 1 for registration request
183
void dbus_send_register( gchar* accountID , const guint enable );
177
void dbus_send_register (gchar* accountID , const guint enable);
186
180
* ConfigurationManager - Add an account to the list
187
181
* @param a The account to add
189
gchar* dbus_add_account(account_t *a);
183
gchar* dbus_add_account (account_t *a);
192
186
* ConfigurationManager - Remove an account from the list
193
187
* @param accountID The account to remove
195
void dbus_remove_account(gchar * accountID);
189
void dbus_remove_account (gchar * accountID);
198
192
* ConfigurationManager - Set volume for speaker/mic
199
193
* @param device The speaker or the mic
200
194
* @param value The new value
202
void dbus_set_volume(const gchar * device, gdouble value);
196
void dbus_set_volume (const gchar * device, gdouble value);
205
199
* ConfigurationManager - Get the volume of a device
206
200
* @param device The speaker or the mic
208
gdouble dbus_get_volume(const gchar * device);
202
gdouble dbus_get_volume (const gchar * device);
211
205
* ConfigurationManager - Play DTMF
212
206
* @param key The DTMF to send
214
void dbus_play_dtmf(const gchar * key);
208
void dbus_play_dtmf (const gchar * key);
217
211
* ConfigurationManager - Get the codecs list
249
243
* CallManager - return the codec name
250
244
* @param callable_obj_t* current call
252
gchar* dbus_get_current_codec_name(const callable_obj_t * c);
255
* ConfigurationManager - Get the list of available input audio plugins
256
* @return gchar** The list of plugins
258
gchar** dbus_get_input_audio_plugin_list();
246
gchar* dbus_get_current_codec_name (const callable_obj_t * c);
261
249
* ConfigurationManager - Get the list of available output audio plugins
262
250
* @return gchar** The list of plugins
264
gchar** dbus_get_output_audio_plugin_list();
267
* ConfigurationManager - Select an input audio plugin
268
* @param audioPlugin The string description of the plugin
270
void dbus_set_input_audio_plugin(gchar* audioPlugin);
252
gchar** dbus_get_audio_plugin_list();
256
* ConfigurationManager - Select an input audio plugin
257
* @param audioPlugin The string description of the plugin
259
void dbus_set_audio_plugin (gchar* audioPlugin);
262
* ConfigurationManager - Select an input audio plugin
263
* @param audioPlugin The string description of the plugin
265
void dbus_set_input_audio_plugin (gchar* audioPlugin);
273
268
* ConfigurationManager - Select an output audio plugin
274
269
* @param audioPlugin The string description of the plugin
276
void dbus_set_output_audio_plugin(gchar* audioPlugin);
271
void dbus_set_output_audio_plugin (gchar* audioPlugin);
279
274
* ConfigurationManager - Get the list of available output audio devices
322
317
gchar* dbus_get_current_audio_output_plugin();
325
* ConfigurationManager - Query to server to
320
* ConfigurationManager - Get the current noise suppressor state
321
* @return gchar* The state (enabled/disabled)
323
gchar *dbus_get_noise_suppress_state (void);
326
* ConfigurationManager - Set the current noise suppressor state
327
* @param gchar* The state (enabled/disabled)
329
void dbus_set_noise_suppress_state (gchar *state);
333
* ConfigurationManager - Query to server to
326
334
* know if MD5 credential hashing is enabled.
327
335
* @return True if enabled, false otherwise
350
358
* @return int 1 if enabled
353
int dbus_is_ringtone_enabled( void );
361
int dbus_is_ringtone_enabled (const gchar *accountID);
356
364
* ConfigurationManager - Set the ringtone option
357
365
* Inverse current value
359
void dbus_ringtone_enabled( void );
367
void dbus_ringtone_enabled (const gchar *accountID);
362
370
* ConfigurationManager - Get the ringtone
363
371
* @return gchar* The file name selected as a ringtone
365
gchar* dbus_get_ringtone_choice( void );
373
gchar* dbus_get_ringtone_choice (const gchar *accountID);
368
376
* ConfigurationManager - Set a ringtone
369
377
* @param tone The file name of the ringtone
371
void dbus_set_ringtone_choice( const gchar* tone );
374
* ConfigurationManager - Set the dialpad visible or not
376
void dbus_set_dialpad (gboolean display);
379
* ConfigurationManager - Tells if the user wants to display the dialpad or not
380
* @return int 1 if dialpad has to be displayed
383
int dbus_get_dialpad( void );
386
* ConfigurationManager - Set the searchbar visible or not
388
void dbus_set_searchbar( );
391
* ConfigurationManager - Tells if the user wants to display the search bar or not
392
* @return int 1 if the search bar has to be displayed
395
int dbus_get_searchbar( void );
398
* ConfigurationManager - Set the volume controls visible or not
400
void dbus_set_volume_controls (gboolean display);
403
* ConfigurationManager - Tells if the user wants to display the volume controls or not
404
* @return int 1 if the controls have to be displayed
407
int dbus_get_volume_controls( void );
410
* ConfigurationManager - Configure the start-up option
411
* At startup, SFLphone can be displayed or start hidden in the system tray
413
void dbus_start_hidden( void );
379
void dbus_set_ringtone_choice (const gchar *accountID, const gchar* tone);
416
382
* ConfigurationManager - Gives the maximum number of days the user wants to have in the history
417
383
* @return double The maximum number of days
419
guint dbus_get_history_limit( void );
385
guint dbus_get_history_limit (void);
422
388
* ConfigurationManager - Gives the maximum number of days the user wants to have in the history
424
390
void dbus_set_history_limit (const guint days);
426
void dbus_set_history_enabled (void);
428
gchar* dbus_get_history_enabled (void);
431
* ConfigurationManager - Configure the start-up option
432
* @return int 1 if SFLphone should start in the system tray
435
int dbus_is_start_hidden( void );
438
* ConfigurationManager - Configure the popup behaviour
439
* When SFLphone is in the system tray, you can configure when it popups
440
* Never or only on incoming calls
442
void dbus_switch_popup_mode( void );
445
* ConfigurationManager - Configure the popup behaviour
446
* @return int 1 if it should popup on incoming calls
447
* 0 if it should never popups
449
int dbus_popup_mode( void );
452
393
* ConfigurationManager - Returns the selected audio manager
453
394
* @return int 0 ALSA
456
int dbus_get_audio_manager( void );
397
int dbus_get_audio_manager (void);
459
400
* ConfigurationManager - Set the audio manager
460
401
* @param api 0 ALSA
463
void dbus_set_audio_manager( int api );
466
* ConfigurationManager - Configure the notification level
467
* @return int 0 disable
470
guint dbus_get_notify( void );
473
* ConfigurationManager - Configure the notification level
475
void dbus_set_notify( void );
404
void dbus_set_audio_manager (int api);
478
407
* ConfigurationManager - Start a tone when a new call is open and no numbers have been dialed
489
418
* @param pid The pid of the processus client
490
419
* @param name The string description of the client. Here : GTK+ Client
492
void dbus_register( int pid, gchar * name);
421
void dbus_register (int pid, gchar * name);
495
424
* Instance - Send unregistration request to dbus services
496
425
* @param pid The pid of the processus
498
void dbus_unregister(int pid);
500
void dbus_set_sip_address(const gchar* address);
502
gint dbus_get_sip_address(void);
504
void dbus_add_participant(const gchar* callID, const gchar* confID);
427
void dbus_unregister (int pid);
429
void dbus_set_sip_address (const gchar* address);
431
gint dbus_get_sip_address (void);
435
* Add a participant (callID) to this conference (confID)
437
void dbus_add_participant (const gchar* callID, const gchar* confID);
440
* Return a list of participant for this conference (confID)
442
gchar** dbus_get_participant_list (const gchar *confID);
445
* Toggle recording for this instance, may be call or conference
506
447
void dbus_set_record (const gchar * id);
450
* Set the path where the recorded audio files will be stored
508
452
void dbus_set_record_path (const gchar *path);
455
* Get the path where the recorded audio files are stored
509
457
gchar* dbus_get_record_path (void);
528
476
* Resolve the local address given an interface name
530
gchar * dbus_get_address_from_interface_name(gchar* interface);
478
gchar * dbus_get_address_from_interface_name (gchar* interface);
533
481
* Query the daemon to return a list of network interface (described as there IP address)
535
gchar** dbus_get_all_ip_interface(void);
483
gchar** dbus_get_all_ip_interface (void);
538
486
* Query the daemon to return a list of network interface (described as there name)
540
gchar** dbus_get_all_ip_interface_by_name(void);
488
gchar** dbus_get_all_ip_interface_by_name (void);
543
491
* Encapsulate all the url hook-related configuration
571
519
void sflphone_display_transfer_status (const gchar* message);
574
* CallManager - Confirm Short Authentication String
522
* CallManager - Confirm Short Authentication String
575
523
* for a given callId
576
524
* @param c The call to confirm SAS
578
526
void dbus_confirm_sas (const callable_obj_t * c);
581
* CallManager - Reset Short Authentication String
529
* CallManager - Reset Short Authentication String
582
530
* for a given callId
583
531
* @param c The call to reset SAS
585
533
void dbus_reset_sas (const callable_obj_t * c);
588
* CallManager - Request Go Clear in the ZRTP Protocol
536
* CallManager - Request Go Clear in the ZRTP Protocol
589
537
* for a given callId
590
538
* @param c The call that we want to go clear
602
550
* CallManager - Get the list of supported TLS methods from
603
* the server in textual form.
551
* the server in textual form.
604
552
* @return an array of string representing supported methods
606
554
gchar** dbus_get_supported_tls_method();
608
gchar** dbus_get_participant_list (const char * confID);
610
guint dbus_get_window_width (void);
611
guint dbus_get_window_height (void);
612
void dbus_set_window_height (const guint height);
613
void dbus_set_window_width (const guint width);
614
guint dbus_get_window_position_x (void);
615
guint dbus_get_window_position_y (void);
616
void dbus_set_window_position_x (const guint posx);
617
void dbus_set_window_position_y (const guint posy);
619
GHashTable* dbus_get_shortcuts(void);
620
void dbus_set_shortcuts(GHashTable * shortcuts);
622
void dbus_enable_status_icon (const gchar*);
623
gchar* dbus_is_status_icon_enabled (void);
556
GHashTable* dbus_get_shortcuts (void);
558
void dbus_set_shortcuts (GHashTable * shortcuts);
560
void dbus_set_audio_ringtone_device (const int index);
563
dbus_hang_up_conference (const conference_obj_t * c);
566
dbus_hold_conference (const conference_obj_t * c);
569
dbus_unhold_conference (const conference_obj_t * c);
572
dbus_detach_participant (const gchar* callID);
575
dbus_join_participant (const gchar* sel_callID, const gchar* drag_callID);
578
dbus_join_conference (const gchar* sel_confID, const gchar* drag_confID);
581
dbus_add_main_participant (const gchar* confID);
583
/* Instant messaging */
584
void dbus_send_text_message (const gchar* callID, const gchar *message);