00001 00006 /* purple 00007 * 00008 * Purple is the legal property of its developers, whose names are too numerous 00009 * to list here. Please refer to the COPYRIGHT file distributed with this 00010 * source distribution. 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 00025 */ 00026 #ifndef _PURPLE_IDLE_H_ 00027 #define _PURPLE_IDLE_H_ 00028 00029 #include <time.h> 00030 00034 typedef struct 00035 { 00036 time_t (*get_time_idle)(void); 00037 00038 void (*_purple_reserved1)(void); 00039 void (*_purple_reserved2)(void); 00040 void (*_purple_reserved3)(void); 00041 void (*_purple_reserved4)(void); 00042 } PurpleIdleUiOps; 00043 00044 #ifdef __cplusplus 00045 extern "C" { 00046 #endif 00047 00048 /**************************************************************************/ 00050 /**************************************************************************/ 00058 void purple_idle_touch(void); 00059 00065 void purple_idle_set(time_t time); 00066 00069 /**************************************************************************/ 00071 /**************************************************************************/ 00079 void purple_idle_set_ui_ops(PurpleIdleUiOps *ops); 00080 00086 PurpleIdleUiOps *purple_idle_get_ui_ops(void); 00087 00091 void purple_idle_init(void); 00092 00096 void purple_idle_uninit(void); 00097 00100 #ifdef __cplusplus 00101 } 00102 #endif 00103 00104 #endif /* _PURPLE_IDLE_H_ */