TelepathyGLib.ChannelRequest¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Account |
||
r/w/c |
Object implementing |
||
r |
Hints |
||
r |
A map D-Bus interface + “.” + property name => variant |
||
r |
PreferredHandler |
||
r |
UserActionTime |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when the channel request succeeds. |
|
Emitted when the channel request succeeds. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class TelepathyGLib.ChannelRequest(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Requesting a channel from the channel dispatcher can take some time, so an object is created in the channel dispatcher to represent each request. This proxy represents one of those objects.
Any client can call tp_cli_channel_request_call_cancel() at any time to attempt to cancel the request.
On success, the
TelepathyGLib.ChannelRequest
::succeeded
signal will be emitted. Immediately after that, theTelepathyGLib.Proxy
::invalidated
signal will be emitted, with the domain %TP_DBUS_ERRORS and the error codeTelepathyGLib.DBusError.OBJECT_REMOVED
(this is not an error condition, it merely indicates that the channel request no longer exists).On failure, the
TelepathyGLib.Proxy
::invalidated
signal will be emitted with some other suitable error, usually from the %TP_ERROR domain.If the channel dispatcher crashes or exits, the
TelepathyGLib.Proxy
::invalidated
signal will be emitted with the domain %TP_DBUS_ERRORS and the error codeTelepathyGLib.DBusError.NAME_OWNER_LOST
.Creating a
TelepathyGLib.ChannelRequest
directly is deprecated: it should only be created via aTelepathyGLib.AccountChannelRequest
or aTelepathyGLib.BaseClient
.Since 0.16,
TelepathyGLib.ChannelRequest
always has a non-None
TelepathyGLib.Proxy
:factory
, and itsTelepathyGLib.Proxy
:factory
will be propagated to theTelepathyGLib.Account
,TelepathyGLib.Connection
andTelepathyGLib.Channel
.New in version 0.7.32.
- classmethod init_known_interfaces()¶
Ensure that the known interfaces for
TelepathyGLib.ChannelRequest
have been set up. This is done automatically when necessary, but for correct overriding of library interfaces by local extensions, you should call this function before calling tp_proxy_or_subclass_hook_on_interface_add() with first argument %TP_TYPE_CHANNEL_REQUEST.New in version 0.7.32.
- classmethod new(bus_daemon, object_path, immutable_properties)¶
- Parameters:
- Raises:
- Returns:
a new reference to an channel request proxy, or
None
if object_path is not syntactically valid or the channel dispatcher is not running- Return type:
Convenience function to create a new channel request proxy.
If the channel request was newly created, the client making the request is responsible for calling tp_cli_channel_request_call_proceed() when it is ready for the channel request to proceed.
Deprecated since version 0.19.9: New code should get
TelepathyGLib.ChannelRequest
objects from aTelepathyGLib.BaseClient
- dup_hints()¶
- Returns:
the value of
TelepathyGLib.ChannelRequest
:hints-vardict
- Return type:
Return the
TelepathyGLib.ChannelRequest
:hints-vardict
propertyNew in version 0.19.10.
- dup_immutable_properties()¶
- Returns:
the value of
TelepathyGLib.ChannelRequest
:immutable-properties-vardict
- Return type:
Return the
TelepathyGLib.ChannelRequest
:immutable-properties-vardict
property.New in version 0.19.10.
- get_account()¶
- Returns:
the value of
TelepathyGLib.ChannelRequest
:account
- Return type:
Return the value of the
TelepathyGLib.ChannelRequest
:account
construct-only propertyNew in version 0.15.3.
- get_hints()¶
- Returns:
the value of
TelepathyGLib.ChannelRequest
:hints
- Return type:
Return the
TelepathyGLib.ChannelRequest
:hints
propertyNew in version 0.13.14.
- get_immutable_properties()¶
- Returns:
the value of
TelepathyGLib.ChannelRequest
:immutable-properties
- Return type:
Return the
TelepathyGLib.ChannelRequest
:immutable-properties
construct-only propertyNew in version 0.13.14.
- get_preferred_handler()¶
- Returns:
the value of
TelepathyGLib.ChannelRequest
:preferred-handler
- Return type:
return the
TelepathyGLib.ChannelRequest
:preferred-handler
construct-only propertyNew in version 0.15.3.
- get_user_action_time()¶
- Returns:
the value of
TelepathyGLib.ChannelRequest
:user-action-time
- Return type:
return the
TelepathyGLib.ChannelRequest
:user-action-time
construct-only propertyNew in version 0.15.3.
- set_channel_factory(factory)¶
- Parameters:
factory (
TelepathyGLib.ClientChannelFactory
) – an object implementing theTelepathyGLib.ClientChannelFactoryInterface
interface
Change the value of the
TelepathyGLib.ChannelRequest
:channel-factory
property.New in version 0.13.14.
Deprecated since version ???: since 0.15.5. Use
TelepathyGLib.Proxy
:factory
instead.
Signal Details¶
- TelepathyGLib.ChannelRequest.signals.succeeded(channel_request)¶
- Signal Name:
succeeded
- Flags:
- Parameters:
channel_request (
TelepathyGLib.ChannelRequest
) – The object which received the signal
Emitted when the channel request succeeds.
Deprecated since version ???: since 0.13.14. Use
TelepathyGLib.ChannelRequest
::succeeded-with-channel
, which provides the resulting channel, instead.
- TelepathyGLib.ChannelRequest.signals.succeeded_with_channel(channel_request, connection, channel)¶
- Signal Name:
succeeded-with-channel
- Flags:
- Parameters:
channel_request (
TelepathyGLib.ChannelRequest
) – The object which received the signalconnection (
TelepathyGLib.Connection
) – theTelepathyGLib.Connection
of channel, orNone
channel (
TelepathyGLib.Channel
) – theTelepathyGLib.Channel
created, orNone
Emitted when the channel request succeeds.
With telepathy-mission-control version 5.7.1 and earlier, connection and channel will be
None
. When using newer versions, they will be correctly set to the newly-created channel, and the connection which owns it.The
TelepathyGLib.Channel
is created usingTelepathyGLib.ChannelRequest
:channel-factory
orTelepathyGLib.Proxy
:factory
but the features of the factory are NOT prepared. It’s up to the user to prepare the features returned byTelepathyGLib.SimpleClientFactory.dup_channel_features
() himself.New in version 0.13.14.
Property Details¶
- TelepathyGLib.ChannelRequest.props.account¶
- Name:
account
- Type:
- Default Value:
- Flags:
The
TelepathyGLib.Account
on which this request was made, not guaranteed to be prepared.Read-only.
New in version 0.15.3.
- TelepathyGLib.ChannelRequest.props.channel_factory¶
- Name:
channel-factory
- Type:
- Default Value:
- Flags:
The object implementing the
TelepathyGLib.ClientChannelFactoryInterface
interface that will be used to create channel proxies when theTelepathyGLib.ChannelRequest
::succeeded-with-channel
signal is fired. This property can be changed usingTelepathyGLib.ChannelRequest.set_channel_factory
().If no channel factory is specified then
TelepathyGLib.AutomaticProxyFactory
is used.New in version 0.13.14.
Deprecated since version ???: since 0.15.5. Use
TelepathyGLib.Proxy
:factory
instead.
- TelepathyGLib.ChannelRequest.props.hints_vardict¶
- Name:
hints-vardict
- Type:
- Default Value:
- Flags:
A %G_VARIANT_TYPE_VARDICT of metadata provided by the channel requester; or
None
ifTelepathyGLib.ChannelRequest
:immutable-properties
is not defined or if no hints have been defined.Read-only.
New in version 0.19.10.
- TelepathyGLib.ChannelRequest.props.immutable_properties_vardict¶
- Name:
immutable-properties-vardict
- Type:
- Default Value:
- Flags:
The immutable D-Bus properties of this channel request, represented by a %G_VARIANT_TYPE_VARDICT where the keys are D-Bus interface name + “.” + property name.
Note that this property is set only if the immutable properties have been set during the construction of the
TelepathyGLib.ChannelRequest
.Read-only except during construction.
New in version 0.19.10.
- TelepathyGLib.ChannelRequest.props.preferred_handler¶
-
Either the well-known bus name (starting with
TelepathyGLib.CLIENT_BUS_NAME_BASE
) of the preferred handler for this channel request, orNone
to indicate that any handler would be acceptable.Read-only.
New in version 0.15.3.
- TelepathyGLib.ChannelRequest.props.user_action_time¶
-
The time at which user action occurred, or
TelepathyGLib.USER_ACTION_TIME_NOT_USER_ACTION
if this channel request is for some reason not involving user action.Read-only.
New in version 0.15.3.