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