52
52
* Initialize lists and configurations
53
53
* @return TRUE if succeeded, FALSE otherwise
55
gboolean sflphone_init () ;
55
gboolean sflphone_init(GError **error);
58
58
* Steps when closing the application. Will ask for confirmation if a call is in progress.
60
void sflphone_quit () ;
63
63
* Hang up / refuse the current call
65
void sflphone_hang_up ();
65
void sflphone_hang_up();
68
68
* Put the selected call on hold
70
void sflphone_on_hold ();
70
void sflphone_on_hold();
73
73
* Put the selected call off hold
75
void sflphone_off_hold ();
75
void sflphone_off_hold();
85
85
* @param accountID The account the voice mails are for
86
86
* @param count The number of voice mails
88
void sflphone_notify_voice_mail (const gchar* accountID , guint count);
88
void sflphone_notify_voice_mail(const gchar* accountID, guint count);
91
91
* Prepare SFLphone to transfer a call and wait for the user to dial the number to transfer to
102
102
* Accept / dial the current call
104
void sflphone_pick_up ();
104
void sflphone_pick_up();
107
107
* Put the call on hold state
108
108
* @param c The current call
110
void sflphone_hold (callable_obj_t * c);
110
void sflphone_hold(callable_obj_t * c);
113
113
* Put the call in Ringing state
114
114
* @param c* The current call
116
void sflphone_ringing (callable_obj_t * c);
116
void sflphone_ringing(callable_obj_t * c);
119
119
* Put the call in Busy state
120
120
* @param c* The current call
122
void sflphone_busy (callable_obj_t * c);
122
void sflphone_busy(callable_obj_t * c);
125
125
* Put the call in Failure state
126
126
* @param c* The current call
128
void sflphone_fail (callable_obj_t * c);
128
void sflphone_fail(callable_obj_t * c);
131
131
* Put the call in Current state
132
132
* @param c The current call
134
void sflphone_current (callable_obj_t * c);
134
void sflphone_current(callable_obj_t * c);
137
137
* The callee has hung up
138
138
* @param c The current call
140
void sflphone_hung_up (callable_obj_t * c);
140
void sflphone_hung_up(callable_obj_t * c);
144
144
* @param c The incoming call
146
void sflphone_incoming_call (callable_obj_t * c);
146
void sflphone_incoming_call(callable_obj_t * c);
149
149
* Dial the number
151
151
* @param keyval The unique int representing the key
152
152
* @param key The char value of the key
154
void sflphone_keypad (guint keyval, gchar * key);
154
void sflphone_keypad(guint keyval, gchar * key);
157
157
* Place a call with a filled callable_obj_t.to
158
158
* @param c A call in CALL_STATE_DIALING state
160
void sflphone_place_call (callable_obj_t * c);
160
int sflphone_place_call(callable_obj_t * c);
163
163
* Fetch the ip2ip profile through dbus and fill
164
164
* the internal hash table.
166
void sflphone_fill_ip2ip_profile (void);
166
void sflphone_fill_ip2ip_profile(void);
169
169
* @return The internal hash table representing
172
172
GHashTable *sflphone_get_ip2ip_properties(void);
175
* Initialize the accounts data structure
175
* Get a list of accounts from the daemon and load them into account_t
177
void sflphone_fill_account_list ();
178
void sflphone_fill_account_list();
179
void sflphone_fill_call_list (void);
180
void sflphone_fill_call_list(void);
182
183
* Set an account as current. The current account is to one used to place calls with by default
183
* The current account is the first in the account list ( index 0 )
184
* The current account is the first in the account list( index 0 )
185
186
void sflphone_set_current_account();
188
189
* Initialialize the codecs data structure
190
void sflphone_fill_codec_list ();
192
void sflphone_fill_codec_list_per_account (account_t *);
191
void sflphone_fill_codec_list_per_account(account_t *);
194
193
void sflphone_add_participant();
196
void sflphone_record (callable_obj_t *c);
198
void sflphone_rec_call (void);
200
void status_bar_display_account ();
202
void sflphone_fill_history (void);
195
void sflphone_record(callable_obj_t *c);
197
void sflphone_rec_call(void);
199
void sflphone_mute_call(void);
201
void status_bar_display_account();
203
void sflphone_fill_history(void);
205
206
* Action called when a new participant is dragged in
207
void sflphone_add_participant (const gchar* callID, const gchar* confID);
208
void sflphone_add_participant(const gchar* callID, const gchar* confID);
210
211
* Action called when a conference participant is draged out
212
void sflphone_detach_participant (const gchar* callID);
213
void sflphone_detach_participant(const gchar* callID);
215
216
* Nofity that the communication is
216
217
* now secured using SRTP/SDES.
217
218
* @param c* The current call
219
void sflphone_srtp_sdes_on (callable_obj_t * c);
220
void sflphone_srtp_sdes_on(callable_obj_t * c);
222
223
* Notify that the SRTP/SDES session
228
229
* now secured using ZRTP.
229
230
* @param c* The current call
231
void sflphone_srtp_zrtp_on (callable_obj_t * c);
232
void sflphone_srtp_zrtp_on(callable_obj_t * c);
234
235
* Called when the ZRTP session goes
236
237
* @param c* The current call
238
void sflphone_srtp_zrtp_off (callable_obj_t * c);
239
void sflphone_srtp_zrtp_off(callable_obj_t * c);
241
242
* Called when the sas has been computed
244
245
* @param sas* The Short Authentication String
245
246
* @param verified* Weather the SAS was confirmed or not.
247
void sflphone_srtp_zrtp_show_sas (callable_obj_t * c, const gchar* sas, const gboolean verified);
248
void sflphone_srtp_zrtp_show_sas(callable_obj_t * c, const gchar* sas, const gboolean verified);
250
251
* Called when user wants to clear.
251
252
* @param c* The call on which to go clear
253
void sflphone_request_go_clear (void);
255
void sflphone_request_go_clear(void);
256
258
* Called when the UI needs to be refreshed to
260
262
* @param description A textual description of the code
261
263
* @param code The status code as in SIP or IAX
263
void sflphone_call_state_changed (callable_obj_t * c, const gchar * description, const guint code);
265
void sflphone_add_main_participant (const conference_obj_t * c);
267
void sflphone_srtp_sdes_off (callable_obj_t * c);
269
void sflphone_fill_conference_list (void);
265
void sflphone_call_state_changed(callable_obj_t * c, const gchar * description, const guint code);
267
void sflphone_add_main_participant(const conference_obj_t * c);
269
void sflphone_srtp_sdes_off(callable_obj_t * c);
271
void sflphone_fill_conference_list(void);