diff src/gtkidle.h @ 11907:d2db6426c88a

[gaim-migrate @ 14198] sf patch #1342817, from Evan Schoenberg "As discussed in #gaim, this patch removes idle.c and replaces it with gtkidle.c and gtkidle.h. The attached diff removes the idle management from its various hiding places in connection.c, server.c, and gaim.h. The plugins Changelog.API is appropriately updated. The new gtkidle files are attached; idle.c should be removed from CVS." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 30 Oct 2005 23:00:47 +0000
parents
children 90d7e0f342fa
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/gtkidle.h	Sun Oct 30 23:00:47 2005 +0000
@@ -0,0 +1,54 @@
+/**
+ * @file gtkidle.h GTK+ Idle API
+ * @ingroup gtkui
+ *
+ * gaim
+ *
+ * Gaim is the legal property of its developers, whose names are too numerous
+ * to list here.  Please refer to the COPYRIGHT file distributed with this
+ * source distribution.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+#ifndef _GAIM_GTK_IDLE_H_
+#define _GAIM_GTK_IDLE_H_
+
+/**************************************************************************/
+/** @name GTK+ Idle API                                                  */
+/**************************************************************************/
+/*@{*/
+
+
+/**
+ * Initializes the GTK+ idle system.
+ */
+void gaim_gtk_idle_init(void);
+
+/**
+ * Uninitializes the GTK+ idle system.
+ */
+void gaim_gtk_idle_uninit(void);
+
+/**
+ * Check the current idle time, reporting to the server or going auto-away as
+ * appropriate.
+ *
+ * @param gc The GaimConnection* to check
+ */
+gint gaim_gtk_idle_check(gpointer data);
+
+/*@}*/
+
+#endif /* _GAIM_GTK_IDLE_H_ */