mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 07:16:31 +03:00
make accounts sortable
This commit is contained in:
@@ -3119,6 +3119,18 @@ dc_context_t* dc_accounts_get_selected_account (dc_accounts_t* accounts);
|
||||
int dc_accounts_select_account (dc_accounts_t* accounts, uint32_t account_id);
|
||||
|
||||
|
||||
/**
|
||||
* Move an account and change the order returned by dc_accounts_get_all().
|
||||
*
|
||||
* @param accounts
|
||||
* @param to_move_id The account ID to move.
|
||||
* @param predecessor_id `to_move_id` will be sorted below `predecessor_id`.
|
||||
* Set to 0 to move `to_move_id` to the top of the list returned by dc_accounts_get_all().
|
||||
* @return 1=success, 0=error
|
||||
*/
|
||||
int dc_accounts_move_below (dc_accounts_t* accounts, uint32_t to_move_id, uint32_t predecessor_id);
|
||||
|
||||
|
||||
/**
|
||||
* Start job and IMAP/SMTP tasks for all accounts managed by the account manager.
|
||||
* If IO is already running, nothing happens.
|
||||
|
||||
Reference in New Issue
Block a user