| Top |  |  |  |  | 
| void | calls_account_go_online () | 
| const char * | calls_account_get_address () | 
| CallsAccountState | calls_account_get_state () | 
| const char * | calls_account_state_to_string () | 
| const char * | calls_account_state_reason_to_string () | 
| void | calls_account_emit_message_for_state_change () | 
| gboolean | calls_account_state_is_for_ui () | 
| gboolean | calls_account_state_reason_is_for_ui () | 
| #define | CALLS_TYPE_ACCOUNT | 
| enum | CallsAccountState | 
| enum | CallsAccountStateReason | 
| struct | CallsAccountInterface | 
| CallsAccount | 
GEnum ├── CallsAccountState ╰── CallsAccountStateReason GInterface ╰── CallsAccount
void calls_account_go_online (CallsAccount *self,gboolean online);
Connect or disconnect to a server.
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);
| account | ||
| new_state | The new CallsAccountState | |
| reason | The CallsAccountStateReason for the state change | 
gboolean
calls_account_state_is_for_ui (CallsAccountState state);
Helper function to decide which account states are important. Is used f.e. to decide if message should be shown to the user.
gboolean
calls_account_state_reason_is_for_ui (CallsAccountStateReason reason);
Helper function to decide which account states reasons are important. Is used f.e. to decide if message should be shown to the user.
| Default unspecified reason | ||
| Initialization started | ||
| Initialization done | ||
| Deinitialization started | ||
| Deinitialization done | ||
| No credentials were set | ||
| Starting to connect | ||
| A connection has timed out | ||
| A domain name could not be resolved | ||
| Could not authenticate, possibly wrong credentials | ||
| Connected successfully | ||
| Disconnected successfully | ||
| An internal error has occurred | 
struct CallsAccountInterface {
  GTypeInterface parent_iface;
  void           (*go_online)                           (CallsAccount *self,
                                                         gboolean      online);
  const char    *(*get_address)                         (CallsAccount *self);
};
“account-state” property“account-state” CallsAccountState
The state of the account.
Owner: CallsAccount
Flags: Read
Default value: CALLS_ACCOUNT_STATE_UNKNOWN
“account-state-changed” signalvoid user_function (CallsAccount *self, CallsAccountState new_state, CallsAccountState old_state, CallsAccountStateReason reason, gpointer user_data)
| self | The CallsAccount | |
| new_state | The new CALLS_ACCOUNT_STATE of the account | |
| old_state | The old CALLS_ACCOUNT_STATE of the account | |
| reason | The CALLS_ACCOUNT_STATE_REASON for the change | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run Last