AccountRequest
Object Hierarchy:
Description:
[ CCode ( type_id = "tp_account_request_get_type ()" ) ]
[ Version ( since = "0.19.1" ) ]
public class AccountRequest : Object
[ Version ( since = "0.19.1" ) ]
public class AccountRequest : Object
An object for representing a currently non-existent account which is to be created on a AccountManager.
Namespace: TelepathyGLib
Package: telepathy-glib
Content:
Properties:
- public AccountManager account_manager { owned get; construct; }
The AccountManager to create the account on.
- public uint automatic_presence_type { get; }
The account's automatic presence type (a ConnectionPresenceType).
- public string automatic_status { owned get; }
The string status name to use in conjunction with the automatic_presence_type.
- public string automatic_status_message { owned get; }
The user-defined message to use in conjunction with the automatic_presence_type.
- public Array<void*> avatar { owned get; }
The avatar set on the account.
- public string avatar_mime_type { owned get; }
The mime type of the avatar property.
- public bool connect_automatically { get; }
Whether the account should connect automatically or not.
- public string connection_manager { owned get; construct; }
The account's connection manager name.
- public string display_name { owned get; construct; }
The account's display name.
- public bool enabled { get; }
Whether the account is enabled or not.
- public string icon_name { owned get; }
The account's icon name.
- public string nickname { owned get; }
The account's nickname.
- public Variant parameters { owned get; }
The account's connection parameters.
- public Variant properties { owned get; }
The account's properties.
- public string protocol { owned get; construct; }
The account's machine-readable protocol name, such as "jabber", "msn" or "local-xmpp".
- public uint requested_presence_type { get; }
The account's requested presence type (a ConnectionPresenceType).
- public string requested_status { owned get; }
The requested Status string of the account.
- public string requested_status_message { owned get; }
The requested status message message of the account.
- public string service { owned get; }
A string describing the service of the account, which must consist only of ASCII letters, numbers and hyphen/minus signs, and start with a letter (matching the requirements for Protocol).
- public string storage_provider { owned get; }
The account's storage provider.
- public string[] supersedes { owned get; }
The object paths of previously-active accounts superseded by this one.
Creation methods:
- public AccountRequest (AccountManager account_manager, string manager, string protocol, string display_name)
Convenience function to create a new account request object which will assist in the creation of a new account on
account_manager
, using connection managermanager
, and protocolprotocol
. - public AccountRequest.from_protocol (AccountManager account_manager, Protocol protocol, string display_name)
Convenience function to create a new AccountRequest object using a Protocol instance, instead of specifying connection manager and protocol name specifically.
Methods:
- public void add_supersedes (string superseded_path)
Add an account object path to the list of superseded accounts which this new account will supersede.
- public async Account create_account_async () throws Error
Start an asynchronous operation to create the account this on the account manager.
- public void set_automatic_presence (ConnectionPresenceType presence, string status, string message)
Set the automatic presence for the new account, this, to the type (
presence
,status
), with messagemessage
. - public void set_avatar (uint8[]? avatar, string? mime_type)
Set the avatar of the account this to
avatar
. - public void set_connect_automatically (bool connect_automatically)
Set the connect automatically property of the account on creation to
connect_automatically
so that the account is brought online to the automatic presence. - public void set_display_name (string name)
Set the display name for the new account, this , to
name
. - public void set_enabled (bool enabled)
Set the enabled property of the account on creation to
enabled
. - public void set_icon_name (string icon)
Set the icon name for the new account, this , to
icon
. - public void set_nickname (string nickname)
Set the nickname for the new account, this , to
nickname
. - public void set_parameter (string key, Variant value)
Set an account parameter,
key
, tovalue
. - public void set_requested_presence (ConnectionPresenceType presence, string status, string message)
Set the requested presence for the new account, this, to the type (
presence
,status
), with messagemessage
. - public void set_service (string service)
Set the service property of the account to
service
. - public void set_storage_provider (string provider)
Set the account storage to use when creating the account.
- public void unset_parameter (string key)
Unset the account parameter
key
which has previously been set using set_parameter or another convenience function.
Inherited Members:
All known members inherited from class GLib.Object