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::succeededsignal will be emitted. Immediately after that, theTelepathyGLib.Proxy::invalidatedsignal 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::invalidatedsignal will be emitted with some other suitable error, usually from the %TP_ERROR domain.If the channel dispatcher crashes or exits, the
TelepathyGLib.Proxy::invalidatedsignal will be emitted with the domain %TP_DBUS_ERRORS and the error codeTelepathyGLib.DBusError.NAME_OWNER_LOST.Creating a
TelepathyGLib.ChannelRequestdirectly is deprecated: it should only be created via aTelepathyGLib.AccountChannelRequestor aTelepathyGLib.BaseClient.Since 0.16,
TelepathyGLib.ChannelRequestalways has a non-NoneTelepathyGLib.Proxy:factory, and itsTelepathyGLib.Proxy:factorywill be propagated to theTelepathyGLib.Account,TelepathyGLib.ConnectionandTelepathyGLib.Channel.New in version 0.7.32.
- classmethod init_known_interfaces()¶
 Ensure that the known interfaces for
TelepathyGLib.ChannelRequesthave 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
Noneif 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.ChannelRequestobjects from aTelepathyGLib.BaseClient
- dup_hints()¶
 - Returns:
 the value of
TelepathyGLib.ChannelRequest:hints-vardict- Return type:
 
Return the
TelepathyGLib.ChannelRequest:hints-vardictpropertyNew 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-vardictproperty.New in version 0.19.10.
- get_account()¶
 - Returns:
 the value of
TelepathyGLib.ChannelRequest:account- Return type:
 
Return the value of the
TelepathyGLib.ChannelRequest:accountconstruct-only propertyNew in version 0.15.3.
- get_hints()¶
 - Returns:
 the value of
TelepathyGLib.ChannelRequest:hints- Return type:
 
Return the
TelepathyGLib.ChannelRequest:hintspropertyNew in version 0.13.14.
- get_immutable_properties()¶
 - Returns:
 the value of
TelepathyGLib.ChannelRequest:immutable-properties- Return type:
 
Return the
TelepathyGLib.ChannelRequest:immutable-propertiesconstruct-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-handlerconstruct-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-timeconstruct-only propertyNew in version 0.15.3.
- set_channel_factory(factory)¶
 - Parameters:
 factory (
TelepathyGLib.ClientChannelFactory) – an object implementing theTelepathyGLib.ClientChannelFactoryInterfaceinterface
Change the value of the
TelepathyGLib.ChannelRequest:channel-factoryproperty.New in version 0.13.14.
Deprecated since version ???: since 0.15.5. Use
TelepathyGLib.Proxy:factoryinstead.
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.Connectionof channel, orNonechannel (
TelepathyGLib.Channel) – theTelepathyGLib.Channelcreated, 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.Channelis created usingTelepathyGLib.ChannelRequest:channel-factoryorTelepathyGLib.Proxy:factorybut 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.Accounton 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.ClientChannelFactoryInterfaceinterface that will be used to create channel proxies when theTelepathyGLib.ChannelRequest::succeeded-with-channelsignal is fired. This property can be changed usingTelepathyGLib.ChannelRequest.set_channel_factory().If no channel factory is specified then
TelepathyGLib.AutomaticProxyFactoryis used.New in version 0.13.14.
Deprecated since version ???: since 0.15.5. Use
TelepathyGLib.Proxy:factoryinstead.
- 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
NoneifTelepathyGLib.ChannelRequest:immutable-propertiesis 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, orNoneto 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_ACTIONif this channel request is for some reason not involving user action.Read-only.
New in version 0.15.3.