Tue, 25 Aug 2020 23:18:09 -0500
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Add document for all PURPLE_TYPE_ defines as well as PURPLE_TUNE_ constants
Testing Done:
Compile and doc build.
Reviewed at https://reviews.imfreedom.org/r/92/
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
1 | /* |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
2 | * purple |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
3 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
4 | * Purple is the legal property of its developers, whose names are too numerous |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
5 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
6 | * source distribution. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
7 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
8 | * This program is free software; you can redistribute it and/or modify |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
9 | * it under the terms of the GNU General Public License as published by |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
10 | * the Free Software Foundation; either version 2 of the License, or |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
11 | * (at your option) any later version. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
12 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
13 | * This program is distributed in the hope that it will be useful, |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
16 | * GNU General Public License for more details. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
17 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
19 | * along with this program; if not, write to the Free Software |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
21 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
22 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40215
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40215
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40215
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40215
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39539
diff
changeset
|
27 | #ifndef PURPLE_PRESENCE_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39539
diff
changeset
|
28 | #define PURPLE_PRESENCE_H |
|
35440
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 | * SECTION:presence |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
31 | * @section_id: libpurple-presence |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
32 | * @short_description: <filename>presence.h</filename> |
| 35444 | 33 | * @title: Presence Objects API |
|
35440
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
34 | * |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
35 | * This file contains the presence base type, account presence, and buddy |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
36 | * presence API. |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
37 | */ |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
38 | |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
39 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
40 | * PurplePresence: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
41 | * |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
42 | * A PurplePresence is like a collection of PurpleStatuses (plus some |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
43 | * other random info). For any buddy, or for any one of your accounts, |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
44 | * or for any person with which you're chatting, you may know various |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
45 | * amounts of information. This information is all contained in |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
46 | * one PurplePresence. If one of your buddies is away and idle, |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
47 | * then the presence contains the PurpleStatus for their awayness, |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
48 | * and it contains their current idle time. PurplePresences are |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
49 | * never saved to disk. The information they contain is only relevant |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
50 | * for the current PurpleSession. |
|
34836
289bc0df25bb
API changes for PurplePresence. See details.
Ankit Vani <a@nevitus.org>
parents:
34834
diff
changeset
|
51 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
52 | * Note: When a presence is destroyed with the last g_object_unref(), all |
|
34836
289bc0df25bb
API changes for PurplePresence. See details.
Ankit Vani <a@nevitus.org>
parents:
34834
diff
changeset
|
53 | * statuses added to this list will be destroyed along with the presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
54 | */ |
|
39539
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
55 | typedef struct _PurplePresence PurplePresence; |
|
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
56 | |
|
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
57 | #include "account.h" |
|
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
58 | #include "buddylist.h" |
|
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
59 | #include "status.h" |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
60 | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
61 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
62 | * PurplePresenceClass: |
|
35462
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
63 | * @update_idle: Updates the logs and the UI when the idle state or time of the |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
64 | * presence changes. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
65 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
66 | * Base class for all #PurplePresence's |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
67 | */ |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
68 | struct _PurplePresenceClass { |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
69 | GObjectClass parent_class; |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
70 | |
|
34846
dea8dd8343d5
Added GObject code to presenses.c.
Ankit Vani <a@nevitus.org>
parents:
34841
diff
changeset
|
71 | void (*update_idle)(PurplePresence *presence, gboolean old_idle); |
|
dea8dd8343d5
Added GObject code to presenses.c.
Ankit Vani <a@nevitus.org>
parents:
34841
diff
changeset
|
72 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
73 | /*< private >*/ |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
74 | void (*_purple_reserved1)(void); |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
75 | void (*_purple_reserved2)(void); |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
76 | void (*_purple_reserved3)(void); |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
77 | void (*_purple_reserved4)(void); |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
78 | }; |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
79 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
80 | G_BEGIN_DECLS |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
81 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
82 | /**************************************************************************/ |
| 35472 | 83 | /* PurplePresence API */ |
|
34836
289bc0df25bb
API changes for PurplePresence. See details.
Ankit Vani <a@nevitus.org>
parents:
34834
diff
changeset
|
84 | /**************************************************************************/ |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
85 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
86 | /** |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
87 | * PURPLE_TYPE_PRESENCE: |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
88 | * |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
89 | * The standard _get_type macro for #PurplePresence. |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
90 | */ |
|
39539
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
91 | #define PURPLE_TYPE_PRESENCE purple_presence_get_type() |
|
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
92 | |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
93 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
94 | * purple_presence_get_type: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
95 | * |
|
35462
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
96 | * Returns: The #GType for the #PurplePresence object. |
|
34841
8ebf4cfff9e4
Added the boilerplate GObject header code for presences
Ankit Vani <a@nevitus.org>
parents:
34840
diff
changeset
|
97 | */ |
|
39539
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
98 | G_DECLARE_DERIVABLE_TYPE(PurplePresence, purple_presence, PURPLE, |
|
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
99 | PRESENCE, GObject) |
|
34841
8ebf4cfff9e4
Added the boilerplate GObject header code for presences
Ankit Vani <a@nevitus.org>
parents:
34840
diff
changeset
|
100 | |
|
8ebf4cfff9e4
Added the boilerplate GObject header code for presences
Ankit Vani <a@nevitus.org>
parents:
34840
diff
changeset
|
101 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
102 | * purple_presence_set_status_active: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
103 | * @presence: The presence. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
104 | * @status_id: The ID of the status. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
105 | * @active: The active state. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
106 | * |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
107 | * Sets the active state of a status in a presence. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
108 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
109 | * Only independent statuses can be set unactive. Normal statuses can only |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
110 | * be set active, so if you wish to disable a status, set another |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
111 | * non-independent status to active, or use purple_presence_switch_status(). |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
112 | */ |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
113 | void purple_presence_set_status_active(PurplePresence *presence, |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
114 | const char *status_id, gboolean active); |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
115 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
116 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
117 | * purple_presence_switch_status: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
118 | * @presence: The presence. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
119 | * @status_id: The status ID to switch to. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
120 | * |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
121 | * Switches the active status in a presence. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
122 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
123 | * This is similar to purple_presence_set_status_active(), except it won't |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
124 | * activate independent statuses. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
125 | */ |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
126 | void purple_presence_switch_status(PurplePresence *presence, |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
127 | const char *status_id); |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
128 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
129 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
130 | * purple_presence_set_idle: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
131 | * @presence: The presence. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
132 | * @idle: The idle state. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
133 | * @idle_time: The idle time, if @idle is TRUE. This |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
134 | * is the time at which the user became idle, |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
135 | * in seconds since the epoch. If this value is |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
136 | * unknown then 0 should be used. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
137 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
138 | * Sets the idle state and time on a presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
139 | */ |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
140 | void purple_presence_set_idle(PurplePresence *presence, gboolean idle, |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
141 | time_t idle_time); |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
142 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
143 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
144 | * purple_presence_set_login_time: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
145 | * @presence: The presence. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
146 | * @login_time: The login time. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
147 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
148 | * Sets the login time on a presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
149 | */ |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
150 | void purple_presence_set_login_time(PurplePresence *presence, time_t login_time); |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
151 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
152 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
153 | * purple_presence_get_statuses: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
154 | * @presence: The presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
155 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
156 | * Returns all the statuses in a presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
157 | * |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37094
diff
changeset
|
158 | * Returns: (element-type PurpleStatus) (transfer none): The statuses. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
159 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
160 | GList *purple_presence_get_statuses(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
161 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
162 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
163 | * purple_presence_get_status: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
164 | * @presence: The presence. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
165 | * @status_id: The ID of the status. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
166 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
167 | * Returns the status with the specified ID from a presence. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
168 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
169 | * Returns: (transfer none): The status if found, or %NULL. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
170 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
171 | PurpleStatus *purple_presence_get_status(PurplePresence *presence, |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
172 | const char *status_id); |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
173 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
174 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
175 | * purple_presence_get_active_status: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
176 | * @presence: The presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
177 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
178 | * Returns the active exclusive status from a presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
179 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
180 | * Returns: (transfer none): The active exclusive status. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
181 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
182 | PurpleStatus *purple_presence_get_active_status(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
183 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
184 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
185 | * purple_presence_is_available: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
186 | * @presence: The presence. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
187 | * |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
188 | * Returns whether or not a presence is available. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
189 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
190 | * Available presences are online and possibly invisible, but not away or idle. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
191 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
192 | * Returns: TRUE if the presence is available, or FALSE otherwise. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
193 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
194 | gboolean purple_presence_is_available(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
195 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
196 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
197 | * purple_presence_is_online: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
198 | * @presence: The presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
199 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
200 | * Returns whether or not a presence is online. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
201 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
202 | * Returns: TRUE if the presence is online, or FALSE otherwise. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
203 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
204 | gboolean purple_presence_is_online(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
205 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
206 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
207 | * purple_presence_is_status_active: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
208 | * @presence: The presence. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
209 | * @status_id: The ID of the status. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
210 | * |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
211 | * Returns whether or not a status in a presence is active. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
212 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
213 | * A status is active if itself or any of its sub-statuses are active. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
214 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
215 | * Returns: TRUE if the status is active, or FALSE. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
216 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
217 | gboolean purple_presence_is_status_active(PurplePresence *presence, |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
218 | const char *status_id); |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
219 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
220 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
221 | * purple_presence_is_status_primitive_active: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
222 | * @presence: The presence. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
223 | * @primitive: The status primitive. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
224 | * |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
225 | * Returns whether or not a status with the specified primitive type |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
226 | * in a presence is active. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
227 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
228 | * A status is active if itself or any of its sub-statuses are active. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
229 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
230 | * Returns: TRUE if the status is active, or FALSE. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
231 | */ |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
232 | gboolean purple_presence_is_status_primitive_active( |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
233 | PurplePresence *presence, PurpleStatusPrimitive primitive); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
234 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
235 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
236 | * purple_presence_is_idle: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
237 | * @presence: The presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
238 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
239 | * Returns whether or not a presence is idle. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
240 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
241 | * Returns: TRUE if the presence is idle, or FALSE otherwise. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
242 | * If the presence is offline (purple_presence_is_online() |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
243 | * returns FALSE) then FALSE is returned. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
244 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
245 | gboolean purple_presence_is_idle(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
246 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
247 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
248 | * purple_presence_get_idle_time: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
249 | * @presence: The presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
250 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
251 | * Returns the presence's idle time. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
252 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
253 | * Returns: The presence's idle time. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
254 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
255 | time_t purple_presence_get_idle_time(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
256 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
257 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
258 | * purple_presence_get_login_time: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
259 | * @presence: The presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
260 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
261 | * Returns the presence's login time. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
262 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
263 | * Returns: The presence's login time. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
264 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
265 | time_t purple_presence_get_login_time(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
266 | |
|
39538
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
267 | /**************************************************************************/ |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
268 | /* PurpleAccountPresence API */ |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
269 | /**************************************************************************/ |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
270 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
271 | /** |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
272 | * PURPLE_TYPE_ACCOUNT_PRESENCE: |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
273 | * |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
274 | * The standard _get_type macro for #PurpleAccountPresence. |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
275 | */ |
|
39539
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
276 | #define PURPLE_TYPE_ACCOUNT_PRESENCE (purple_account_presence_get_type()) |
|
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
277 | |
|
39538
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
278 | /** |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
279 | * purple_account_presence_get_type: |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
280 | * |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
281 | * Returns: The #GType for the #PurpleAccountPresence object. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
282 | */ |
|
39539
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
283 | G_DECLARE_FINAL_TYPE(PurpleAccountPresence, purple_account_presence, |
|
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
284 | PURPLE, ACCOUNT_PRESENCE, PurplePresence) |
|
39538
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
285 | |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
286 | /** |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
287 | * purple_account_presence_new: |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
288 | * @account: The account to associate with the presence. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
289 | * |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
290 | * Creates a presence for an account. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
291 | * |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
292 | * Returns: The new presence. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39738
diff
changeset
|
293 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39738
diff
changeset
|
294 | * Since: 3.0.0 |
|
39538
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
295 | */ |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
296 | PurpleAccountPresence *purple_account_presence_new(PurpleAccount *account); |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
297 | |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
298 | /** |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
299 | * purple_account_presence_get_account: |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
300 | * @presence: The presence. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
301 | * |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
302 | * Returns an account presence's account. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
303 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
304 | * Returns: (transfer none): The presence's account. |
|
39538
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
305 | */ |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
306 | PurpleAccount *purple_account_presence_get_account(PurpleAccountPresence *presence); |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
307 | |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
308 | /**************************************************************************/ |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
309 | /* PurpleBuddyPresence API */ |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
310 | /**************************************************************************/ |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
311 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
312 | /** |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
313 | * PURPLE_TYPE_BUDDY_PRESENCE: |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
314 | * |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
315 | * The standard _get_type macro for #PurpleBuddyPresence. |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
316 | */ |
|
39539
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
317 | #define PURPLE_TYPE_BUDDY_PRESENCE (purple_buddy_presence_get_type()) |
|
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
318 | |
|
39538
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
319 | /** |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
320 | * purple_buddy_presence_get_type: |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
321 | * |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
322 | * Returns: The #GType for the #PurpleBuddyPresence object. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
323 | */ |
|
39539
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
324 | G_DECLARE_FINAL_TYPE(PurpleBuddyPresence, purple_buddy_presence, PURPLE, |
|
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
325 | BUDDY_PRESENCE, PurplePresence) |
|
39538
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
326 | |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
327 | /** |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
328 | * purple_buddy_presence_new: |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
329 | * @buddy: The buddy to associate with the presence. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
330 | * |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
331 | * Creates a presence for a buddy. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
332 | * |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
333 | * Returns: The new presence. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39738
diff
changeset
|
334 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39738
diff
changeset
|
335 | * Since: 3.0.0 |
|
39538
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
336 | */ |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
337 | PurpleBuddyPresence *purple_buddy_presence_new(PurpleBuddy *buddy); |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
338 | |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
339 | /** |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
340 | * purple_buddy_presence_get_buddy: |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
341 | * @presence: The presence. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
342 | * |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
343 | * Returns the buddy presence's buddy. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
344 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
345 | * Returns: (transfer none): The presence's buddy. |
|
39538
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
346 | */ |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
347 | PurpleBuddy *purple_buddy_presence_get_buddy(PurpleBuddyPresence *presence); |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
348 | |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
349 | /** |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
350 | * purple_buddy_presence_compare: |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
351 | * @buddy_presence1: The first presence. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
352 | * @buddy_presence2: The second presence. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
353 | * |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
354 | * Compares two buddy presences for availability. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
355 | * |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
356 | * Returns: -1 if @buddy_presence1 is more available than @buddy_presence2. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
357 | * 0 if @buddy_presence1 is equal to @buddy_presence2. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
358 | * 1 if @buddy_presence1 is less available than @buddy_presence2. |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
359 | */ |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
360 | gint purple_buddy_presence_compare(PurpleBuddyPresence *buddy_presence1, |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
361 | PurpleBuddyPresence *buddy_presence2); |
|
00ee7c55cd54
Re-group presence type definitions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39435
diff
changeset
|
362 | |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
363 | G_END_DECLS |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
364 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39539
diff
changeset
|
365 | #endif /* PURPLE_PRESENCE_H */ |