[Bug 30338] TpRoomList - High level API for RoomList channel

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Sep 23 11:20:00 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=30338

--- Comment #1 from Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> 2010-09-23 02:20:00 PDT ---
Proposed API:

TpRoomList * tp_room_list_new (TpConnection *conn,
    const gchar *object_path,
    const GHashTable *immutable_properties,
    GError **error);

accessors
---------

const gchar * tp_room_list_get_server (TpRoomList *self);
gboolean tp_room_list_get_listing (TpRoomList *self);

methods
-------

void tp_room_list_start_listing_async (TpRoomList *self,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean tp_room_list_start_listing_finish (TpRoomList *self,
    GAsyncResult *result,
    GError **error);

void tp_room_list_stop_listing_async (TpRoomList *self,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean tp_room_list_stop_listing_finish (TpRoomList *self,
    GAsyncResult *result,
    GError **error);

Signals
-------

'listing' changes are announced using "notify::listing"

got-rooms (GPtrArray *rooms) with rooms containing TP_STRUCT_TYPE_ROOM_INFO
Or maybe we should have a small TpRoomInfo object?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list