TelepathyGLib.AccountRequest¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The account’s account manager |
||
r |
Presence type used to put the account online automatically |
||
r |
Presence status used to put the account online automatically |
||
r |
User-defined message used to put the account online automatically |
||
r |
The account’s avatar data |
||
r |
The account’s avatar’s mime type |
||
r |
Whether this account should connect automatically or not |
||
r/w/co |
The account’s connection manager name |
||
r/w/co |
The account’s display name |
||
r |
Whether this account is enabled or not |
||
r |
The account’s icon name |
||
r |
The account’s nickname |
||
r |
Connection parameters of the account |
||
r |
Account properties |
||
r/w/co |
The account’s protocol name |
||
r |
The account’s requested presence type |
||
r |
The account’s requested status string |
||
r |
The requested Status message string of the account |
||
r |
The account’s service |
||
r |
The account’s storage provider |
||
[ |
r |
Accounts superseded by this one |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class TelepathyGLib.AccountRequest(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An object for representing a currently non-existent account which is to be created on a
TelepathyGLib.AccountManager
.New in version 0.19.1.
- classmethod new(account_manager, manager, protocol, display_name)¶
- Parameters:
account_manager (
TelepathyGLib.AccountManager
) – theTelepathyGLib.AccountManager
to create the account onmanager (
str
) – the name of the connection managerprotocol (
str
) – the name of the protocol on managerdisplay_name (
str
) – the user-visible name of this account
- Returns:
a new reference to an account request object, or
None
if any argument is incorrect- Return type:
Convenience function to create a new account request object which will assist in the creation of a new account on account_manager, using connection manager manager, and protocol protocol.
New in version 0.19.1.
- classmethod new_from_protocol(account_manager, protocol, display_name)¶
- Parameters:
account_manager (
TelepathyGLib.AccountManager
) – theTelepathyGLib.AccountManager
to create the account onprotocol (
TelepathyGLib.Protocol
) – aTelepathyGLib.Protocol
display_name (
str
) – the user-visible name of this account
- Returns:
a new reference to an account request object, or
None
if any argument is incorrect- Return type:
Convenience function to create a new
TelepathyGLib.AccountRequest
object using aTelepathyGLib.Protocol
instance, instead of specifying connection manager and protocol name specifically. SeeTelepathyGLib.AccountRequest.new
() for more details.New in version 0.19.1.
- add_supersedes(superseded_path)¶
- Parameters:
superseded_path (
str
) – an account object path to add to the supersedes list
Add an account object path to the list of superseded accounts which this new account will supersede. Use the
TelepathyGLib.AccountRequest
:supersedes
property to read the current list of superseded accounts.New in version 0.19.1.
- create_account_async(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – a function to call when the account has been created
Start an asynchronous operation to create the account self on the account manager.
callback will only be called when the newly created
TelepathyGLib.Account
has the %TP_ACCOUNT_FEATURE_CORE feature ready on it, so when callingTelepathyGLib.AccountRequest.create_account_finish
(), one can guarantee this feature.New in version 0.19.1.
- create_account_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
a new ref to a
TelepathyGLib.Account
, orNone
- Return type:
Finishes an asynchronous account creation operation and returns a new ref to a
TelepathyGLib.Account
object. The returned account will have the features listed inTelepathyGLib.SimpleClientFactory.dup_account_features
() (with the proxy factory fromTelepathyGLib.AccountRequest
:account-manager
) prepared on it.New in version 0.19.1.
- set_automatic_presence(presence, status, message)¶
- Parameters:
presence (
TelepathyGLib.ConnectionPresenceType
) – the automatic presence typestatus (
str
) – the automatic presence statusmessage (
str
) – the automatic presence message
Set the automatic presence for the new account, self, to the type (presence, status), with message message. Use the
TelepathyGLib.AccountRequest
:automatic-presence-type
,TelepathyGLib.AccountRequest
:automatic-status
, andTelepathyGLib.AccountRequest
:automatic-status-message
properties to read the current automatic presence.New in version 0.19.1.
- set_avatar(avatar, mime_type)¶
- Parameters:
Set the avatar of the account self to avatar. Use the
TelepathyGLib.AccountRequest
:avatar
andTelepathyGLib.AccountRequest
:avatar-mime-type
properties to read the current avatar.New in version 0.19.1.
- set_connect_automatically(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. Use the
TelepathyGLib.AccountRequest
:connect-automatically
property to read the current connect automatically value.New in version 0.19.1.
- set_display_name(name)¶
- Parameters:
name (
str
) – a display name for the account
Set the display name for the new account, self, to name. Use the
TelepathyGLib.AccountRequest
:display-name
property to read the current display name.New in version 0.19.1.
- set_enabled(enabled)¶
-
Set the enabled property of the account on creation to enabled. Use the
TelepathyGLib.AccountRequest
:enabled
property to read the current enabled value.New in version 0.19.1.
- set_icon_name(icon)¶
- Parameters:
icon (
str
) – an icon name for the account
Set the icon name for the new account, self, to icon. Use the
TelepathyGLib.AccountRequest
:icon-name
property to read the current icon name.New in version 0.19.1.
- set_nickname(nickname)¶
- Parameters:
nickname (
str
) – a nickname for the account
Set the nickname for the new account, self, to nickname. Use the
TelepathyGLib.AccountRequest
:nickname
property to read the current nickname.New in version 0.19.1.
- set_parameter(key, value)¶
- Parameters:
key (
str
) – the parameter keyvalue (
GLib.Variant
) – a variant containing the parameter value
Set an account parameter, key, to value. Use the
TelepathyGLib.AccountRequest
:parameters
property to read the current list of set parameters.Parameters can be unset using
TelepathyGLib.AccountRequest.unset_parameter
().New in version 0.19.1.
- set_requested_presence(presence, status, message)¶
- Parameters:
presence (
TelepathyGLib.ConnectionPresenceType
) – the requested presence typestatus (
str
) – the requested presence statusmessage (
str
) – the requested presence message
Set the requested presence for the new account, self, to the type (presence, status), with message message. Use the
TelepathyGLib.AccountRequest
:requested-presence-type
,TelepathyGLib.AccountRequest
:requested-status
, andTelepathyGLib.AccountRequest
:requested-status-message
properties to read the current requested presence.New in version 0.19.1.
- set_service(service)¶
- Parameters:
service (
str
) – the service name for
Set the service property of the account to service. Use the
TelepathyGLib.AccountRequest
:service
property to read the current value.New in version 0.19.1.
- set_storage_provider(provider)¶
- Parameters:
provider (
str
) – the name of an account storage implementation
Set the account storage to use when creating the account. Use the
TelepathyGLib.AccountRequest
:storage-provider
property to read the current value.New in version 0.19.4.
- unset_parameter(key)¶
- Parameters:
key (
str
) – the parameter key
Unset the account parameter key which has previously been set using
TelepathyGLib.AccountRequest.set_parameter
() or another convenience function.New in version 0.19.1.
Property Details¶
- TelepathyGLib.AccountRequest.props.account_manager¶
- Name:
account-manager
- Type:
- Default Value:
- Flags:
The
TelepathyGLib.AccountManager
to create the account on.New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.automatic_presence_type¶
-
The account’s automatic presence type (a
TelepathyGLib.ConnectionPresenceType
). To change this property useTelepathyGLib.AccountRequest.set_automatic_presence
().When the account is put online automatically, for instance to make a channel request or because network connectivity becomes available, the automatic presence type, status and message will be copied to their “requested” counterparts.
New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.automatic_status¶
-
The string status name to use in conjunction with the
TelepathyGLib.AccountRequest
:automatic-presence-type
. To change this property useTelepathyGLib.AccountRequest.set_automatic_presence
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.automatic_status_message¶
-
The user-defined message to use in conjunction with the
TelepathyGLib.Account
:automatic-presence-type
. To change this property useTelepathyGLib.AccountRequest.set_automatic_presence
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.avatar¶
- Name:
avatar
- Type:
- Default Value:
- Flags:
The avatar set on the account. The avatar’s mime type can be read in the
TelepathyGLib.AccountRequest
:avatar-mime-type
property. To change this property, useTelepathyGLib.AccountRequest.set_avatar
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.avatar_mime_type¶
-
The mime type of the
TelepathyGLib.AccountRequest
:avatar
property. To change this property, useTelepathyGLib.AccountRequest.set_avatar
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.connect_automatically¶
-
Whether the account should connect automatically or not. To change this property, use
TelepathyGLib.AccountRequest.set_connect_automatically
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.connection_manager¶
- Name:
connection-manager
- Type:
- Default Value:
- Flags:
The account’s connection manager name.
New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.display_name¶
- Name:
display-name
- Type:
- Default Value:
- Flags:
The account’s display name. To change this property use
TelepathyGLib.AccountRequest.set_display_name
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.enabled¶
-
Whether the account is enabled or not. To change this property use
TelepathyGLib.AccountRequest.set_enabled
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.icon_name¶
-
The account’s icon name. To change this propery, use
TelepathyGLib.AccountRequest.set_icon_name
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.nickname¶
-
The account’s nickname. To change this property use
TelepathyGLib.AccountRequest.set_nickname
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.parameters¶
- Name:
parameters
- Type:
- Default Value:
- Flags:
The account’s connection parameters. To add a parameter, use
TelepathyGLib.AccountRequest.set_parameter
() or another convience function.New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.properties¶
- Name:
properties
- Type:
- Default Value:
- Flags:
The account’s properties.
New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.protocol¶
- Name:
protocol
- Type:
- Default Value:
- Flags:
The account’s machine-readable protocol name, such as “jabber”, “msn” or “local-xmpp”. Recommended names for most protocols can be found in the Telepathy D-Bus Interface Specification.
New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.requested_presence_type¶
-
The account’s requested presence type (a
TelepathyGLib.ConnectionPresenceType
). To change this property useTelepathyGLib.AccountRequest.set_requested_presence
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.requested_status¶
-
The requested Status string of the account. To change this property use
TelepathyGLib.AccountRequest.set_requested_presence
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.requested_status_message¶
-
The requested status message message of the account. To change this property use
TelepathyGLib.AccountRequest.set_requested_presence
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.service¶
-
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). To change this property, use
TelepathyGLib.AccountRequest.set_service
().New in version 0.19.1.
- TelepathyGLib.AccountRequest.props.storage_provider¶
-
The account’s storage provider. To change this property use
TelepathyGLib.AccountRequest.set_storage_provider
().New in version 0.19.4.
- TelepathyGLib.AccountRequest.props.supersedes¶
-
The object paths of previously-active accounts superseded by this one. For instance, this can be used in a logger to read old logs for an account that has been migrated from one connection manager to another.
To add to this property use
TelepathyGLib.AccountRequest.add_supersedes
().New in version 0.19.1.