idle.h

Go to the documentation of this file.
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 
00032 typedef struct
00033 {
00034     time_t (*get_time_idle)(void);
00035 
00036     void (*_purple_reserved1)(void);
00037     void (*_purple_reserved2)(void);
00038     void (*_purple_reserved3)(void);
00039     void (*_purple_reserved4)(void);
00040 } PurpleIdleUiOps;
00041 
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045 
00046 /**************************************************************************/
00048 /**************************************************************************/
00056 void purple_idle_touch(void);
00057 
00063 void purple_idle_set(time_t time);
00064 
00067 /**************************************************************************/
00069 /**************************************************************************/
00077 void purple_idle_set_ui_ops(PurpleIdleUiOps *ops);
00078 
00084 PurpleIdleUiOps *purple_idle_get_ui_ops(void);
00085 
00089 void purple_idle_init(void);
00090 
00094 void purple_idle_uninit(void);
00095 
00098 #ifdef __cplusplus
00099 }
00100 #endif
00101 
00102 #endif /* _PURPLE_IDLE_H_ */