Sun, 16 Sep 2007 01:05:22 +0000
remove gpl boilerplate from doxygen docs
| 12272 | 1 | /** |
| 2 | * @file idle.h Idle API | |
| 3 | * @ingroup core | |
|
20330
650a7af9c238
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
4 | */ |
|
650a7af9c238
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
5 | |
|
650a7af9c238
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@pidgin.im>
parents:
19859
diff
changeset
|
6 | /* purple |
| 12272 | 7 | * |
| 15884 | 8 | * Purple is the legal property of its developers, whose names are too numerous |
| 12272 | 9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 10 | * source distribution. | |
| 11 | * | |
| 12 | * This program is free software; you can redistribute it and/or modify | |
| 13 | * it under the terms of the GNU General Public License as published by | |
| 14 | * the Free Software Foundation; either version 2 of the License, or | |
| 15 | * (at your option) any later version. | |
| 16 | * | |
| 17 | * This program is distributed in the hope that it will be useful, | |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | * GNU General Public License for more details. | |
| 21 | * | |
| 22 | * You should have received a copy of the GNU General Public License | |
| 23 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16743
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 12272 | 25 | */ |
| 15884 | 26 | #ifndef _PURPLE_IDLE_H_ |
| 27 | #define _PURPLE_IDLE_H_ | |
| 12272 | 28 | |
| 29 | /** | |
| 30 | * Idle UI operations. | |
| 31 | */ | |
| 32 | typedef struct | |
| 33 | { | |
| 34 | time_t (*get_time_idle)(void); | |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
35 | |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
36 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
37 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
38 | void (*_purple_reserved3)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
39 | void (*_purple_reserved4)(void); |
| 15884 | 40 | } PurpleIdleUiOps; |
| 12272 | 41 | |
| 42 | #ifdef __cplusplus | |
| 43 | extern "C" { | |
| 44 | #endif | |
| 45 | ||
| 46 | /**************************************************************************/ | |
| 47 | /** @name Idle API */ | |
| 48 | /**************************************************************************/ | |
| 49 | /*@{*/ | |
| 50 | ||
| 51 | /** | |
| 52 | * Touch our idle tracker. This signifies that the user is | |
| 53 | * 'active'. The conversation code calls this when the | |
| 54 | * user sends an IM, for example. | |
| 55 | */ | |
| 15884 | 56 | void purple_idle_touch(void); |
| 12272 | 57 | |
| 58 | /** | |
| 59 | * Fake our idle time by setting the time at which our | |
| 60 | * accounts purportedly became idle. This is used by | |
| 61 | * the I'dle Mak'er plugin. | |
| 62 | */ | |
| 15884 | 63 | void purple_idle_set(time_t time); |
| 12272 | 64 | |
| 65 | /*@}*/ | |
| 66 | ||
| 67 | /**************************************************************************/ | |
| 68 | /** @name Idle Subsystem */ | |
| 69 | /**************************************************************************/ | |
| 70 | /*@{*/ | |
| 71 | ||
| 72 | /** | |
| 73 | * Sets the UI operations structure to be used for idle reporting. | |
| 74 | * | |
| 75 | * @param ops The UI operations structure. | |
| 76 | */ | |
| 15884 | 77 | void purple_idle_set_ui_ops(PurpleIdleUiOps *ops); |
| 12272 | 78 | |
| 79 | /** | |
| 80 | * Returns the UI operations structure used for idle reporting. | |
| 81 | * | |
| 82 | * @return The UI operations structure in use. | |
| 83 | */ | |
| 15884 | 84 | PurpleIdleUiOps *purple_idle_get_ui_ops(void); |
| 12272 | 85 | |
| 86 | /** | |
| 87 | * Initializes the idle system. | |
| 88 | */ | |
| 15884 | 89 | void purple_idle_init(void); |
| 12272 | 90 | |
| 91 | /** | |
| 92 | * Uninitializes the idle system. | |
| 93 | */ | |
| 15884 | 94 | void purple_idle_uninit(void); |
| 12272 | 95 | |
| 96 | /*@}*/ | |
| 97 | ||
| 98 | #ifdef __cplusplus | |
| 99 | } | |
| 100 | #endif | |
| 101 | ||
| 15884 | 102 | #endif /* _PURPLE_IDLE_H_ */ |