summaryrefslogtreecommitdiff
path: root/telepathy-logger/entity-internal.h
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-15 15:07:58 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-15 15:07:58 +0200
commitf9fe52d8603087f6c3856358f0e77f69d1b7c295 (patch)
tree619591caa8803d642c448222b47cef1d8442b873 /telepathy-logger/entity-internal.h
parent95ba705e3568fd057cbe08ed49446640c7e98618 (diff)
downloadtelepathy-logger-f9fe52d8603087f6c3856358f0e77f69d1b7c295.tar.gz
move contact(-internal) to entity(-internal)
Diffstat (limited to 'telepathy-logger/entity-internal.h')
-rw-r--r--telepathy-logger/entity-internal.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/telepathy-logger/entity-internal.h b/telepathy-logger/entity-internal.h
new file mode 100644
index 0000000..00756ed
--- /dev/null
+++ b/telepathy-logger/entity-internal.h
@@ -0,0 +1,58 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ *Copyright (C) 2009-2010 Collabora Ltd.
+ *
+ *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
+ *
+ *Authors: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
+ */
+
+#ifndef __TPL_CONTACT_INTERNAL_H__
+#define __TPL_CONTACT_INTERNAL_H__
+
+#include <telepathy-logger/entity.h>
+
+#include <glib-object.h>
+#include <telepathy-glib/contact.h>
+
+G_BEGIN_DECLS
+#define TPL_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TPL_TYPE_CONTACT, TplContactClass))
+#define TPL_IS_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TPL_TYPE_CONTACT))
+#define TPL_CONTACT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TPL_TYPE_CONTACT, TplContactClass))
+
+typedef struct
+{
+ GObjectClass parent_class;
+} TplContactClass;
+
+TplContact *_tpl_contact_from_tp_contact (TpContact *contact);
+TplContact *_tpl_contact_new (const gchar *identifier);
+
+void _tpl_contact_set_alias (TplContact *self,
+ const gchar *data);
+
+void _tpl_contact_set_identifier (TplContact *self,
+ const gchar *data);
+
+void _tpl_contact_set_contact_type (TplContact *self,
+ TplContactType data);
+
+void _tpl_contact_set_avatar_token (TplContact *self,
+ const gchar *data);
+
+TplContact * _tpl_contact_from_room_id (const gchar *chatroom_id);
+
+G_END_DECLS
+#endif // __TPL_CONTACT_INTERNAL_H__