Mon, 11 Nov 2019 20:43:31 -0600
closing merged branch
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* purple |
| 12272 | 2 | * |
| 15884 | 3 | * Purple is the legal property of its developers, whose names are too numerous |
| 12272 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
| 6 | * | |
| 7 | * This program is free software; you can redistribute it and/or modify | |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * 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
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 12272 | 20 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
21 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37113
diff
changeset
|
22 | #ifndef PURPLE_IDLE_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37113
diff
changeset
|
23 | #define PURPLE_IDLE_H |
|
35440
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
24 | /** |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
25 | * SECTION:idle |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
26 | * @section_id: libpurple-idle |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
27 | * @short_description: <filename>idle.h</filename> |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
28 | * @title: Idle API |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
29 | */ |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
30 | |
|
28230
5a6e42fc2b40
Ensure time_t is defined before we use it
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
31 | #include <time.h> |
| 35572 | 32 | #include <glib-object.h> |
| 33 | ||
| 34 | #define PURPLE_TYPE_IDLE_UI_OPS (purple_idle_ui_ops_get_type()) | |
|
28230
5a6e42fc2b40
Ensure time_t is defined before we use it
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
35 | |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
36 | typedef struct _PurpleIdleUiOps PurpleIdleUiOps; |
|
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
37 | |
| 12272 | 38 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
39 | * PurpleIdleUiOps: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
40 | * |
| 12272 | 41 | * Idle UI operations. |
| 42 | */ | |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
43 | struct _PurpleIdleUiOps |
| 12272 | 44 | { |
| 45 | 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
|
46 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
47 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
48 | 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
|
49 | 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
|
50 | 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
|
51 | void (*_purple_reserved4)(void); |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
52 | }; |
| 12272 | 53 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
28230
diff
changeset
|
54 | G_BEGIN_DECLS |
| 12272 | 55 | |
| 56 | /**************************************************************************/ | |
| 35472 | 57 | /* Idle API */ |
| 12272 | 58 | /**************************************************************************/ |
| 59 | ||
| 60 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
61 | * purple_idle_touch: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
62 | * |
| 12272 | 63 | * Touch our idle tracker. This signifies that the user is |
| 64 | * 'active'. The conversation code calls this when the | |
| 65 | * user sends an IM, for example. | |
| 66 | */ | |
| 15884 | 67 | void purple_idle_touch(void); |
| 12272 | 68 | |
| 69 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
70 | * purple_idle_set: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
71 | * |
| 12272 | 72 | * Fake our idle time by setting the time at which our |
| 73 | * accounts purportedly became idle. This is used by | |
| 74 | * the I'dle Mak'er plugin. | |
| 75 | */ | |
| 15884 | 76 | void purple_idle_set(time_t time); |
| 12272 | 77 | |
| 78 | /**************************************************************************/ | |
| 35472 | 79 | /* Idle Subsystem */ |
| 12272 | 80 | /**************************************************************************/ |
| 81 | ||
| 82 | /** | |
| 35572 | 83 | * purple_idle_ui_ops_get_type: |
| 84 | * | |
| 85 | * Returns: The #GType for the #PurpleIdleUiOps boxed structure. | |
| 86 | */ | |
| 87 | GType purple_idle_ui_ops_get_type(void); | |
| 88 | ||
| 89 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
90 | * purple_idle_set_ui_ops: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
91 | * @ops: The UI operations structure. |
| 12272 | 92 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
93 | * Sets the UI operations structure to be used for idle reporting. |
| 12272 | 94 | */ |
| 15884 | 95 | void purple_idle_set_ui_ops(PurpleIdleUiOps *ops); |
| 12272 | 96 | |
| 97 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
98 | * purple_idle_get_ui_ops: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
99 | * |
| 12272 | 100 | * Returns the UI operations structure used for idle reporting. |
| 101 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
102 | * Returns: The UI operations structure in use. |
| 12272 | 103 | */ |
| 15884 | 104 | PurpleIdleUiOps *purple_idle_get_ui_ops(void); |
| 12272 | 105 | |
| 106 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
107 | * purple_idle_init: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
108 | * |
| 12272 | 109 | * Initializes the idle system. |
| 110 | */ | |
| 15884 | 111 | void purple_idle_init(void); |
| 12272 | 112 | |
| 113 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
114 | * purple_idle_uninit: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
115 | * |
| 12272 | 116 | * Uninitializes the idle system. |
| 117 | */ | |
| 15884 | 118 | void purple_idle_uninit(void); |
| 12272 | 119 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
28230
diff
changeset
|
120 | G_END_DECLS |
| 12272 | 121 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37113
diff
changeset
|
122 | #endif /* PURPLE_IDLE_H */ |