chenqiyang
2021-08-16 d98a16782ce455ebf4624c6d29e4311598b7eead
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
/*
 * Copyright (c) 2010-2019 Belledonne Communications SARL.
 *
 * This file is part of Liblinphone.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
 
#ifndef LINPHONE_ACCOUNT_CREATOR_H_
#define LINPHONE_ACCOUNT_CREATOR_H_
 
#include "linphone/types.h"
 
#ifdef __cplusplus
extern "C" {
#endif
 
/**
 * @addtogroup account_creator
 * @{
 */
 
/**
 * Callback to notify a response of server.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] status The status of the #LinphoneAccountCreator test existence operation that has just finished
**/
typedef void (*LinphoneAccountCreatorCbsStatusCb)(LinphoneAccountCreator *creator, LinphoneAccountCreatorStatus status, const char* resp);
 
/************************** Start Account Creator data **************************/
 
/**
 * Create a #LinphoneAccountCreator and set Linphone Request callbacks.
 * @param[in] core The #LinphoneCore used for the XML-RPC communication
 * @param[in] xmlrpc_url The URL to the XML-RPC server. Must be NON NULL.
 * @return The new #LinphoneAccountCreator object.
**/
LINPHONE_PUBLIC LinphoneAccountCreator * linphone_account_creator_new(LinphoneCore *core, const char *xmlrpc_url);
 
 
/**
 * Reset the account creator entries like username, password, phone number...
 * @param[in] creator #LinphoneAccountCreator object
**/
LINPHONE_PUBLIC void linphone_account_creator_reset(LinphoneAccountCreator *creator);
 
/**
 * Send a request to know the existence of account on server.
 * @param[in] creator #LinphoneAccountCreator object
 * @return #LinphoneAccountCreatorStatusRequestOk if the request has been sent, #LinphoneAccountCreatorStatusRequestFailed otherwise
**/
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_is_account_exist(LinphoneAccountCreator *creator);
 
/**
 * Send a request to create an account on server.
 * @param[in] creator #LinphoneAccountCreator object
 * @return #LinphoneAccountCreatorStatusRequestOk if the request has been sent, #LinphoneAccountCreatorStatusRequestFailed otherwise
**/
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_create_account(LinphoneAccountCreator *creator);
 
/**
 * Send a request to know if an account is activated on server.
 * @param[in] creator #LinphoneAccountCreator object
 * @return #LinphoneAccountCreatorStatusRequestOk if the request has been sent, #LinphoneAccountCreatorStatusRequestFailed otherwise
**/
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_is_account_activated(LinphoneAccountCreator *creator);
 
/**
 * Send a request to activate an account on server.
 * @param[in] creator #LinphoneAccountCreator object
 * @return #LinphoneAccountCreatorStatusRequestOk if the request has been sent, #LinphoneAccountCreatorStatusRequestFailed otherwise
**/
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_activate_account(LinphoneAccountCreator *creator);
 
/**
 * Send a request to link an account to an alias.
 * @param[in] creator #LinphoneAccountCreator object
 * @return #LinphoneAccountCreatorStatusRequestOk if the request has been sent, #LinphoneAccountCreatorStatusRequestFailed otherwise
**/
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_link_account(LinphoneAccountCreator *creator);
 
/**
 * Send a request to activate an alias.
 * @param[in] creator #LinphoneAccountCreator object
 * @return #LinphoneAccountCreatorStatusRequestOk if the request has been sent, #LinphoneAccountCreatorStatusRequestFailed otherwise
**/
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_activate_alias(LinphoneAccountCreator *creator);
 
/**
 * Send a request to know if an alias is used.
 * @param[in] creator #LinphoneAccountCreator object
 * @return #LinphoneAccountCreatorStatusRequestOk if the request has been sent, #LinphoneAccountCreatorStatusRequestFailed otherwise
**/
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_is_alias_used(LinphoneAccountCreator *creator);
 
/**
 * Send a request to know if an account is linked.
 * @param[in] creator #LinphoneAccountCreator object
 * @return #LinphoneAccountCreatorStatusRequestOk if the request has been sent, #LinphoneAccountCreatorStatusRequestFailed otherwise
**/
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_is_account_linked(LinphoneAccountCreator *creator);
 
/**
 * Send a request to recover an account.
 * @param[in] creator #LinphoneAccountCreator object
 * @return #LinphoneAccountCreatorStatusRequestOk if the request has been sent, #LinphoneAccountCreatorStatusRequestFailed otherwise
**/
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_recover_account(LinphoneAccountCreator *creator);
 
/**
 * Send a request to update an account.
 * @param[in] creator #LinphoneAccountCreator object
 * @return #LinphoneAccountCreatorStatusRequestOk if the request has been sent, #LinphoneAccountCreatorStatusRequestFailed otherwise
**/
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_update_account(LinphoneAccountCreator *creator);
 
/**
 * Send a request to get the password & algorithm of an account using the confirmation key
 * @param[in] creator #LinphoneAccountCreator object
 * @return #LinphoneAccountCreatorStatusRequestOk if everything is OK, or a specific error otherwise.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_login_linphone_account(LinphoneAccountCreator *creator);
 
/**
 * Acquire a reference to the LinphoneAccountCreator.
 * @param[in] creator #LinphoneAccountCreator object.
 * @return The same #LinphoneAccountCreator object.
**/
LINPHONE_PUBLIC LinphoneAccountCreator * linphone_account_creator_ref(LinphoneAccountCreator *creator);
 
/**
 * Release reference to the LinphoneAccountCreator.
 * @param[in] creator #LinphoneAccountCreator object.
**/
LINPHONE_PUBLIC void linphone_account_creator_unref(LinphoneAccountCreator *creator);
 
/**
 * Retrieve the user pointer associated with the LinphoneAccountCreator.
 * @param[in] creator #LinphoneAccountCreator object.
 * @return The user pointer associated with the LinphoneAccountCreator.
**/
LINPHONE_PUBLIC void *linphone_account_creator_get_user_data(const LinphoneAccountCreator *creator);
 
/**
 * Assign a user pointer to the LinphoneAccountCreator.
 * @param[in] creator #LinphoneAccountCreator object.
 * @param[in] ud The user pointer to associate with the LinphoneAccountCreator.
**/
LINPHONE_PUBLIC void linphone_account_creator_set_user_data(LinphoneAccountCreator *creator, void *ud);
 
/**
 * Assign a proxy config pointer to the LinphoneAccountCreator.
 * @param[in] creator LinphoneAccountCreator object.
 * @param[in] cfg The LinphoneProxyConfig to associate with the LinphoneAccountCreator.
**/
LINPHONE_PUBLIC void linphone_account_creator_set_proxy_config(LinphoneAccountCreator *creator, LinphoneProxyConfig *cfg);
 
/**
 * Set the username.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] username The username to set
 * @return #LinphoneAccountCreatorUsernameStatusOk if everything is OK, or a specific error otherwise.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorUsernameStatus linphone_account_creator_set_username(LinphoneAccountCreator *creator, const char *username);
 
/**
 * Get the username.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The username of the #LinphoneAccountCreator
**/
LINPHONE_PUBLIC const char * linphone_account_creator_get_username(const LinphoneAccountCreator *creator);
 
/**
 * Set the phone number normalized.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] phone_number The phone number to set
 * @param[in] country_code Country code to associate phone number with
 * @return #LinphoneAccountCreatorPhoneNumberStatusOk if everything is OK, or specific(s) error(s) otherwise.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorPhoneNumberStatusMask linphone_account_creator_set_phone_number(LinphoneAccountCreator *creator, const char *phone_number, const char *country_code);
 
/**
 * Get the RFC 3966 normalized phone number.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The phone number of the #LinphoneAccountCreator
**/
LINPHONE_PUBLIC const char * linphone_account_creator_get_phone_number(const LinphoneAccountCreator *creator);
 
/**
 * Set the password.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] password The password to set
 * @return #LinphoneAccountCreatorPasswordStatusOk if everything is OK, or specific(s) error(s) otherwise.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorPasswordStatus linphone_account_creator_set_password(LinphoneAccountCreator *creator, const char *password);
 
/**
 * Get the password.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The password of the #LinphoneAccountCreator
**/
LINPHONE_PUBLIC const char * linphone_account_creator_get_password(const LinphoneAccountCreator *creator);
 
/**
 * Set the ha1.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] ha1 The ha1 to set
 * @return #LinphoneAccountCreatorPasswordStatusOk if everything is OK, or a specific error otherwise.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorPasswordStatus linphone_account_creator_set_ha1(LinphoneAccountCreator *creator, const char *ha1);
 
/**
 * Get the ha1.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The ha1 of the #LinphoneAccountCreator
**/
LINPHONE_PUBLIC const char * linphone_account_creator_get_ha1(const LinphoneAccountCreator *creator);
 
/**
 * Set the activation code.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] activation_code The activation code to set
 * @return #LinphoneAccountCreatorActivationCodeStatusOk if everything is OK, or a specific error otherwise.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorActivationCodeStatus linphone_account_creator_set_activation_code(LinphoneAccountCreator *creator, const char *activation_code);
 
/**
 * Get the activation code.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The activation code of the #LinphoneAccountCreator
**/
LINPHONE_PUBLIC const char * linphone_account_creator_get_activation_code(const LinphoneAccountCreator *creator);
 
/**
 * Set the language to use in email or SMS if supported.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] lang The language to use
 * @return #LinphoneAccountCreatorLanguageStatusOk if everything is OK, or a specific error otherwise.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorLanguageStatus linphone_account_creator_set_language(LinphoneAccountCreator *creator, const char *lang);
 
/**
 * Get the language use in email of SMS.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The language of the #LinphoneAccountCreator
**/
LINPHONE_PUBLIC const char * linphone_account_creator_get_language(const LinphoneAccountCreator *creator);
 
/**
* Set the supported algorithm.
* @param[in] creator LinphoneAccountCreator object
* @param[in] algorithm The algorithm to use
* @return LinphoneAccountCreatorAlgoStatusOk if everything is OK, or a specific error otherwise.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorAlgoStatus linphone_account_creator_set_algorithm(LinphoneAccountCreator *creator, const char *algorithm);
 
/**
 * Get the algorithm configured in the account creator.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The algorithm of the #LinphoneAccountCreator
**/
LINPHONE_PUBLIC const char * linphone_account_creator_get_algorithm(const LinphoneAccountCreator *creator);
 
/**
 * Set the display name.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] display_name The display name to set
 * @return #LinphoneAccountCreatorUsernameStatusOk if everything is OK, or a specific error otherwise.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorUsernameStatus linphone_account_creator_set_display_name(LinphoneAccountCreator *creator, const char *display_name);
 
/**
 * Get the display name.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The display name of the #LinphoneAccountCreator
**/
LINPHONE_PUBLIC const char * linphone_account_creator_get_display_name(const LinphoneAccountCreator *creator);
 
/**
 * Set the email.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] email The email to set
 * @return #LinphoneAccountCreatorEmailStatusOk if everything is OK, or a specific error otherwise.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorEmailStatus linphone_account_creator_set_email(LinphoneAccountCreator *creator, const char *email);
 
/**
 * Get the email.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The email of the #LinphoneAccountCreator
**/
LINPHONE_PUBLIC const char * linphone_account_creator_get_email(const LinphoneAccountCreator *creator);
 
/**
 * Set the domain.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] domain The domain to set
 * @return #LinphoneAccountCreatorDomainOk if everything is OK, or a specific error otherwise.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorDomainStatus linphone_account_creator_set_domain(LinphoneAccountCreator *creator, const char *domain);
 
/**
 * Get the domain.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The domain of the #LinphoneAccountCreator
**/
LINPHONE_PUBLIC const char * linphone_account_creator_get_domain(const LinphoneAccountCreator *creator);
 
/**
 * Set Transport
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] transport The transport to set
 * @return #LinphoneAccountCreatorTransportOk if everything is OK, or a specific error otherwise.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorTransportStatus linphone_account_creator_set_transport(LinphoneAccountCreator *creator, LinphoneTransportType transport);
 
/**
 * get Transport
 * @param[in] creator #LinphoneAccountCreator object
 * @return The transport of #LinphoneAccountCreator
**/
LINPHONE_PUBLIC LinphoneTransportType linphone_account_creator_get_transport(const LinphoneAccountCreator *creator);
 
/**
 * Set the route.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] route The route to set
 * @return #LinphoneAccountCreatorStatusRequestOk if everything is OK, or a specific error otherwise.
**/
LINPHONE_DEPRECATED LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_set_route(LinphoneAccountCreator *creator, const char *route);
 
/**
 * Get the route.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The route of the #LinphoneAccountCreator
**/
LINPHONE_DEPRECATED LINPHONE_PUBLIC const char * linphone_account_creator_get_route(const LinphoneAccountCreator *creator);
 
/**
 * Set the set_as_default property.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] set_as_default The set_as_default to set
 * @return #LinphoneAccountCreatorStatusRequestOk if everything is OK, or a specific error otherwise.
 **/
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_set_as_default(LinphoneAccountCreator *creator, bool_t set_as_default);
 
/**
 * Get the set_as_default property.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The set_as_default of the #LinphoneAccountCreator
 **/
LINPHONE_PUBLIC bool_t linphone_account_creator_get_set_as_default(const LinphoneAccountCreator *creator);
 
/**
 * Get the #LinphoneAccountCreatorCbs object associated with a LinphoneAccountCreator.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The #LinphoneAccountCreatorCbs object associated with the LinphoneAccountCreator.
 * @deprecated use add_callbacks / remove_callbacks instead
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbs * linphone_account_creator_get_callbacks(const LinphoneAccountCreator *creator);
 
/**
 * Add the #LinphoneAccountCreatorCbs object to a LinphoneAccountCreator.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] cbs The #LinphoneAccountCreatorCbs object to add to the LinphoneAccountCreator.
**/
LINPHONE_PUBLIC void linphone_account_creator_add_callbacks(LinphoneAccountCreator *creator, LinphoneAccountCreatorCbs *cbs);
 
/**
 * Removes the #LinphoneAccountCreatorCbs object from a LinphoneAccountCreator.
 * @param[in] creator #LinphoneAccountCreator object
 * @param[in] cbs The #LinphoneAccountCreatorCbs object to remove from the LinphoneAccountCreator.
**/
LINPHONE_PUBLIC void linphone_account_creator_remove_callbacks(LinphoneAccountCreator *creator, LinphoneAccountCreatorCbs *cbs);
 
/**
 * Get the current #LinphoneAccountCreatorCbs object associated with a LinphoneAccountCreator.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The current #LinphoneAccountCreatorCbs object associated with the LinphoneAccountCreator.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbs *linphone_account_creator_get_current_callbacks(const LinphoneAccountCreator *creator);
 
/**
 * Get the #LinphoneAccountCreatorService object associated with a LinphoneAccountCreator.
 * @param[in] creator #LinphoneAccountCreator object
 * @return The #LinphoneAccountCreatorService object associated with the LinphoneAccountCreator.
 * @donotwrap
**/
LINPHONE_PUBLIC LinphoneAccountCreatorService * linphone_account_creator_get_service(const LinphoneAccountCreator *creator);
 
/************************** End Account Creator data **************************/
 
/************************** Start Account Creator Cbs **************************/
 
/**
 * Acquire a reference to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The same #LinphoneAccountCreatorCbs object.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbs * linphone_account_creator_cbs_ref(LinphoneAccountCreatorCbs *cbs);
 
/**
 * Release a reference to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_unref(LinphoneAccountCreatorCbs *cbs);
 
/**
 * Retrieve the user pointer associated with a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The user pointer associated with the #LinphoneAccountCreatorCbs object.
**/
LINPHONE_PUBLIC void *linphone_account_creator_cbs_get_user_data(const LinphoneAccountCreatorCbs *cbs);
 
/**
 * Assign a user pointer to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @param[in] ud The user pointer to associate with the #LinphoneAccountCreatorCbs object.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_user_data(LinphoneAccountCreatorCbs *cbs, void *ud);
 
/**
 * Get the create account request.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The current create account request.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_create_account(const LinphoneAccountCreatorCbs *cbs);
 
/**
 * Assign a user pointer to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @param[in] cb The create account request to be used.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_create_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
 
/**
 * Get the is account exist request.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The current is account exist request.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_is_account_exist(const LinphoneAccountCreatorCbs *cbs);
 
/**
 * Assign a user pointer to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @param[in] cb The is account exist request to be used.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_is_account_exist(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
 
/**
 * Get the activate account request.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The current activate account request.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_activate_account(const LinphoneAccountCreatorCbs *cbs);
 
/**
 * Assign a user pointer to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @param[in] cb The activate account request to be used.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_activate_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
 
/**
 * Get the is account activated request.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The current is account activated request.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_is_account_activated(const LinphoneAccountCreatorCbs *cbs);
 
/**
 * Assign a user pointer to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @param[in] cb The is account activated request to be used.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_is_account_activated(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
 
/**
 * Get the link account request.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The current link account request.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_link_account(const LinphoneAccountCreatorCbs *cbs);
 
/**
 * Assign a user pointer to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @param[in] cb The link account request to be used.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_link_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
 
/**
 * Get the activate alias request.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The current link account request.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_activate_alias(const LinphoneAccountCreatorCbs *cbs);
 
/**
 * Assign a user pointer to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @param[in] cb The activate alias request to be used.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_activate_alias(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
 
/**
 * Get the is alias used request.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The current is alias used request.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_is_alias_used(const LinphoneAccountCreatorCbs *cbs);
 
/**
 * Assign a user pointer to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @param[in] cb The is alias used request to be used.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_is_alias_used(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
 
/**
 * Get the is account linked request.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The current is account linked request.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_is_account_linked(const LinphoneAccountCreatorCbs *cbs);
 
/**
 * Assign a user pointer to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @param[in] cb The is account linked request to be used.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_is_account_linked(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
 
/**
 * Get the recover account request.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The current recover account request.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_recover_account(const LinphoneAccountCreatorCbs *cbs);
 
/**
 * Assign a user pointer to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @param[in] cb The recover account request to be used.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_recover_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
 
/**
 * Get the update account request.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The current update account request.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_update_account(const LinphoneAccountCreatorCbs *cbs);
 
/**
 * Assign a user pointer to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @param[in] cb The update account request to be used.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_update_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
 
/**
 * Get the login linphone account request.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @return The current login linphone account request.
**/
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_login_linphone_account(const LinphoneAccountCreatorCbs *cbs);
 
/**
 * Assign a user pointer to a #LinphoneAccountCreatorCbs object.
 * @param[in] cbs #LinphoneAccountCreatorCbs object.
 * @param[in] cb The login linphone account request to be used.
**/
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_login_linphone_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
 
/************************** End Account Creator Cbs **************************/
 
/**
 * Create and configure a proxy config and a authentication info for an account creator
 * @param[in] creator #LinphoneAccountCreator object
 * @return A #LinphoneProxyConfig object if successful, NULL otherwise
**/
LINPHONE_PUBLIC LinphoneProxyConfig * linphone_account_creator_create_proxy_config(const LinphoneAccountCreator *creator);
 
/**
 * Configure an account (create a proxy config and authentication info for it).
 * @param[in] creator #LinphoneAccountCreator object
 * @return A #LinphoneProxyConfig object if successful, NULL otherwise
 * @deprecated Use linphone_account_creator_create_proxy_config instead
**/
LINPHONE_DEPRECATED LINPHONE_PUBLIC LinphoneProxyConfig * linphone_account_creator_configure(const LinphoneAccountCreator *creator);
 
/**
 * @}
 */
 
 
#ifdef __cplusplus
}
#endif
 
#endif /* LINPHONE_ACCOUNT_CREATOR_H_ */