Room List channels

Room List channels — service-side interface for the Room List channel type

Functions

Signals

void got-rooms Has Details
void listing-rooms Has Details

Types and Values

Object Hierarchy

    GInterface
    ╰── TpSvcChannelTypeRoomList1

Includes

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

Description

Many instant messaging protocols allow named chatrooms to be listed. This section documents the auto-generated C wrappers for the Room List channel type.

Functions

tp_svc_channel_type_room_list1_get_listing_rooms_impl ()

void
(*tp_svc_channel_type_room_list1_get_listing_rooms_impl)
                               (TpSvcChannelTypeRoomList1 *self,
                                GDBusMethodInvocation *invocation);

The signature of an implementation of the D-Bus method GetListingRooms on interface im.telepathy.v1.Channel.Type.RoomList1.

Parameters

self

The object implementing this interface

 

invocation

Used to return values or throw an error

 

tp_svc_channel_type_room_list1_implement_get_listing_rooms ()

void
tp_svc_channel_type_room_list1_implement_get_listing_rooms
                               (TpSvcChannelTypeRoomList1Class *klass,
                                tp_svc_channel_type_room_list1_get_listing_rooms_impl impl);

Register an implementation for the GetListingRooms method in the vtable of an implementation of this interface. To be called from the interface init function.

Parameters

klass

A class whose instances implement this interface

 

impl

A callback used to implement the GetListingRooms D-Bus method

 

tp_svc_channel_type_room_list1_return_from_get_listing_rooms ()

void
tp_svc_channel_type_room_list1_return_from_get_listing_rooms
                               (GDBusMethodInvocation *invocation,
                                gboolean out_In_Progress);

Return successfully by calling g_dbus_method_invocation_return_value().

Parameters

invocation

The D-Bus method invocation context

 

out_In_Progress

gboolean (FIXME, generate documentation)

 

tp_svc_channel_type_room_list1_list_rooms_impl ()

void
(*tp_svc_channel_type_room_list1_list_rooms_impl)
                               (TpSvcChannelTypeRoomList1 *self,
                                GDBusMethodInvocation *invocation);

The signature of an implementation of the D-Bus method ListRooms on interface im.telepathy.v1.Channel.Type.RoomList1.

Parameters

self

The object implementing this interface

 

invocation

Used to return values or throw an error

 

tp_svc_channel_type_room_list1_implement_list_rooms ()

void
tp_svc_channel_type_room_list1_implement_list_rooms
                               (TpSvcChannelTypeRoomList1Class *klass,
                                tp_svc_channel_type_room_list1_list_rooms_impl impl);

Register an implementation for the ListRooms method in the vtable of an implementation of this interface. To be called from the interface init function.

Parameters

klass

A class whose instances implement this interface

 

impl

A callback used to implement the ListRooms D-Bus method

 

tp_svc_channel_type_room_list1_return_from_list_rooms ()

void
tp_svc_channel_type_room_list1_return_from_list_rooms
                               (GDBusMethodInvocation *invocation);

Return successfully by calling g_dbus_method_invocation_return_value().

Parameters

invocation

The D-Bus method invocation context

 

tp_svc_channel_type_room_list1_stop_listing_impl ()

void
(*tp_svc_channel_type_room_list1_stop_listing_impl)
                               (TpSvcChannelTypeRoomList1 *self,
                                GDBusMethodInvocation *invocation);

The signature of an implementation of the D-Bus method StopListing on interface im.telepathy.v1.Channel.Type.RoomList1.

Parameters

self

The object implementing this interface

 

invocation

Used to return values or throw an error

 

tp_svc_channel_type_room_list1_implement_stop_listing ()

void
tp_svc_channel_type_room_list1_implement_stop_listing
                               (TpSvcChannelTypeRoomList1Class *klass,
                                tp_svc_channel_type_room_list1_stop_listing_impl impl);

Register an implementation for the StopListing method in the vtable of an implementation of this interface. To be called from the interface init function.

Parameters

klass

A class whose instances implement this interface

 

impl

A callback used to implement the StopListing D-Bus method

 

tp_svc_channel_type_room_list1_return_from_stop_listing ()

void
tp_svc_channel_type_room_list1_return_from_stop_listing
                               (GDBusMethodInvocation *invocation);

Return successfully by calling g_dbus_method_invocation_return_value().

Parameters

invocation

The D-Bus method invocation context

 

tp_svc_channel_type_room_list1_emit_got_rooms ()

void
tp_svc_channel_type_room_list1_emit_got_rooms
                               (gpointer instance,
                                const GPtrArray *arg_Rooms);

Type-safe wrapper around g_signal_emit to emit the GotRooms signal on interface im.telepathy.v1.Channel.Type.RoomList1.

Parameters

instance

The object implementing this interface

 

arg_Rooms

const GPtrArray * (FIXME, generate documentation)

 

tp_svc_channel_type_room_list1_emit_listing_rooms ()

void
tp_svc_channel_type_room_list1_emit_listing_rooms
                               (gpointer instance,
                                gboolean arg_Listing);

Type-safe wrapper around g_signal_emit to emit the ListingRooms signal on interface im.telepathy.v1.Channel.Type.RoomList1.

Parameters

instance

The object implementing this interface

 

arg_Listing

gboolean (FIXME, generate documentation)

 

Types and Values

TpSvcChannelTypeRoomList1

typedef struct _TpSvcChannelTypeRoomList1 TpSvcChannelTypeRoomList1;

Dummy typedef representing any implementation of this interface.


TpSvcChannelTypeRoomList1Class

typedef struct _TpSvcChannelTypeRoomList1Class TpSvcChannelTypeRoomList1Class;

The class of TpSvcChannelTypeRoomList1.

In a full implementation of this interface (i.e. all methods implemented), the interface initialization function used in G_IMPLEMENT_INTERFACE() would typically look like this:

static void
implement_channel_type_room_list1 (gpointer klass,
    gpointer unused G_GNUC_UNUSED)
{
#define IMPLEMENT(x) tp_svc_channel_type_room_list1_implement_##x (\
  klass, my_object_##x)
  IMPLEMENT (get_listing_rooms);
  IMPLEMENT (list_rooms);
  IMPLEMENT (stop_listing);
#undef IMPLEMENT
}

Signal Details

The “got-rooms” signal

void
user_function (TpSvcChannelTypeRoomList1 *self,
               gpointer                   user_data)

The GotRooms D-Bus signal is emitted whenever this GObject signal is.

Parameters

self

an object

 

arg_Rooms

const GPtrArray * (FIXME, generate documentation)

 

user_data

user data set when the signal handler was connected.

 

Flags: Has Details


The “listing-rooms” signal

void
user_function (TpSvcChannelTypeRoomList1 *self,
               gboolean                   arg_Listing,
               gpointer                   user_data)

The ListingRooms D-Bus signal is emitted whenever this GObject signal is.

Parameters

self

an object

 

arg_Listing

gboolean (FIXME, generate documentation)

 

user_data

user data set when the signal handler was connected.

 

Flags: Has Details