aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-observer.h
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-03-07 19:40:35 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-03-07 19:40:35 +0800
commit19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce (patch)
tree41a458625b02029854517fea03aaba8a137e33ce /src/empathy-call-observer.h
parent20ec7b56ec63c56b41ad7c2cff2e4fd1ce3ba47f (diff)
downloadgsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.tar
gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.tar.gz
gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.tar.bz2
gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.tar.lz
gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.tar.xz
gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.tar.zst
gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.zip
Autoreject incoming calls if there are others in progress
https://bugzilla.gnome.org/show_bug.cgi?id=643656
Diffstat (limited to 'src/empathy-call-observer.h')
-rw-r--r--src/empathy-call-observer.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/empathy-call-observer.h b/src/empathy-call-observer.h
new file mode 100644
index 000000000..1d5a58b57
--- /dev/null
+++ b/src/empathy-call-observer.h
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2011 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: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
+ */
+
+#ifndef __EMPATHY_CALL_OBSERVER_H__
+#define __EMPATHY_CALL_OBSERVER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define EMPATHY_TYPE_CALL_OBSERVER (empathy_call_observer_get_type ())
+#define EMPATHY_CALL_OBSERVER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CALL_OBSERVER, EmpathyCallObserver))
+#define EMPATHY_CALL_OBSERVER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EMPATHY_TYPE_CALL_OBSERVER, EmpathyCallObserverClass))
+#define EMPATHY_IS_CALL_OBSERVER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CALL_OBSERVER))
+#define EMPATHY_IS_CALL_OBSERVER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_CALL_OBSERVER))
+#define EMPATHY_CALL_OBSERVER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CALL_OBSERVER, EmpathyCallObserverClass))
+
+typedef struct _EmpathyCallObserver EmpathyCallObserver;
+typedef struct _EmpathyCallObserverPriv EmpathyCallObserverPriv;
+typedef struct _EmpathyCallObserverClass EmpathyCallObserverClass;
+
+struct _EmpathyCallObserver {
+ GObject parent;
+ EmpathyCallObserverPriv *priv;
+};
+
+struct _EmpathyCallObserverClass {
+ GObjectClass parent_class;
+};
+
+GType empathy_call_observer_get_type (void) G_GNUC_CONST;
+EmpathyCallObserver *empathy_call_observer_dup_singleton (void);
+
+G_END_DECLS
+
+#endif /* __EMPATHY_CALL_OBSERVER_H__ */