account_creator.h 21.8 KB
Newer Older
1 2
/*
account_creator.h
3
Copyright (C) 2010-2017 Belledonne Communications SARL
4 5 6 7 8 9 10 11 12 13 14 15 16

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 2
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, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 19 20 21 22
*/

#ifndef LINPHONE_ACCOUNT_CREATOR_H_
#define LINPHONE_ACCOUNT_CREATOR_H_

23
#include "linphone/types.h"
24 25 26 27 28 29

#ifdef __cplusplus
extern "C" {
#endif

/**
30
 * @addtogroup account_creator
31 32 33
 * @{
 */

34
/**
35
 * Callback to notify a response of server.
36 37 38
 * @param[in] creator LinphoneAccountCreator object
 * @param[in] status The status of the LinphoneAccountCreator test existence operation that has just finished
**/
39
typedef void (*LinphoneAccountCreatorCbsStatusCb)(LinphoneAccountCreator *creator, LinphoneAccountCreatorStatus status, const char* resp);
40 41

/************************** Start Account Creator data **************************/
42

43
/**
44
 * Create a LinphoneAccountCreator and set Linphone Request callbacks.
45
 * @param[in] core The LinphoneCore used for the XML-RPC communication
46
 * @param[in] xmlrpc_url The URL to the XML-RPC server. Must be NON NULL.
47
 * @return The new LinphoneAccountCreator object.
48
**/
49
LINPHONE_PUBLIC LinphoneAccountCreator * linphone_account_creator_new(LinphoneCore *core, const char *xmlrpc_url);
50

51 52 53 54 55 56 57

/**
 * Reset the account creator entries like username, password, phone number...
 * @param[in] creator LinphoneAccountCreator object
**/
LINPHONE_PUBLIC void linphone_account_creator_reset(LinphoneAccountCreator *creator);

58
/**
59
 * Send a request to know the existence of account on server.
60
 * @param[in] creator LinphoneAccountCreator object
61
 * @return LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
62
**/
63
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_is_account_exist(LinphoneAccountCreator *creator);
64 65

/**
66
 * Send a request to create an account on server.
67
 * @param[in] creator LinphoneAccountCreator object
68
 * @return LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
69
**/
70
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_create_account(LinphoneAccountCreator *creator);
71 72

/**
73
 * Send a request to know if an account is activated on server.
74
 * @param[in] creator LinphoneAccountCreator object
75
 * @return LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
76
**/
77
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_is_account_activated(LinphoneAccountCreator *creator);
78 79

/**
80
 * Send a request to activate an account on server.
81
 * @param[in] creator LinphoneAccountCreator object
82
 * @return LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
83
**/
84
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_activate_account(LinphoneAccountCreator *creator);
85 86

/**
87
 * Send a request to link an account to an alias.
88
 * @param[in] creator LinphoneAccountCreator object
89
 * @return LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
90
**/
91
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_link_account(LinphoneAccountCreator *creator);
92 93

/**
94
 * Send a request to activate an alias.
95
 * @param[in] creator LinphoneAccountCreator object
96
 * @return LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
97
**/
98
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_activate_alias(LinphoneAccountCreator *creator);
99 100

/**
101
 * Send a request to know if an alias is used.
102
 * @param[in] creator LinphoneAccountCreator object
103
 * @return LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
104
**/
105
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_is_alias_used(LinphoneAccountCreator *creator);
106 107

/**
108
 * Send a request to know if an account is linked.
109
 * @param[in] creator LinphoneAccountCreator object
110
 * @return LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
111
**/
112
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_is_account_linked(LinphoneAccountCreator *creator);
113 114

/**
115
 * Send a request to recover an account.
116
 * @param[in] creator LinphoneAccountCreator object
117
 * @return LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
118
**/
119
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_recover_account(LinphoneAccountCreator *creator);
120 121

/**
122
 * Send a request to update an account.
123
 * @param[in] creator LinphoneAccountCreator object
124
 * @return LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
125
**/
126
LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_update_account(LinphoneAccountCreator *creator);
127

128
/**
129 130 131 132 133 134 135 136 137
 * 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.
138
**/
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
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);
154

155 156 157 158
/**
 * Set the username.
 * @param[in] creator LinphoneAccountCreator object
 * @param[in] username The username to set
159
 * @return LinphoneAccountCreatorUsernameStatusOk if everything is OK, or a specific error otherwise.
160
**/
161
LINPHONE_PUBLIC LinphoneAccountCreatorUsernameStatus linphone_account_creator_set_username(LinphoneAccountCreator *creator, const char *username);
162 163 164 165 166 167

/**
 * Get the username.
 * @param[in] creator LinphoneAccountCreator object
 * @return The username of the LinphoneAccountCreator
**/
168
LINPHONE_PUBLIC const char * linphone_account_creator_get_username(const LinphoneAccountCreator *creator);
169

170 171 172
/**
 * Set the phone number normalized.
 * @param[in] creator LinphoneAccountCreator object
Ghislain MARY's avatar
Ghislain MARY committed
173 174
 * @param[in] phone_number The phone number to set
 * @param[in] country_code Country code to associate phone number with
175
 * @return LinphoneAccountCreatorPhoneNumberStatusOk if everything is OK, or specific(s) error(s) otherwise.
176
**/
177
LINPHONE_PUBLIC LinphoneAccountCreatorPhoneNumberStatusMask linphone_account_creator_set_phone_number(LinphoneAccountCreator *creator, const char *phone_number, const char *country_code);
178 179 180 181 182 183 184 185

/**
 * 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);

186 187 188 189
/**
 * Set the password.
 * @param[in] creator LinphoneAccountCreator object
 * @param[in] password The password to set
190
 * @return LinphoneAccountCreatorPasswordStatusOk if everything is OK, or specific(s) error(s) otherwise.
191
**/
192
LINPHONE_PUBLIC LinphoneAccountCreatorPasswordStatus linphone_account_creator_set_password(LinphoneAccountCreator *creator, const char *password);
193 194 195 196 197 198

/**
 * Get the password.
 * @param[in] creator LinphoneAccountCreator object
 * @return The password of the LinphoneAccountCreator
**/
199
LINPHONE_PUBLIC const char * linphone_account_creator_get_password(const LinphoneAccountCreator *creator);
200

Margaux Clerc's avatar
Margaux Clerc committed
201 202 203
/**
 * Set the ha1.
 * @param[in] creator LinphoneAccountCreator object
Ghislain MARY's avatar
Ghislain MARY committed
204
 * @param[in] ha1 The ha1 to set
205
 * @return LinphoneAccountCreatorPasswordStatusOk if everything is OK, or a specific error otherwise.
Margaux Clerc's avatar
Margaux Clerc committed
206
**/
207
LINPHONE_PUBLIC LinphoneAccountCreatorPasswordStatus linphone_account_creator_set_ha1(LinphoneAccountCreator *creator, const char *ha1);
Margaux Clerc's avatar
Margaux Clerc committed
208 209 210 211 212 213 214 215

/**
 * 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);

216 217 218 219
/**
 * Set the activation code.
 * @param[in] creator LinphoneAccountCreator object
 * @param[in] activation_code The activation code to set
220
 * @return LinphoneAccountCreatorActivationCodeStatusOk if everything is OK, or a specific error otherwise.
221
**/
222
LINPHONE_PUBLIC LinphoneAccountCreatorActivationCodeStatus linphone_account_creator_set_activation_code(LinphoneAccountCreator *creator, const char *activation_code);
223 224

/**
225
 * Get the activation code.
226
 * @param[in] creator LinphoneAccountCreator object
227
 * @return The activation code of the LinphoneAccountCreator
228
**/
229
LINPHONE_PUBLIC const char * linphone_account_creator_get_activation_code(const LinphoneAccountCreator *creator);
230

231
/**
232
 * Set the language to use in email or SMS if supported.
233
 * @param[in] creator LinphoneAccountCreator object
234
 * @param[in] lang The language to use
235
 * @return LinphoneAccountCreatorLanguageStatusOk if everything is OK, or a specific error otherwise.
236
**/
237
LINPHONE_PUBLIC LinphoneAccountCreatorLanguageStatus linphone_account_creator_set_language(LinphoneAccountCreator *creator, const char *lang);
238 239

/**
240
 * Get the language use in email of SMS.
241
 * @param[in] creator LinphoneAccountCreator object
242
 * @return The language of the LinphoneAccountCreator
243
**/
244
LINPHONE_PUBLIC const char * linphone_account_creator_get_language(const LinphoneAccountCreator *creator);
245

246
/**
247
 * Set the display name.
248 249
 * @param[in] creator LinphoneAccountCreator object
 * @param[in] display_name The display name to set
250
 * @return LinphoneAccountCreatorUsernameStatusOk if everything is OK, or a specific error otherwise.
251
**/
252
LINPHONE_PUBLIC LinphoneAccountCreatorUsernameStatus linphone_account_creator_set_display_name(LinphoneAccountCreator *creator, const char *display_name);
253 254

/**
255
 * Get the display name.
256 257 258 259 260
 * @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);

261 262 263 264
/**
 * Set the email.
 * @param[in] creator LinphoneAccountCreator object
 * @param[in] email The email to set
265
 * @return LinphoneAccountCreatorEmailStatusOk if everything is OK, or a specific error otherwise.
266
**/
267
LINPHONE_PUBLIC LinphoneAccountCreatorEmailStatus linphone_account_creator_set_email(LinphoneAccountCreator *creator, const char *email);
268 269 270 271 272 273

/**
 * Get the email.
 * @param[in] creator LinphoneAccountCreator object
 * @return The email of the LinphoneAccountCreator
**/
274 275
LINPHONE_PUBLIC const char * linphone_account_creator_get_email(const LinphoneAccountCreator *creator);

Erwan Croze's avatar
Erwan Croze committed
276 277 278 279
/**
 * Set the domain.
 * @param[in] creator LinphoneAccountCreator object
 * @param[in] domain The domain to set
Erwan Croze's avatar
Erwan Croze committed
280
 * @return LinphoneAccountCreatorDomainOk if everything is OK, or a specific error otherwise.
Erwan Croze's avatar
Erwan Croze committed
281
**/
Erwan Croze's avatar
Erwan Croze committed
282
LINPHONE_PUBLIC LinphoneAccountCreatorDomainStatus linphone_account_creator_set_domain(LinphoneAccountCreator *creator, const char *domain);
Erwan Croze's avatar
Erwan Croze committed
283 284 285 286 287 288

/**
 * Get the domain.
 * @param[in] creator LinphoneAccountCreator object
 * @return The domain of the LinphoneAccountCreator
**/
Erwan Croze's avatar
Erwan Croze committed
289 290 291 292 293 294
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
Erwan Croze's avatar
Erwan Croze committed
295
 * @return LinphoneAccountCreatorTransportOk if everything is OK, or a specific error otherwise.
Erwan Croze's avatar
Erwan Croze committed
296
**/
Erwan Croze's avatar
Erwan Croze committed
297
LINPHONE_PUBLIC LinphoneAccountCreatorTransportStatus linphone_account_creator_set_transport(LinphoneAccountCreator *creator, LinphoneTransportType transport);
Erwan Croze's avatar
Erwan Croze committed
298 299 300 301 302 303 304

/**
 * get Transport
 * @param[in] creator LinphoneAccountCreator object
 * @return The transport of LinphoneAccountCreator
**/
LINPHONE_PUBLIC LinphoneTransportType linphone_account_creator_get_transport(const LinphoneAccountCreator *creator);
Erwan Croze's avatar
Erwan Croze committed
305 306 307 308 309

/**
 * Set the route.
 * @param[in] creator LinphoneAccountCreator object
 * @param[in] route The route to set
310
 * @return LinphoneAccountCreatorStatusRequestOk if everything is OK, or a specific error otherwise.
Erwan Croze's avatar
Erwan Croze committed
311
**/
312
LINPHONE_DEPRECATED LINPHONE_PUBLIC LinphoneAccountCreatorStatus linphone_account_creator_set_route(LinphoneAccountCreator *creator, const char *route);
Erwan Croze's avatar
Erwan Croze committed
313 314 315 316 317 318 319 320

/**
 * 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);

321
/**
322
 * Get the LinphoneAccountCreatorCbs object associated with a LinphoneAccountCreator.
323
 * @param[in] creator LinphoneAccountCreator object
324
 * @return The LinphoneAccountCreatorCbs object associated with the LinphoneAccountCreator.
325
**/
326
LINPHONE_PUBLIC LinphoneAccountCreatorCbs * linphone_account_creator_get_callbacks(const LinphoneAccountCreator *creator);
327 328

/**
329
 * Get the LinphoneAccountCreatorService object associated with a LinphoneAccountCreator.
330
 * @param[in] creator LinphoneAccountCreator object
331
 * @return The LinphoneAccountCreatorService object associated with the LinphoneAccountCreator.
332
 * @donotwrap
333
**/
334
LINPHONE_PUBLIC LinphoneAccountCreatorService * linphone_account_creator_get_service(const LinphoneAccountCreator *creator);
335 336 337 338

/************************** End Account Creator data **************************/

/************************** Start Account Creator Cbs **************************/
339 340

/**
341 342 343
 * Acquire a reference to a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
 * @return The same LinphoneAccountCreatorCbs object.
344
**/
345
LINPHONE_PUBLIC LinphoneAccountCreatorCbs * linphone_account_creator_cbs_ref(LinphoneAccountCreatorCbs *cbs);
346 347

/**
348 349
 * Release a reference to a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
350
**/
351
LINPHONE_PUBLIC void linphone_account_creator_cbs_unref(LinphoneAccountCreatorCbs *cbs);
352

353
/**
354 355 356
 * Retrieve the user pointer associated with a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
 * @return The user pointer associated with the LinphoneAccountCreatorCbs object.
357
**/
358
LINPHONE_PUBLIC void *linphone_account_creator_cbs_get_user_data(const LinphoneAccountCreatorCbs *cbs);
359

360
/**
361 362 363
 * 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.
364
**/
365
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_user_data(LinphoneAccountCreatorCbs *cbs, void *ud);
366

367
/**
368
 * Get the create account request.
369
 * @param[in] cbs LinphoneAccountCreatorCbs object.
370
 * @return The current create account request.
371
**/
372
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_create_account(const LinphoneAccountCreatorCbs *cbs);
373 374

/**
375 376
 * Assign a user pointer to a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
377
 * @param[in] cb The create account request to be used.
378
**/
379
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_create_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
380 381

/**
382
 * Get the is account exist request.
383
 * @param[in] cbs LinphoneAccountCreatorCbs object.
384
 * @return The current is account exist request.
385
**/
386
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_is_account_exist(const LinphoneAccountCreatorCbs *cbs);
387

388
/**
389 390
 * Assign a user pointer to a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
391
 * @param[in] cb The is account exist request to be used.
392
**/
393
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_is_account_exist(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
394 395

/**
396
 * Get the activate account request.
397
 * @param[in] cbs LinphoneAccountCreatorCbs object.
398
 * @return The current activate account request.
399
**/
400
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_activate_account(const LinphoneAccountCreatorCbs *cbs);
401

402
/**
403 404
 * Assign a user pointer to a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
405 406
 * @param[in] cb The activate account request to be used.
**/
407
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_activate_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
408

409 410
/**
 * Get the is account activated request.
411
 * @param[in] cbs LinphoneAccountCreatorCbs object.
412 413
 * @return The current is account activated request.
**/
414
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_is_account_activated(const LinphoneAccountCreatorCbs *cbs);
415 416

/**
417 418
 * Assign a user pointer to a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
419 420
 * @param[in] cb The is account activated request to be used.
**/
421
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_is_account_activated(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
422 423 424

/**
 * Get the link account request.
425
 * @param[in] cbs LinphoneAccountCreatorCbs object.
426 427
 * @return The current link account request.
**/
428
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_link_account(const LinphoneAccountCreatorCbs *cbs);
429 430

/**
431 432
 * Assign a user pointer to a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
433 434
 * @param[in] cb The link account request to be used.
**/
435
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_link_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
436 437 438

/**
 * Get the activate alias request.
439
 * @param[in] cbs LinphoneAccountCreatorCbs object.
440 441
 * @return The current link account request.
**/
442
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_activate_alias(const LinphoneAccountCreatorCbs *cbs);
443 444

/**
445 446
 * Assign a user pointer to a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
447 448
 * @param[in] cb The activate alias request to be used.
**/
449
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_activate_alias(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
450 451 452

/**
 * Get the is alias used request.
453
 * @param[in] cbs LinphoneAccountCreatorCbs object.
454 455
 * @return The current is alias used request.
**/
456
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_is_alias_used(const LinphoneAccountCreatorCbs *cbs);
457 458

/**
459 460
 * Assign a user pointer to a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
461 462
 * @param[in] cb The is alias used request to be used.
**/
463
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_is_alias_used(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
464 465 466

/**
 * Get the is account linked request.
467
 * @param[in] cbs LinphoneAccountCreatorCbs object.
468 469
 * @return The current is account linked request.
**/
470
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_is_account_linked(const LinphoneAccountCreatorCbs *cbs);
471 472

/**
473 474
 * Assign a user pointer to a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
475 476
 * @param[in] cb The is account linked request to be used.
**/
477
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_is_account_linked(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
478 479 480

/**
 * Get the recover account request.
481
 * @param[in] cbs LinphoneAccountCreatorCbs object.
482 483
 * @return The current recover account request.
**/
484
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_recover_account(const LinphoneAccountCreatorCbs *cbs);
485 486

/**
487 488
 * Assign a user pointer to a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
489 490
 * @param[in] cb The recover account request to be used.
**/
491
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_recover_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
492 493 494

/**
 * Get the update account request.
495
 * @param[in] cbs LinphoneAccountCreatorCbs object.
496 497
 * @return The current update account request.
**/
498
LINPHONE_PUBLIC LinphoneAccountCreatorCbsStatusCb linphone_account_creator_cbs_get_update_account(const LinphoneAccountCreatorCbs *cbs);
499 500

/**
501 502
 * Assign a user pointer to a LinphoneAccountCreatorCbs object.
 * @param[in] cbs LinphoneAccountCreatorCbs object.
503 504
 * @param[in] cb The update account request to be used.
**/
505
LINPHONE_PUBLIC void linphone_account_creator_cbs_set_update_account(LinphoneAccountCreatorCbs *cbs, LinphoneAccountCreatorCbsStatusCb cb);
506 507 508 509 510 511 512 513

/************************** End Account Creator Cbs **************************/

/**
 * 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
 **/
514
LINPHONE_DEPRECATED LINPHONE_PUBLIC LinphoneProxyConfig * linphone_account_creator_configure(const LinphoneAccountCreator *creator);
515

516 517 518 519 520 521 522 523 524 525
/**
 * @}
 */


#ifdef __cplusplus
}
#endif

#endif /* LINPHONE_ACCOUNT_CREATOR_H_ */