TelepathyGLib.SimpleClientFactory¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The D-Bus daemon used by this object |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class TelepathyGLib.SimpleClientFactory(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Data structure representing a
TelepathyGLib.SimpleClientFactory
New in version 0.15.5.
- classmethod new(dbus)¶
- Parameters:
dbus (
TelepathyGLib.DBusDaemon
orNone
) – aTelepathyGLib.DBusDaemon
, orNone
- Returns:
- Return type:
Creates a new
TelepathyGLib.SimpleClientFactory
instance. If dbus isNone
,TelepathyGLib.DBusDaemon.dup
() will be used.New in version 0.15.5.
- add_account_features(features)¶
- Parameters:
features ([
int
] orNone
) – an array of desired features, ending with 0;None
is equivalent to an array containing only 0
Add features to the desired features to be prepared on
TelepathyGLib.Account
objects. Those features will be added to the features already returned beTelepathyGLib.SimpleClientFactory.dup_account_features
().It is not necessary to add %TP_ACCOUNT_FEATURE_CORE as it is already included by default.
Note that these features will not be added to existing
TelepathyGLib.Account
objects; the user must callTelepathyGLib.Proxy.prepare_async
() themself.New in version 0.15.5.
- add_channel_features(features)¶
- Parameters:
features ([
int
] orNone
) – an array of desired features, ending with 0;None
is equivalent to an array containing only 0
Add features to the desired features to be prepared on
TelepathyGLib.Channel
objects. Those features will be added to the features already returned beTelepathyGLib.SimpleClientFactory.dup_channel_features
().It is not necessary to add %TP_CHANNEL_FEATURE_CORE as it is already included by default.
Note that these features will not be added to existing
TelepathyGLib.Channel
objects; the user must callTelepathyGLib.Proxy.prepare_async
() themself.New in version 0.15.5.
- add_connection_features(features)¶
- Parameters:
features ([
int
] orNone
) – an array of desired features, ending with 0;None
is equivalent to an array containing only 0
Add features to the desired features to be prepared on
TelepathyGLib.Connection
objects. Those features will be added to the features already returned beTelepathyGLib.SimpleClientFactory.dup_connection_features
().It is not necessary to add %TP_CONNECTION_FEATURE_CORE as it is already included by default.
Note that these features will not be added to existing
TelepathyGLib.Connection
objects; the user must callTelepathyGLib.Proxy.prepare_async
() themself.New in version 0.15.5.
- add_contact_features(features)¶
- Parameters:
features ([
TelepathyGLib.ContactFeature
] orNone
) – an array of desired features (may beNone
if n_features is 0)
Add features to the desired features to be prepared on
TelepathyGLib.Contact
objects. Those features will be added to the features already returned beTelepathyGLib.SimpleClientFactory.dup_contact_features
().Note that these features will not be added to existing
TelepathyGLib.Contact
objects; the user must callTelepathyGLib.Connection.upgrade_contacts
() themself.New in version 0.15.5.
- dup_account_features(account)¶
- Parameters:
account (
TelepathyGLib.Account
) – aTelepathyGLib.Account
- Returns:
a newly allocated
GLib.Array
- Return type:
[
int
]
Return a zero-terminated
GLib.Array
containing theTelepathyGLib.Account
features that should be prepared on account.New in version 0.15.5.
- dup_channel_features(channel)¶
- Parameters:
channel (
TelepathyGLib.Channel
) – aTelepathyGLib.Channel
- Returns:
a newly allocated
GLib.Array
- Return type:
[
int
]
Return a zero-terminated
GLib.Array
containing theTelepathyGLib.Channel
features that should be prepared on channel.New in version 0.15.5.
- dup_connection_features(connection)¶
- Parameters:
connection (
TelepathyGLib.Connection
) – aTelepathyGLib.Connection
- Returns:
a newly allocated
GLib.Array
- Return type:
[
int
]
Return a zero-terminated
GLib.Array
containing theTelepathyGLib.Connection
features that should be prepared on connection.New in version 0.15.5.
- dup_contact_features(connection)¶
- Parameters:
connection (
TelepathyGLib.Connection
) – aTelepathyGLib.Connection
- Returns:
a newly allocated
GLib.Array
- Return type:
Return a
GLib.Array
containing theTelepathyGLib.ContactFeature
that should be prepared on all contacts of connection.New in version 0.15.5.
- ensure_account(object_path, immutable_properties)¶
- Parameters:
object_path (
str
) – the object path of an accountimmutable_properties ({
str
:GObject.Value
}) – the immutable properties of the account, orNone
.
- Raises:
- Returns:
a reference to a
TelepathyGLib.Account
; seeTelepathyGLib.Account.new
().- Return type:
Returns a
TelepathyGLib.Account
proxy for the account at object_path. The returnedTelepathyGLib.Account
is cached; the sameTelepathyGLib.Account
object will be returned by this function repeatedly, as long as at least one reference exists.Note that the returned
TelepathyGLib.Account
is not guaranteed to be ready; the caller is responsible for callingTelepathyGLib.Proxy.prepare_async
() with the desired features (as given byTelepathyGLib.SimpleClientFactory.dup_account_features
()).This function is rather low-level.
TelepathyGLib.AccountManager.dup_valid_accounts
() andTelepathyGLib.AccountManager
::validity-changed
are more appropriate for most applications.New in version 0.15.5.
- ensure_channel(connection, object_path, immutable_properties)¶
- Parameters:
connection (
TelepathyGLib.Connection
) – aTelepathyGLib.Connection
whoseTelepathyGLib.Proxy
:factory
is this objectobject_path (
str
) – the object path of a channel on connectionimmutable_properties ({
str
:GObject.Value
}) – the immutable properties of the channel
- Raises:
- Returns:
a reference to a
TelepathyGLib.Channel
; seeTelepathyGLib.Channel.new_from_properties
().- Return type:
Returns a
TelepathyGLib.Channel
proxy for the channel at object_path on connection. The returnedTelepathyGLib.Channel
is cached; the sameTelepathyGLib.Channel
object will be returned by this function repeatedly, as long as at least one reference exists.Note that the returned
TelepathyGLib.Channel
is not guaranteed to be ready; the caller is responsible for callingTelepathyGLib.Proxy.prepare_async
() with the desired features (as given byTelepathyGLib.SimpleClientFactory.dup_channel_features
()).This function is rather low-level.
TelepathyGLib.AccountChannelRequest
andTelepathyGLib.BaseClient
are more appropriate ways to obtain channels for most applications.New in version 0.15.5.
- ensure_connection(object_path, immutable_properties)¶
- Parameters:
object_path (
str
) – the object path of a connectionimmutable_properties ({
str
:GObject.Value
}) – the immutable properties of the connection.
- Raises:
- Returns:
a reference to a
TelepathyGLib.Connection
; seeTelepathyGLib.Connection.new
().- Return type:
Returns a
TelepathyGLib.Connection
proxy for the connection at object_path. The returnedTelepathyGLib.Connection
is cached; the sameTelepathyGLib.Connection
object will be returned by this function repeatedly, as long as at least one reference exists.Note that the returned
TelepathyGLib.Connection
is not guaranteed to be ready; the caller is responsible for callingTelepathyGLib.Proxy.prepare_async
() with the desired features (as given byTelepathyGLib.SimpleClientFactory.dup_connection_features
()).This function is rather low-level.
TelepathyGLib.Account
:connection
is more appropriate for most applications.New in version 0.15.5.
- ensure_contact(connection, handle, identifier)¶
- Parameters:
connection (
TelepathyGLib.Connection
) – aTelepathyGLib.Connection
whoseTelepathyGLib.Proxy
:factory
is this objecthandle (
int
) – a #TpHandleidentifier (
str
) – a string representing the contact’s identifier
- Returns:
a reference to a
TelepathyGLib.Contact
.- Return type:
Returns a
TelepathyGLib.Contact
representing identifier (and handle) on connection. The returnedTelepathyGLib.Contact
is cached; the sameTelepathyGLib.Contact
object will be returned by this function repeatedly, as long as at least one reference exists.Note that the returned
TelepathyGLib.Contact
is not guaranteed to be ready; the caller is responsible for callingTelepathyGLib.Connection.upgrade_contacts
() with the desired features (as given byTelepathyGLib.SimpleClientFactory.dup_contact_features
()).For this function to work properly,
TelepathyGLib.Connection.has_immortal_handles
() must returnTrue
for connection.New in version 0.15.5.
- ensure_contact_by_id_async(connection, identifier, callback, *user_data)¶
- Parameters:
connection (
TelepathyGLib.Connection
) – aTelepathyGLib.Connection
identifier (
str
) – a string representing the contact’s identifiercallback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the operation finishes
Same as
TelepathyGLib.Connection.dup_contact_by_id_async
(), but prepare the contact with all features previously passed toTelepathyGLib.SimpleClientFactory.add_contact_features
().New in version 0.19.1.
- ensure_contact_by_id_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
a
TelepathyGLib.Contact
orNone
on error.- Return type:
Finishes
TelepathyGLib.SimpleClientFactory.ensure_contact_by_id_async
()New in version 0.19.1.
- get_dbus_daemon()¶
- Returns:
the value of the
TelepathyGLib.SimpleClientFactory
:dbus-daemon
property- Return type:
New in version 0.15.5.
- upgrade_contacts_async(connection, contacts, callback, *user_data)¶
- Parameters:
connection (
TelepathyGLib.Connection
) – aTelepathyGLib.Connection
whoseTelepathyGLib.Proxy
:factory
is this objectcontacts ([
TelepathyGLib.Contact
]) – An array ofTelepathyGLib.Contact
objects associated with selfcallback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the operation finishes
Same as
TelepathyGLib.Connection.upgrade_contacts_async
(), but prepare contacts with all features previously passed toTelepathyGLib.SimpleClientFactory.add_contact_features
().New in version 0.19.1.
- upgrade_contacts_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
True
on success,False
otherwise.- contacts:
a location to set a
GLib.PtrArray
of upgradedTelepathyGLib.Contact
, orNone
.
- Return type:
(
bool
, contacts: [TelepathyGLib.Contact
])
Finishes
TelepathyGLib.SimpleClientFactory.upgrade_contacts_async
()New in version 0.19.1.
- do_dup_account_features(account) virtual¶
- Parameters:
account (
TelepathyGLib.Account
) – aTelepathyGLib.Account
- Returns:
a newly allocated
GLib.Array
- Return type:
[
int
]
Return a zero-terminated
GLib.Array
containing theTelepathyGLib.Account
features that should be prepared on account.New in version 0.15.5.
- do_dup_channel_features(channel) virtual¶
- Parameters:
channel (
TelepathyGLib.Channel
) – aTelepathyGLib.Channel
- Returns:
a newly allocated
GLib.Array
- Return type:
[
int
]
Return a zero-terminated
GLib.Array
containing theTelepathyGLib.Channel
features that should be prepared on channel.New in version 0.15.5.
- do_dup_connection_features(connection) virtual¶
- Parameters:
connection (
TelepathyGLib.Connection
) – aTelepathyGLib.Connection
- Returns:
a newly allocated
GLib.Array
- Return type:
[
int
]
Return a zero-terminated
GLib.Array
containing theTelepathyGLib.Connection
features that should be prepared on connection.New in version 0.15.5.
- do_dup_contact_features(connection) virtual¶
- Parameters:
connection (
TelepathyGLib.Connection
) – aTelepathyGLib.Connection
- Returns:
a newly allocated
GLib.Array
- Return type:
Return a
GLib.Array
containing theTelepathyGLib.ContactFeature
that should be prepared on all contacts of connection.New in version 0.15.5.
Property Details¶
- TelepathyGLib.SimpleClientFactory.props.dbus_daemon¶
- Name:
dbus-daemon
- Type:
- Default Value:
- Flags:
The D-Bus daemon for this object.