summaryrefslogtreecommitdiff
path: root/telepathy-glib/room-info.h
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-04-12 14:37:40 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-04-30 11:47:18 +0200
commit6cb97884c2932ea90bcc4701ecb3a1a1c3c64bfa (patch)
treec751b29073f3a99f477c2bc743b8d6786b98b5fa /telepathy-glib/room-info.h
parent0173bb1410e7c60f71955304b847a898a1efd1c2 (diff)
downloadtelepathy-glib-6cb97884c2932ea90bcc4701ecb3a1a1c3c64bfa.tar.gz
add TpRoomInfo
Diffstat (limited to 'telepathy-glib/room-info.h')
-rw-r--r--telepathy-glib/room-info.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/telepathy-glib/room-info.h b/telepathy-glib/room-info.h
new file mode 100644
index 000000000..99884927c
--- /dev/null
+++ b/telepathy-glib/room-info.h
@@ -0,0 +1,86 @@
+/*
+ * room-info.h
+ *
+ * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef __TP_ROOM_INFO_H__
+#define __TP_ROOM_INFO_H__
+
+#include <glib-object.h>
+
+#include <telepathy-glib/handle.h>
+
+G_BEGIN_DECLS
+
+typedef struct _TpRoomInfo TpRoomInfo;
+typedef struct _TpRoomInfoClass TpRoomInfoClass;
+typedef struct _TpRoomInfoPriv TpRoomInfoPriv;
+
+struct _TpRoomInfoClass {
+ /*<private>*/
+ GObjectClass parent_class;
+};
+
+struct _TpRoomInfo {
+ /*<private>*/
+ GObject parent;
+ TpRoomInfoPriv *priv;
+};
+
+GType tp_room_info_get_type (void);
+
+/* TYPE MACROS */
+#define TP_TYPE_ROOM_INFO \
+ (tp_room_info_get_type ())
+#define TP_ROOM_INFO(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
+ TP_TYPE_ROOM_INFO, \
+ TpRoomInfo))
+#define TP_ROOM_INFO_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
+ TP_TYPE_ROOM_INFO, \
+ TpRoomInfoClass))
+#define TP_IS_ROOM_INFO(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
+ TP_TYPE_ROOM_INFO))
+#define TP_IS_ROOM_INFO_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass), \
+ TP_TYPE_ROOM_INFO))
+#define TP_ROOM_INFO_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ TP_TYPE_ROOM_INFO, \
+ TpRoomInfoClass))
+
+TpHandle tp_room_info_get_handle (TpRoomInfo *self);
+const gchar * tp_room_info_get_channel_type (TpRoomInfo *self);
+const gchar *tp_room_info_get_handle_name (TpRoomInfo *self);
+const gchar *tp_room_info_get_name (TpRoomInfo *self);
+const gchar *tp_room_info_get_description (TpRoomInfo *self);
+const gchar *tp_room_info_get_subject (TpRoomInfo *self);
+guint tp_room_info_get_members (TpRoomInfo *self,
+ gboolean *known);
+gboolean tp_room_info_get_requires_password (TpRoomInfo *self,
+ gboolean *known);
+gboolean tp_room_info_get_invite_only (TpRoomInfo *self,
+ gboolean *known);
+const gchar *tp_room_info_get_room_id (TpRoomInfo *self);
+const gchar *tp_room_info_get_server (TpRoomInfo *self);
+
+G_END_DECLS
+
+#endif /* #ifndef __TP_ROOM_INFO_H__*/