TpObserveChannelContext

TpObserveChannelContext — context of a Observer.ObserveChannels() call

Functions

Properties

TpAccount * account Read / Write / Construct Only
TpChannel * channel Read / Write / Construct Only
TpConnection * connection Read / Write / Construct Only
gpointer dbus-context Write / Construct Only
TpChannelDispatchOperation * dispatch-operation Read / Write / Construct Only
GVariant * observer-info Read / Write / Construct Only
GPtrArray * requests Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── TpObserveChannelContext

Includes

#include <telepathy-glib/telepathy-glib.h>

Description

Object used to represent the context of a Observer.ObserveChannels() D-Bus call on a TpBaseClient.

Functions

tp_observe_channel_context_accept ()

void
tp_observe_channel_context_accept (TpObserveChannelContext *self);

Called by TpBaseClientClassObserveChannelImpl when it's done so the D-Bus method can return.

Parameters

Since 0.11.5


tp_observe_channel_context_delay ()

void
tp_observe_channel_context_delay (TpObserveChannelContext *self);

Called by TpBaseClientClassObserveChannelImpl to indicate that it implements the method in an async way. The caller must take a reference to the TpObserveChannelContext before calling this function, and is responsible for calling either tp_observe_channel_context_accept() or tp_observe_channel_context_fail() later.

Parameters

Since 0.11.5


tp_observe_channel_context_fail ()

void
tp_observe_channel_context_fail (TpObserveChannelContext *self,
                                 const GError *error);

Called by TpBaseClientClassObserveChannelImpl to raise a D-Bus error.

Parameters

self

a TpObserveChannelContext

 

error

the error to return from the method

 

Since 0.11.5


tp_observe_channel_context_is_recovering ()

gboolean
tp_observe_channel_context_is_recovering
                               (TpObserveChannelContext *self);

If this call to ObserveChannels is for channels that already existed before this observer started (because the observer used tp_base_client_set_observer_recover()), return TRUE.

In most cases, the result is FALSE.

Parameters

Returns

TRUE for pre-existing channels, FALSE for new channels

Since 0.11.5


tp_observe_channel_context_get_requests ()

GList *
tp_observe_channel_context_get_requests
                               (TpObserveChannelContext *self);

Return a list of the TpChannelRequest which have been satisfied by the channels associated with self.

Parameters

Returns

a newly allocated GList of reffed TpChannelRequest.

[transfer full][element-type TelepathyGLib.ChannelRequest]

Since 0.13.14

Types and Values

TpObserveChannelContext

typedef struct _TpObserveChannelContext TpObserveChannelContext;

Data structure representing the context of a Observer.ObserveChannels() call.

Since 0.11.5

Property Details

The “account” property

  “account”                  TpAccount *

A TpAccount object representing the Account that has been passed to ObserveChannels. Read-only except during construction.

This property can't be NULL.

Flags: Read / Write / Construct Only

Since 0.11.5


The “channel” property

  “channel”                  TpChannel *

A TpChannel object representing the channel that has been passed to ObserveChannel. Read-only except during construction.

This property can't be NULL.

Flags: Read / Write / Construct Only

Since 0.11.5


The “connection” property

  “connection”               TpConnection *

A TpConnection object representing the Connection that has been passed to ObserveChannels. Read-only except during construction.

This property can't be NULL.

Flags: Read / Write / Construct Only

Since 0.11.5


The “dbus-context” property

  “dbus-context”             gpointer

The GDBusMethodInvocation representing the D-Bus context of the ObserveChannels call. Can only be written during construction.

Flags: Write / Construct Only

Since 0.11.5


The “dispatch-operation” property

  “dispatch-operation”       TpChannelDispatchOperation *

A TpChannelDispatchOperation object representing the ChannelDispatchOperation that has been passed to ObserveChannels, or NULL if none has been passed. Read-only except during construction.

Flags: Read / Write / Construct Only

Since 0.11.5


The “observer-info” property

  “observer-info”            GVariant *

A G_VARIANT_TYPE_VARDICT. It represents the Observer_Info hash table that has been passed to ObserveChannels. It's recommended to use high-level method such as tp_observe_channel_context_is_recovering() to access to its content.

This property can't be NULL at runtime.

Flags: Read / Write / Construct Only

Allowed values: GVariant<a{sv}>

Default value: NULL


The “requests” property

  “requests”                 GPtrArray *

A GPtrArray containing TpChannelRequest objects representing the requests that have been passed to ObserveChannels. Read-only except during construction.

This property can't be NULL.

Flags: Read / Write / Construct Only

Since 0.11.5