aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-idle.h
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-09-20 18:46:27 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-09-20 18:46:27 +0800
commitc51d527f11b2d253ed13788830136bc1787029b1 (patch)
tree7ef6a806bcb9614fd1949f409730e47f9c615e6b /libempathy/empathy-idle.h
parentf637a06fb631be72db06bc5f45ad2449f80e35e7 (diff)
downloadgsoc2013-empathy-c51d527f11b2d253ed13788830136bc1787029b1.tar
gsoc2013-empathy-c51d527f11b2d253ed13788830136bc1787029b1.tar.gz
gsoc2013-empathy-c51d527f11b2d253ed13788830136bc1787029b1.tar.bz2
gsoc2013-empathy-c51d527f11b2d253ed13788830136bc1787029b1.tar.lz
gsoc2013-empathy-c51d527f11b2d253ed13788830136bc1787029b1.tar.xz
gsoc2013-empathy-c51d527f11b2d253ed13788830136bc1787029b1.tar.zst
gsoc2013-empathy-c51d527f11b2d253ed13788830136bc1787029b1.zip
Add 2 properties to EmpathyIdle to activate auto-away and auto-disconnect,
2007-09-20 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-status-icon.c: * libempathy/empathy-idle.c: * libempathy/empathy-idle.h: * doc/libempathy/tmpl/empathy-idle.sgml: Add 2 properties to EmpathyIdle to activate auto-away and auto-disconnect, default to off. Only empathy main client will turn them on, like that if other processes are running with an EmpathyIdle instance they won't change presence in the same time than Empathy client. svn path=/trunk/; revision=301
Diffstat (limited to 'libempathy/empathy-idle.h')
-rw-r--r--libempathy/empathy-idle.h34
1 files changed, 20 insertions, 14 deletions
diff --git a/libempathy/empathy-idle.h b/libempathy/empathy-idle.h
index 011d2494a..b2f3e634a 100644
--- a/libempathy/empathy-idle.h
+++ b/libempathy/empathy-idle.h
@@ -48,20 +48,26 @@ struct _EmpathyIdleClass {
GObjectClass parent_class;
};
-GType empathy_idle_get_type (void) G_GNUC_CONST;
-EmpathyIdle *empathy_idle_new (void);
-McPresence empathy_idle_get_state (EmpathyIdle *idle);
-void empathy_idle_set_state (EmpathyIdle *idle,
- McPresence state);
-const gchar *empathy_idle_get_status (EmpathyIdle *idle);
-void empathy_idle_set_status (EmpathyIdle *idle,
- const gchar *status);
-McPresence empathy_idle_get_flash_state (EmpathyIdle *idle);
-void empathy_idle_set_flash_state (EmpathyIdle *idle,
- McPresence state);
-void empathy_idle_set_presence (EmpathyIdle *idle,
- McPresence state,
- const gchar *status);
+GType empathy_idle_get_type (void) G_GNUC_CONST;
+EmpathyIdle *empathy_idle_new (void);
+McPresence empathy_idle_get_state (EmpathyIdle *idle);
+void empathy_idle_set_state (EmpathyIdle *idle,
+ McPresence state);
+const gchar *empathy_idle_get_status (EmpathyIdle *idle);
+void empathy_idle_set_status (EmpathyIdle *idle,
+ const gchar *status);
+McPresence empathy_idle_get_flash_state (EmpathyIdle *idle);
+void empathy_idle_set_flash_state (EmpathyIdle *idle,
+ McPresence state);
+void empathy_idle_set_presence (EmpathyIdle *idle,
+ McPresence state,
+ const gchar *status);
+gboolean empathy_idle_get_auto_away (EmpathyIdle *idle);
+void empathy_idle_set_auto_away (EmpathyIdle *idle,
+ gboolean auto_away);
+gboolean empathy_idle_get_auto_disconnect (EmpathyIdle *idle);
+void empathy_idle_set_auto_disconnect (EmpathyIdle *idle,
+ gboolean auto_disconnect);
G_END_DECLS