Tue, 24 Oct 2023 00:58:10 -0500
Export symbols added for 3.0.0
These are _only_ symbols that already have `Since: 3.0.0`.
Testing Done:
Compiled, mostly.
Bugs closed: PIDGIN-17838
Reviewed at https://reviews.imfreedom.org/r/2686/
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
1 | /* |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
4 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
5 | * 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
|
6 | * 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
|
7 | * source distribution. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
8 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
9 | * 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
|
10 | * 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
|
11 | * the Free Software Foundation; either version 2 of the License, or |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
12 | * (at your option) any later version. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
13 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
14 | * 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
|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
17 | * GNU General Public License for more details. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
18 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License |
|
40539
2941deda6d8d
Use an https link to gnu.org in the license file headers
Gary Kramlich <grim@reaperworld.com>
parents:
40537
diff
changeset
|
20 | * along with this program; if not, see <https://www.gnu.org/licenses/>. |
|
34834
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 |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
29 | |
|
42051
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
30 | #include <glib.h> |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
31 | #include <glib-object.h> |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
32 | |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
33 | #include "purpleversion.h" |
|
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
34 | |
|
35440
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
35 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
36 | * PurplePresence: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
37 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
38 | * A PurplePresence is like a collection of PurpleStatuses (plus some other |
|
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
39 | * random info). For any buddy, or for any one of your accounts, or for any |
|
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
40 | * person with which you're chatting, you may know various amounts of |
|
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
41 | * information. This information is all contained in one PurplePresence. If |
|
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
42 | * one of your buddies is away and idle, then the presence contains the |
|
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
43 | * #PurpleStatus for their awayness, and it contains their current idle time. |
|
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
44 | * #PurplePresence's are never saved to disk. The information they contain is |
|
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
45 | * only relevant for the current Purple session. |
|
34836
289bc0df25bb
API changes for PurplePresence. See details.
Ankit Vani <a@nevitus.org>
parents:
34834
diff
changeset
|
46 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
47 | * Note: When a presence is destroyed with the last g_object_unref(), all |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
48 | * 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
|
49 | */ |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
50 | |
|
39539
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
51 | typedef struct _PurplePresence PurplePresence; |
|
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
52 | |
|
f221f88ff0b0
Use G_DECLARE* for Purple*Presence types.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39538
diff
changeset
|
53 | #include "status.h" |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
54 | |
|
42077
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
55 | /** |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
56 | * PurplePresencePrimitive: |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
57 | * @PURPLE_PRESENCE_PRIMITIVE_OFFLINE: The presence is offline or otherwise |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
58 | * unknown. |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
59 | * @PURPLE_PRESENCE_PRIMITIVE_AVAILABLE: The presence is online or available. |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
60 | * @PURPLE_PRESENCE_PRIMITIVE_IDLE: The presence is online but is idle. This |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
61 | * state is typically set by the client |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
62 | * directly and not the user. |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
63 | * @PURPLE_PRESENCE_PRIMITIVE_INVISIBLE: The presence is online, but not |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
64 | * visible to others. |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
65 | * @PURPLE_PRESENCE_PRIMITIVE_AWAY: The presence is online, but the user is |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
66 | * away from their device. |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
67 | * @PURPLE_PRESENCE_PRIMITIVE_EXTENDED_AWAY: Similar to |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
68 | * @PURPLE_PRESENCE_PRIMITIVE_AWAY, |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
69 | * but typically means the user does |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
70 | * not want to be disturbed. |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
71 | * @PURPLE_PRESENCE_PRIMITIVE_STREAMING: The presence is online but is |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
72 | * streaming. |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
73 | * |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
74 | * An enum that is used to determine the type of a [class@Purple.Presence]. |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
75 | * |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
76 | * Since: 3.0.0 |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
77 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
78 | PURPLE_AVAILABLE_TYPE_IN_3_0 |
|
42077
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
79 | typedef enum { |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
80 | PURPLE_PRESENCE_PRIMITIVE_OFFLINE, |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
81 | PURPLE_PRESENCE_PRIMITIVE_AVAILABLE, |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
82 | PURPLE_PRESENCE_PRIMITIVE_IDLE, |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
83 | PURPLE_PRESENCE_PRIMITIVE_INVISIBLE, |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
84 | PURPLE_PRESENCE_PRIMITIVE_AWAY, |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
85 | PURPLE_PRESENCE_PRIMITIVE_EXTENDED_AWAY, |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
86 | PURPLE_PRESENCE_PRIMITIVE_STREAMING, |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
87 | } PurplePresencePrimitive; |
|
60a6bbf3bfe4
Create the PurplePresencePrimitive enumeration
Gary Kramlich <grim@reaperworld.com>
parents:
42071
diff
changeset
|
88 | |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
89 | G_BEGIN_DECLS |
|
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
90 | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
91 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
92 | * PurplePresenceClass: |
|
35462
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
93 | * @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
|
94 | * presence changes. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
95 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
96 | * The base class for all #PurplePresence's. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
97 | */ |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
98 | struct _PurplePresenceClass { |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
99 | /*< private >*/ |
|
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
100 | GObjectClass parent; |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
101 | |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
102 | /*< public >*/ |
|
34846
dea8dd8343d5
Added GObject code to presenses.c.
Ankit Vani <a@nevitus.org>
parents:
34841
diff
changeset
|
103 | void (*update_idle)(PurplePresence *presence, gboolean old_idle); |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
104 | GList *(*get_statuses)(PurplePresence *presence); |
|
34846
dea8dd8343d5
Added GObject code to presenses.c.
Ankit Vani <a@nevitus.org>
parents:
34841
diff
changeset
|
105 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
106 | /*< private >*/ |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
107 | gpointer reserved[4]; |
|
34834
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 | |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
110 | #define PURPLE_TYPE_PRESENCE purple_presence_get_type() |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
111 | G_DECLARE_DERIVABLE_TYPE(PurplePresence, purple_presence, PURPLE, PRESENCE, |
|
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
112 | GObject) |
|
34841
8ebf4cfff9e4
Added the boilerplate GObject header code for presences
Ankit Vani <a@nevitus.org>
parents:
34840
diff
changeset
|
113 | |
|
8ebf4cfff9e4
Added the boilerplate GObject header code for presences
Ankit Vani <a@nevitus.org>
parents:
34840
diff
changeset
|
114 | /** |
|
42051
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
115 | * purple_presence_new: |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
116 | * |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
117 | * Creates a new presence instance. |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
118 | * |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
119 | * Returns: (transfer full): The new instance. |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
120 | * |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
121 | * Since: 3.0.0 |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
122 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
123 | PURPLE_AVAILABLE_IN_3_0 |
|
42051
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
124 | PurplePresence *purple_presence_new(void); |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
125 | |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
126 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
127 | * purple_presence_set_status_active: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
128 | * @presence: The #PurplePresence instance. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
129 | * @status_id: The ID of the status. |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
130 | * @active: The active state. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
131 | * |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
132 | * Sets the active state of a status in a presence. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
133 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
134 | * Only independent statuses can be set inactive. Normal statuses can only |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
135 | * 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
|
136 | * non-independent status to active, or use purple_presence_switch_status(). |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
137 | */ |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
138 | void purple_presence_set_status_active(PurplePresence *presence, const gchar *status_id, gboolean active); |
|
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 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
141 | * purple_presence_switch_status: |
|
41083
590d533cf290
Fix several typos in libpurple
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40584
diff
changeset
|
142 | * @presence: The #PurplePresence instance. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
143 | * @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
|
144 | * |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
145 | * Switches the active status in a presence. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
146 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
147 | * 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
|
148 | * activate independent statuses. |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
149 | */ |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
150 | void purple_presence_switch_status(PurplePresence *presence, const gchar *status_id); |
|
34834
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_set_idle: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
154 | * @presence: The #PurplePresence instance. |
|
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
155 | * @idle: The idle state. |
|
42071
a719f0f3c600
Convert idle_time in PurplePresence to GDateTime
Gary Kramlich <grim@reaperworld.com>
parents:
42051
diff
changeset
|
156 | * @idle_time: (transfer none): The idle time, if @idle is %TRUE. This is the |
|
a719f0f3c600
Convert idle_time in PurplePresence to GDateTime
Gary Kramlich <grim@reaperworld.com>
parents:
42051
diff
changeset
|
157 | * time at which the user became idle. If this value is unknown |
|
a719f0f3c600
Convert idle_time in PurplePresence to GDateTime
Gary Kramlich <grim@reaperworld.com>
parents:
42051
diff
changeset
|
158 | * then %NULL should be used. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
159 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
160 | * Sets the idle state and time of @presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
161 | */ |
|
42071
a719f0f3c600
Convert idle_time in PurplePresence to GDateTime
Gary Kramlich <grim@reaperworld.com>
parents:
42051
diff
changeset
|
162 | void purple_presence_set_idle(PurplePresence *presence, gboolean idle, GDateTime *idle_time); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
163 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
164 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
165 | * purple_presence_set_login_time: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
166 | * @presence: The #PurplePresence instance. |
|
41963
d140e4f6bb02
Move the PurplePresence::login-time property from time_t to GDateTime
Gary Kramlich <grim@reaperworld.com>
parents:
41740
diff
changeset
|
167 | * @login_time: (transfer none): The login time. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
168 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
169 | * Sets the login time on a presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
170 | */ |
|
41963
d140e4f6bb02
Move the PurplePresence::login-time property from time_t to GDateTime
Gary Kramlich <grim@reaperworld.com>
parents:
41740
diff
changeset
|
171 | void purple_presence_set_login_time(PurplePresence *presence, GDateTime *login_time); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
172 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
173 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
174 | * purple_presence_get_statuses: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
175 | * @presence: The #PurplePresence instance. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
176 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
177 | * Gets a list of all the statuses in @presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
178 | * |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37094
diff
changeset
|
179 | * Returns: (element-type PurpleStatus) (transfer none): The statuses. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
180 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
181 | GList *purple_presence_get_statuses(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
182 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
183 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
184 | * purple_presence_get_status: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
185 | * @presence: The #PurplePresence instance. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
186 | * @status_id: The ID of the status. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
187 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
188 | * Gets the status with the specified ID from @presence. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
189 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
190 | * Returns: (transfer none): The #PurpleStatus if found, or %NULL. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
191 | */ |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
192 | PurpleStatus *purple_presence_get_status(PurplePresence *presence, const gchar *status_id); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
193 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
194 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
195 | * purple_presence_get_active_status: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
196 | * @presence: The #PurplePresence instance. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
197 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
198 | * Gets the active exclusive status from @presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
199 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
200 | * Returns: (transfer none): The active exclusive status. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
201 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
202 | PurpleStatus *purple_presence_get_active_status(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
203 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
204 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
205 | * purple_presence_is_available: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
206 | * @presence: The #PurplePresence instance. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
207 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
208 | * Gets whether or not @presence is available. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
209 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
210 | * 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
|
211 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
212 | * Returns: %TRUE if the presence is available, or %FALSE otherwise. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
213 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
214 | gboolean purple_presence_is_available(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
215 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
216 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
217 | * purple_presence_is_online: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
218 | * @presence: The #PurplePresence instance. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
219 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
220 | * Gets whether or not @presence is online. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
221 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
222 | * Returns: %TRUE if the presence is online, or %FALSE otherwise. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
223 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
224 | gboolean purple_presence_is_online(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
225 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
226 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
227 | * purple_presence_is_status_active: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
228 | * @presence: The #PurplePresence instance. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
229 | * @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
|
230 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
231 | * Gets whether or not a status in @presence is active. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
232 | * |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
233 | * 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
|
234 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
235 | * Returns: %TRUE if the status is active, or %FALSE. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
236 | */ |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
237 | gboolean purple_presence_is_status_active(PurplePresence *presence, const gchar *status_id); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
238 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
239 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
240 | * purple_presence_is_status_primitive_active: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
241 | * @presence: The #PurplePresence instance. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
242 | * @primitive: The status primitive. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
243 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
244 | * Gets whether or not a status with the specified primitive type in @presence |
|
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
245 | * is active. |
|
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 | * 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
|
248 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
249 | * Returns: %TRUE if the status is active, or %FALSE. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
250 | */ |
|
40537
fbf29150c28c
Move PurpleAccountPresence and PurpleBuddyPresence to their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
251 | gboolean purple_presence_is_status_primitive_active(PurplePresence *presence, PurpleStatusPrimitive primitive); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
252 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
253 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
254 | * purple_presence_is_idle: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
255 | * @presence: The #PurplePresence instance. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
256 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
257 | * Gets whether or not @presence is idle. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
258 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
259 | * Returns: %TRUE if the presence is idle, or %FALSE otherwise. If the |
|
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
260 | * presence is offline (purple_presence_is_online() returns %FALSE) |
|
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
261 | * then %FALSE is returned. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
262 | */ |
|
39435
b30e04a71ecf
Use G_DEFINE_TYPE_WITH_PRIVATE for Purple*Presence.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
263 | gboolean purple_presence_is_idle(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
264 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
265 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
266 | * purple_presence_get_idle_time: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
267 | * @presence: The #PurplePresence instance. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
268 | * |
|
42071
a719f0f3c600
Convert idle_time in PurplePresence to GDateTime
Gary Kramlich <grim@reaperworld.com>
parents:
42051
diff
changeset
|
269 | * Gets the idle time of @presence. This can be %NULL if the protocol doesn't |
|
a719f0f3c600
Convert idle_time in PurplePresence to GDateTime
Gary Kramlich <grim@reaperworld.com>
parents:
42051
diff
changeset
|
270 | * support idle times or if the presence isn't in an idle state. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
271 | * |
|
42071
a719f0f3c600
Convert idle_time in PurplePresence to GDateTime
Gary Kramlich <grim@reaperworld.com>
parents:
42051
diff
changeset
|
272 | * Returns: (nullable): The idle time of @presence or %NULL. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
273 | */ |
|
42071
a719f0f3c600
Convert idle_time in PurplePresence to GDateTime
Gary Kramlich <grim@reaperworld.com>
parents:
42051
diff
changeset
|
274 | GDateTime *purple_presence_get_idle_time(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
275 | |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
276 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
277 | * purple_presence_get_login_time: |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
278 | * @presence: The #PurplePresence instance. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
279 | * |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40539
diff
changeset
|
280 | * Gets the login time of @presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
281 | * |
|
41963
d140e4f6bb02
Move the PurplePresence::login-time property from time_t to GDateTime
Gary Kramlich <grim@reaperworld.com>
parents:
41740
diff
changeset
|
282 | * Returns: (transfer none): The login time of @presence. |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
283 | */ |
|
41963
d140e4f6bb02
Move the PurplePresence::login-time property from time_t to GDateTime
Gary Kramlich <grim@reaperworld.com>
parents:
41740
diff
changeset
|
284 | GDateTime *purple_presence_get_login_time(PurplePresence *presence); |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
285 | |
|
41740
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
286 | /** |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
287 | * purple_presence_compare: |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
288 | * @presence1: The first presence. |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
289 | * @presence2: The second presence. |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
290 | * |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
291 | * Compares the presences for availability. |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
292 | * |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
293 | * Returns: -1 if @presence1 is more available than @presence2. |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
294 | * 0 if @presence1 is equal to @presence2. |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
295 | * 1 if @presence1 is less available than @presence2. |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
296 | * |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
297 | * Since: 3.0.0 |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
298 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
299 | PURPLE_AVAILABLE_IN_3_0 |
|
41740
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
300 | gint purple_presence_compare(PurplePresence *presence1, PurplePresence *presence2); |
|
d8fcd2907c3d
Add purple_presence_compare
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
301 | |
|
42051
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
302 | /** |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
303 | * purple_presence_get_primitive: |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
304 | * @presence: The instance. |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
305 | * |
|
42177
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
306 | * Gets the [enum@Purple.PresencePrimitive] for @presence. |
|
42051
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
307 | * |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
308 | * Returns: The current primitive. |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
309 | * |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
310 | * Since: 3.0.0 |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
311 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
312 | PURPLE_AVAILABLE_IN_3_0 |
|
42177
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
313 | PurplePresencePrimitive purple_presence_get_primitive(PurplePresence *presence); |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
314 | |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
315 | /** |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
316 | * purple_presence_set_primitive: |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
317 | * @presence: The instance. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
318 | * @primitive: The new primitive. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
319 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
320 | * Sets the [enum@Purple.StatusPrimitive] for @presence to @primitive. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
321 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
322 | * Since: 3.0.0 |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
323 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
324 | PURPLE_AVAILABLE_IN_3_0 |
|
42177
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
325 | void purple_presence_set_primitive(PurplePresence *presence, PurplePresencePrimitive primitive); |
|
42051
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
326 | |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
327 | /** |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
328 | * purple_presence_get_message: |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
329 | * @presence: The instance. |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
330 | * |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
331 | * Gets the status message for @presence if one is set. |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
332 | * |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
333 | * Returns: (nullable): The status message of @presence. |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
334 | * |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
335 | * Since: 3.0.0 |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
336 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
337 | PURPLE_AVAILABLE_IN_3_0 |
|
42051
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
338 | const char *purple_presence_get_message(PurplePresence *presence); |
|
18adb1710a54
Add read-only properties for primitive and message to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
41963
diff
changeset
|
339 | |
|
42173
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
340 | /** |
|
42177
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
341 | * purple_presence_set_message: |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
342 | * @presence: The instance. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
343 | * @message: (nullable): The new message. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
344 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
345 | * Sets the status message of @presence to @message. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
346 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
347 | * Since: 3.0.0 |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
348 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
349 | PURPLE_AVAILABLE_IN_3_0 |
|
42177
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
350 | void purple_presence_set_message(PurplePresence *presence, const char *message); |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
351 | |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
352 | /** |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
353 | * purple_presence_get_emoji: |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
354 | * @presence: The instance. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
355 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
356 | * Gets the current emoji, sometimes referred to as a mood, of @presence. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
357 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
358 | * Returns: The current emoji or %NULL if none is set. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
359 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
360 | * Since: 3.0.0 |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
361 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
362 | PURPLE_AVAILABLE_IN_3_0 |
|
42177
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
363 | const char *purple_presence_get_emoji(PurplePresence *presence); |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
364 | |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
365 | /** |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
366 | * purple_presence_set_emoji: |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
367 | * @presence: The instance. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
368 | * @emoji: (nullable): The new emoji to set. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
369 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
370 | * Sets the current emoji, sometimes referred to as a mood, of @presence to |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
371 | * @emoji. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
372 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
373 | * Since: 3.0.0 |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
374 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
375 | PURPLE_AVAILABLE_IN_3_0 |
|
42177
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
376 | void purple_presence_set_emoji(PurplePresence *presence, const char *emoji); |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
377 | |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
378 | /** |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
379 | * purple_presence_get_mobile: |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
380 | * @presence: The instance. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
381 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
382 | * Gets whether or not @presence is on a mobile device. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
383 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
384 | * Returns: %TRUE if @presence is on a mobile device, otherwise %FALSE. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
385 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
386 | * Since: 3.0.0 |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
387 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
388 | PURPLE_AVAILABLE_IN_3_0 |
|
42177
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
389 | gboolean purple_presence_get_mobile(PurplePresence *presence); |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
390 | |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
391 | /** |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
392 | * purple_presence_set_mobile: |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
393 | * @presence: The instance. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
394 | * @mobile: The new mobile status. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
395 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
396 | * Sets whether or not @presence is on a mobile device. |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
397 | * |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
398 | * Since: 3.0.0 |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
399 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
400 | PURPLE_AVAILABLE_IN_3_0 |
|
42177
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
401 | void purple_presence_set_mobile(PurplePresence *presence, gboolean mobile); |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
402 | |
|
d5722fdbdf86
Add "new-status" properties to PurplePresence with fallbacks were applicable
Gary Kramlich <grim@reaperworld.com>
parents:
42173
diff
changeset
|
403 | /** |
|
42310
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
404 | * purple_presence_get_notifications_disabled: |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
405 | * @presence: The instance. |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
406 | * |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
407 | * Gets whether or not @presence has notifications disabled. |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
408 | * |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
409 | * Returns: %TRUE if @presence has notifications disabled, otherwise %FALSE. |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
410 | * |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
411 | * Since: 3.0.0 |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
412 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
413 | PURPLE_AVAILABLE_IN_3_0 |
|
42310
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
414 | gboolean purple_presence_get_notifications_disabled(PurplePresence *presence); |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
415 | |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
416 | /** |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
417 | * purple_presence_set_notifications_disabled: |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
418 | * @presence: The instance. |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
419 | * @notifications_disabled: Whether notifications are disabled or not. |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
420 | * |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
421 | * Sets whether or not @presence has notifications disabled. |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
422 | * |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
423 | * Since: 3.0.0 |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
424 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
425 | PURPLE_AVAILABLE_IN_3_0 |
|
42310
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
426 | void purple_presence_set_notifications_disabled(PurplePresence *presence, gboolean notifications_disabled); |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
427 | |
|
eea341b0d614
Add a notifications-disabled property to PurplePresence
Gary Kramlich <grim@reaperworld.com>
parents:
42177
diff
changeset
|
428 | /** |
|
42173
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
429 | * purple_presence_primitive_to_string: |
|
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
430 | * @primitive: The [enum@Purple.PresencePrimitive] value. |
|
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
431 | * |
|
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
432 | * Gets a string representation for @primitive that is suitable for display to |
|
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
433 | * users. |
|
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
434 | * |
|
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
435 | * Returns: The string representation. |
|
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
436 | * |
|
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
437 | * Since: 3.0.0 |
|
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
438 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42310
diff
changeset
|
439 | PURPLE_AVAILABLE_IN_3_0 |
|
42173
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
440 | const char *purple_presence_primitive_to_string(PurplePresencePrimitive primitive); |
|
50558d740eff
Add purple_presence_primitive_to_string for easier display
Gary Kramlich <grim@reaperworld.com>
parents:
42077
diff
changeset
|
441 | |
|
34834
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
442 | G_END_DECLS |
|
f45f0745da61
Started GObjectification of PurplePresence.
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
443 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39539
diff
changeset
|
444 | #endif /* PURPLE_PRESENCE_H */ |