account: Add message emission API
This can be used when wanting to show a human readable description in the UI for example when the account state changes.
This commit is contained in:
@@ -101,11 +101,14 @@ struct _CallsAccountInterface
|
||||
};
|
||||
|
||||
|
||||
void calls_account_go_online (CallsAccount *self,
|
||||
gboolean online);
|
||||
const char *calls_account_get_address (CallsAccount *self);
|
||||
CallsAccountState calls_account_get_state (CallsAccount *self);
|
||||
const char *calls_account_state_to_string (CallsAccountState *state);
|
||||
const char *calls_account_state_reason_to_string (CallsAccountStateReason *reason);
|
||||
void calls_account_go_online (CallsAccount *self,
|
||||
gboolean online);
|
||||
const char *calls_account_get_address (CallsAccount *self);
|
||||
CallsAccountState calls_account_get_state (CallsAccount *self);
|
||||
const char *calls_account_state_to_string (CallsAccountState state);
|
||||
const char *calls_account_state_reason_to_string (CallsAccountStateReason reason);
|
||||
void calls_account_emit_message_for_state_change (CallsAccount *account,
|
||||
CallsAccountState new_state,
|
||||
CallsAccountStateReason reason);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user