2 * Copyright (C) 2007-2009 Collabora Ltd.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 * Authors: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
21 #ifndef __EMPATHY_HANDLER_H__
22 #define __EMPATHY_HANDLER_H__
26 #include <telepathy-glib/channel.h>
27 #include <telepathy-glib/dbus-properties-mixin.h>
31 #define EMPATHY_TYPE_HANDLER (empathy_handler_get_type ())
32 #define EMPATHY_HANDLER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), \
33 EMPATHY_TYPE_HANDLER, EmpathyHandler))
34 #define EMPATHY_HANDLER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), \
35 EMPATHY_TYPE_HANDLER, EmpathyHandlerClass))
36 #define EMPATHY_IS_HANDLER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
37 EMPATHY_TYPE_HANDLER))
38 #define EMPATHY_IS_HANDLER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), \
39 EMPATHY_TYPE_HANDLER))
40 #define EMPATHY_HANDLER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), \
41 EMPATHY_TYPE_HANDLER, EmpathyHandlerClass))
43 GType empathy_handler_get_type (void) G_GNUC_CONST;
45 typedef struct _EmpathyHandler EmpathyHandler;
46 typedef struct _EmpathyHandlerClass EmpathyHandlerClass;
48 struct _EmpathyHandler
54 struct _EmpathyHandlerClass
56 GObjectClass parent_class;
57 TpDBusPropertiesMixinClass dbus_props_class;
61 EmpathyHandler * empathy_handler_new (const gchar *name,
65 typedef gboolean (EmpathyHandlerHandleChannelsFunc) (EmpathyHandler *handler,
66 const gchar *account_path,
67 const gchar *connection_path,
68 const GPtrArray *channels,
69 const GPtrArray *requests_satisfied,
71 GHashTable *handler_info,
75 void empathy_handler_set_handle_channels_func (EmpathyHandler *handler,
76 EmpathyHandlerHandleChannelsFunc *func,
79 typedef GList * (EmpathyHandlerChannelsFunc) (
80 EmpathyHandler *handler,
83 void empathy_handler_set_channels_func (EmpathyHandler *handler,
84 EmpathyHandlerChannelsFunc func,
89 #endif /* __EMPATHY_HANDLER_H__ */