diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-07 00:47:19 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-07 00:47:19 +0800 |
commit | 0004ebaad62474cfa2eb5f5c6bf8f29b6e6e4070 (patch) | |
tree | eb869a9fcde213fa89dfd2e5cbaff1eb6360b816 /libempathy/empathy-contact-monitor.h | |
parent | f154530d5eb65cbe2f1af899e0b30d7b665f7575 (diff) | |
download | gsoc2013-empathy-0004ebaad62474cfa2eb5f5c6bf8f29b6e6e4070.tar gsoc2013-empathy-0004ebaad62474cfa2eb5f5c6bf8f29b6e6e4070.tar.gz gsoc2013-empathy-0004ebaad62474cfa2eb5f5c6bf8f29b6e6e4070.tar.bz2 gsoc2013-empathy-0004ebaad62474cfa2eb5f5c6bf8f29b6e6e4070.tar.lz gsoc2013-empathy-0004ebaad62474cfa2eb5f5c6bf8f29b6e6e4070.tar.xz gsoc2013-empathy-0004ebaad62474cfa2eb5f5c6bf8f29b6e6e4070.tar.zst gsoc2013-empathy-0004ebaad62474cfa2eb5f5c6bf8f29b6e6e4070.zip |
Add an EmpathyContactMonitor object to monitor changes in the contact
list.
svn path=/trunk/; revision=2050
Diffstat (limited to 'libempathy/empathy-contact-monitor.h')
-rw-r--r-- | libempathy/empathy-contact-monitor.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/libempathy/empathy-contact-monitor.h b/libempathy/empathy-contact-monitor.h new file mode 100644 index 000000000..e9a060544 --- /dev/null +++ b/libempathy/empathy-contact-monitor.h @@ -0,0 +1,62 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Copyright (C) 2008 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 Cecchi <cosimo.cecchi@collabora.co.uk> + */ + +#ifndef __EMPATHY_CONTACT_MONITOR_H__ +#define __EMPATHY_CONTACT_MONITOR_H__ + +#include <glib-object.h> + +#include "empathy-types.h" + +G_BEGIN_DECLS + +#define EMPATHY_TYPE_CONTACT_MONITOR (empathy_contact_monitor_get_type ()) +#define EMPATHY_CONTACT_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CONTACT_MONITOR, EmpathyContactMonitor)) +#define EMPATHY_CONTACT_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), EMPATHY_TYPE_CONTACT_MONITOR, EmpathyContactMonitorClass)) +#define EMPATHY_IS_CONTACT_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CONTACT_MONITOR)) +#define EMPATHY_IS_CONTACT_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_CONTACT_MONITOR)) +#define EMPATHY_CONTACT_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CONTACT_MONITOR, EmpathyContactMonitorClass)) + +typedef struct _EmpathyContactMonitorClass EmpathyContactMonitorClass; + +struct _EmpathyContactMonitor { + GObject parent; + gpointer priv; +}; + +struct _EmpathyContactMonitorClass { + GObjectClass parent_class; +}; + +GType empathy_contact_monitor_get_type (void); + +/* public methods */ + +void +empathy_contact_monitor_set_proxy (EmpathyContactMonitor *self, + EmpathyContactList *proxy); + +EmpathyContactMonitor * +empathy_contact_monitor_new_for_proxy (EmpathyContactList *proxy); + +G_END_DECLS + +#endif /* __EMPATHY_CONTACT_MONITOR_H__ */ |