Thu, 22 Feb 2024 06:03:16 -0600
Add a favorite property to PurpleContactInfo
This will be used in the future for toggling whether or not contacts are
favorited or starred.
Testing Done:
Ran the unit tests under valgrind.
Reviewed at https://reviews.imfreedom.org/r/2965/
|
11035
c10c382f4896
[gaim-migrate @ 12922]
Gary Kramlich <grim@reaperworld.com>
parents:
10860
diff
changeset
|
1 | /* |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
| 6065 | 4 | * |
| 15884 | 5 | * Purple is the legal property of its developers, whose names are too numerous |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42414
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 8046 | 7 | * source distribution. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
8 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42414
diff
changeset
|
9 | * This library is free software; you can redistribute it and/or modify it |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42414
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the Free |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42414
diff
changeset
|
11 | * Software Foundation; either version 2 of the License, or (at your option) |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42414
diff
changeset
|
12 | * any later version. |
| 6065 | 13 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42414
diff
changeset
|
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42414
diff
changeset
|
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42414
diff
changeset
|
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42414
diff
changeset
|
17 | * more details. |
| 6065 | 18 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42414
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License along with |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42414
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
| 6065 | 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:
40332
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:
40332
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:
40332
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40332
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39556
diff
changeset
|
27 | #ifndef PURPLE_STATUS_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39556
diff
changeset
|
28 | #define PURPLE_STATUS_H |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
29 | |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42164
diff
changeset
|
30 | #include "purpleversion.h" |
|
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42164
diff
changeset
|
31 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
32 | #define PURPLE_TYPE_STATUS (purple_status_get_type()) |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
33 | typedef struct _PurpleStatus PurpleStatus; |
|
34785
99bcdb44c75f
Added boxed types for PurpleStatus and PurpleSavedStatus
Ankit Vani <a@nevitus.org>
parents:
34778
diff
changeset
|
34 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
35 | #define PURPLE_TYPE_STATUS_TYPE (purple_status_type_get_type()) |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
36 | |
|
35088
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
37 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
38 | * PurpleStatusType: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
39 | * |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
40 | * PurpleStatusType's are created by each protocol. They outline the |
|
35088
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
41 | * available statuses of the protocol. AIM, for example, supports |
|
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
42 | * an available state with an optional available message, an away |
|
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
43 | * state with a mandatory message, and an invisible state (which is |
|
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
44 | * technically "independent" of the other two, but we'll get into |
|
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
45 | * that later). PurpleStatusTypes are very permanent. They are |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
46 | * hardcoded in each protocol and will not change often. And because |
|
35088
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
47 | * they are hardcoded, they do not need to be saved to any XML file. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
48 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
49 | * Since: 2.0.0 |
|
35088
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
50 | */ |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
51 | typedef struct _PurpleStatusType PurpleStatusType; |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
52 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
53 | #define PURPLE_TYPE_STATUS_ATTRIBUTE (purple_status_attribute_get_type()) |
|
40613
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
54 | |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
55 | /** |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
56 | * PurpleStatus: |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
57 | * |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
58 | * A PurpleStatus can be thought of as an "instance" of a PurpleStatusType. |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
59 | * If you're familiar with object-oriented programming languages |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
60 | * then this should be immediately clear. Say, for example, that |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
61 | * one of your AIM buddies has set himself as "away." You have a |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
62 | * PurpleBuddy node for this person in your buddy list. Purple wants |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
63 | * to mark this buddy as "away," so it creates a new PurpleStatus. |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
64 | * The PurpleStatus has its PurpleStatusType set to the "away" state |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
65 | * for the oscar protocol. The PurpleStatus also contains the buddy's |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
66 | * away message. PurpleStatuses are sometimes saved, depending on |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
67 | * the context. The current PurpleStatuses associated with each of |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
68 | * your accounts are saved so that the next time you start Purple, |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
69 | * your accounts will be set to their last known statuses. There |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
70 | * is also a list of saved statuses that are written to the |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
71 | * status.xml file. Also, each PurpleStatus has a "saveable" boolean. |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
72 | * If "saveable" is set to FALSE then the status is NEVER saved. |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
73 | * All PurpleStatuses should be inside a PurplePresence. |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
74 | * |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
75 | * A PurpleStatus is either "independent" or "exclusive." |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
76 | * Independent statuses can be active or inactive and they don't |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
77 | * affect anything else. However, you can only have one exclusive |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
78 | * status per PurplePresence. If you activate one exclusive status, |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
79 | * then the previous exclusive status is automatically deactivated. |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
80 | * |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
81 | * A PurplePresence is like a collection of PurpleStatuses (plus some |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
82 | * other random info). |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
83 | * |
|
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
84 | * See <link linkend="libpurple-purplepresence">Presence API</link> |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
85 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
86 | * Since: 2.0.0 |
|
40613
55230eededd8
Clean up a bunch doc issues.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
87 | */ |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
88 | typedef struct _PurpleStatusAttribute PurpleStatusAttribute; |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
89 | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
90 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
91 | * PurpleStatusPrimitive: |
|
38018
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
92 | * @PURPLE_STATUS_UNSET: The status is not set |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
93 | * @PURPLE_STATUS_OFFLINE: The status is offline |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
94 | * @PURPLE_STATUS_AVAILABLE: The status is available |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
95 | * @PURPLE_STATUS_UNAVAILABLE: The status is unavailable |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
96 | * @PURPLE_STATUS_INVISIBLE: The stuatus is invisible |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
97 | * @PURPLE_STATUS_AWAY: The status is away |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
98 | * @PURPLE_STATUS_EXTENDED_AWAY: The status is extended away/do not disturb |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
99 | * @PURPLE_STATUS_MOBILE: The status is mobile |
|
39300
af611557a710
status: Silence glib-mkenums warning
Mike Ruprecht <cmaiku@gmail.com>
parents:
38716
diff
changeset
|
100 | * @PURPLE_STATUS_NUM_PRIMITIVES: The number of #PurpleStatusPrimitive<!-- -->s |
|
38563
57f76ef581c8
status: Tweak PurpleStatusPrimitive's documentation
Mike Ruprecht <cmaiku@gmail.com>
parents:
38055
diff
changeset
|
101 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
102 | * A primitive defining the basic structure of a status type. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
103 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
104 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
105 | */ |
|
21201
493e5846c38d
Add PURPLE_STATUS_TUNE to status_primitive_map so that it has a name
Mark Doliner <markdoliner@pidgin.im>
parents:
21193
diff
changeset
|
106 | /* |
|
493e5846c38d
Add PURPLE_STATUS_TUNE to status_primitive_map so that it has a name
Mark Doliner <markdoliner@pidgin.im>
parents:
21193
diff
changeset
|
107 | * If you add a value to this enum, make sure you update |
|
24907
13118548c74c
Add a PURPLE_STATUS_MOOD primitive and change ICQ to use it.
Richard Laager <rlaager@pidgin.im>
parents:
22793
diff
changeset
|
108 | * the status_primitive_map and primitive_scores arrays in status.c. |
|
21201
493e5846c38d
Add PURPLE_STATUS_TUNE to status_primitive_map so that it has a name
Mark Doliner <markdoliner@pidgin.im>
parents:
21193
diff
changeset
|
109 | */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
110 | typedef enum |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
111 | { |
| 15884 | 112 | PURPLE_STATUS_UNSET = 0, |
| 113 | PURPLE_STATUS_OFFLINE, | |
| 114 | PURPLE_STATUS_AVAILABLE, | |
| 115 | PURPLE_STATUS_UNAVAILABLE, | |
| 116 | PURPLE_STATUS_INVISIBLE, | |
| 117 | PURPLE_STATUS_AWAY, | |
| 118 | PURPLE_STATUS_EXTENDED_AWAY, | |
| 119 | PURPLE_STATUS_MOBILE, | |
|
38018
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
120 | |
|
38055
99e670730bf7
This is more correct but it doesn't fix the warning from glib-mkenums
Gary Kramlich <grim@reaperworld.com>
parents:
38054
diff
changeset
|
121 | PURPLE_STATUS_NUM_PRIMITIVES, /*< skip >*/ |
| 15884 | 122 | } PurpleStatusPrimitive; |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
123 | |
|
40575
b82c365e04e8
Rename presence.[ch] to purplepresence.[ch], fix some docs, and other tweaks.
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
124 | #include "purplepresence.h" |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
125 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32303
diff
changeset
|
126 | G_BEGIN_DECLS |
|
14988
66b34458d49e
[gaim-migrate @ 17698]
Richard Laager <rlaager@pidgin.im>
parents:
14254
diff
changeset
|
127 | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
128 | /**************************************************************************/ |
| 35472 | 129 | /* PurpleStatusPrimitive API */ |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
130 | /**************************************************************************/ |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
131 | |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
132 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
133 | * purple_primitive_get_id_from_type: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
134 | * @type: A primitive status type. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
135 | * |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
136 | * Lookup the id of a primitive status type based on the type. This |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
137 | * ID is a unique plain-text name of the status, without spaces. |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
138 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
139 | * Returns: The unique ID for this type. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
140 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
141 | * Since: 2.0.0 |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
142 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
143 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 144 | const char *purple_primitive_get_id_from_type(PurpleStatusPrimitive type); |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
145 | |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
146 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
147 | * purple_primitive_get_name_from_type: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
148 | * @type: A primitive status type. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
149 | * |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
150 | * Lookup the name of a primitive status type based on the type. This |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
151 | * name is the plain-English name of the status type. It is usually one |
|
12037
0f1e1fa4b601
[gaim-migrate @ 14330]
Evan Schoenberg <evands@pidgin.im>
parents:
11696
diff
changeset
|
152 | * or two words. |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
153 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
154 | * Returns: The name of this type, suitable for users to see. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
155 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
156 | * Since: 2.0.0 |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
157 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
158 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 159 | const char *purple_primitive_get_name_from_type(PurpleStatusPrimitive type); |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
160 | |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
161 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
162 | * purple_primitive_get_type_from_id: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
163 | * @id: The unique ID of a primitive status type. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
164 | * |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
165 | * Lookup the value of a primitive status type based on the id. The |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
166 | * ID is a unique plain-text name of the status, without spaces. |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
167 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
168 | * Returns: The PurpleStatusPrimitive value. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
169 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
170 | * Since: 2.0.0 |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
171 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
172 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 173 | PurpleStatusPrimitive purple_primitive_get_type_from_id(const char *id); |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
174 | |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
175 | /**************************************************************************/ |
| 35472 | 176 | /* PurpleStatusType API */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
177 | /**************************************************************************/ |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
178 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
179 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
180 | * purple_status_type_get_type: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
181 | * |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
182 | * The standard _get_type function for #PurpleStatusType. |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
183 | * |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
184 | * Returns: The #GType for #PurpleStatusType. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
185 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
186 | * Since: 3.0.0 |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
187 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
188 | PURPLE_AVAILABLE_IN_3_0 |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
189 | GType purple_status_type_get_type(void); |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
190 | |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
191 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
192 | * purple_status_type_new_full: |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
193 | * @primitive: The primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
194 | * @id: The ID of the status type, or %NULL to use the id of the primitive |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
195 | * status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
196 | * @name: The name presented to the user, or %NULL to use the name of the |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
197 | * primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
198 | * @saveable: %TRUE if the information set for this status by the user can be |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
199 | * saved for future sessions. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
200 | * @user_settable: %TRUE if this is a status the user can manually set. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
201 | * @independent: %TRUE if this is an independent (non-exclusive) status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
202 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
203 | * Creates a new status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
204 | * |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
205 | * Returns: (transfer full): A new status type. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
206 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
207 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
208 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
209 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 210 | PurpleStatusType *purple_status_type_new_full(PurpleStatusPrimitive primitive, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
211 | const char *id, const char *name, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
212 | gboolean saveable, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
213 | gboolean user_settable, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
214 | gboolean independent); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
215 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
216 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
217 | * purple_status_type_new: |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
218 | * @primitive: The primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
219 | * @id: The ID of the status type, or %NULL to use the id of the primitive |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
220 | * status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
221 | * @name: The name presented to the user, or %NULL to use the name of the |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
222 | * primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
223 | * @user_settable: %TRUE if this is a status the user can manually set. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
224 | * |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
225 | * Creates a new status type with some default values (saveable and not |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
226 | * independent). |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
227 | * |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
228 | * Returns: (transfer full): A new status type. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
229 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
230 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
231 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
232 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 233 | PurpleStatusType *purple_status_type_new(PurpleStatusPrimitive primitive, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
234 | const char *id, const char *name, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
235 | gboolean user_settable); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
236 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
237 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
238 | * purple_status_type_new_with_attrs: |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
239 | * @primitive: The primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
240 | * @id: The ID of the status type, or %NULL to use the id of the primitive |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
241 | * status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
242 | * @name: The name presented to the user, or %NULL to use the name of the |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
243 | * primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
244 | * @saveable: %TRUE if the information set for this status by the user can be |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
245 | * saved for future sessions. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
246 | * @user_settable: %TRUE if this is a status the user can manually set. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
247 | * @independent: %TRUE if this is an independent (non-exclusive) status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
248 | * @attr_id: The ID of the first attribute. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
249 | * @attr_name: The name of the first attribute. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
250 | * @attr_value: The value type of the first attribute. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
251 | * @...: Additional attribute information. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
252 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
253 | * Creates a new status type with attributes. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
254 | * |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
255 | * Returns: (transfer full): A new status type. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
256 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
257 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
258 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
259 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 260 | PurpleStatusType *purple_status_type_new_with_attrs(PurpleStatusPrimitive primitive, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
261 | const char *id, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
262 | const char *name, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
263 | gboolean saveable, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
264 | gboolean user_settable, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
265 | gboolean independent, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
266 | const char *attr_id, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
267 | const char *attr_name, |
|
34801
08c49f30e4a1
Replaced PurpleValue with GType in plugin.h, signals.h. Replaced with GValue in status.h.
Ankit Vani <a@nevitus.org>
parents:
34799
diff
changeset
|
268 | GValue *attr_value, ...) G_GNUC_NULL_TERMINATED; |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
269 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
270 | /** |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
271 | * purple_status_type_new_with_attrsv: (rename-to purple_status_type_new_with_attrs): |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
272 | * @primitive: The primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
273 | * @id: The ID of the status type, or %NULL to use the id of the primitive |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
274 | * status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
275 | * @name: The name presented to the user, or %NULL to use the name of the |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
276 | * primitive status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
277 | * @saveable: %TRUE if the information set for this status by the user can be |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
278 | * saved for future sessions. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
279 | * @user_settable: %TRUE if this is a status the user can manually set. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
280 | * @independent: %TRUE if this is an independent (non-exclusive) status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
281 | * @n_attributes: The number of attributes. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
282 | * @attr_id: (array length=n_attributes): The IDs of the attributes. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
283 | * @attr_name: (array length=n_attributes): The names of the attributes. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
284 | * @attr_value: (array length=n_attributes): The value types of the attributes. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
285 | * |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
286 | * Creates a new status type with attributes. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
287 | * |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
288 | * Returns: (transfer full): A new status type. |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
289 | * |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
290 | * Since: 3.0.0 |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
291 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42164
diff
changeset
|
292 | PURPLE_AVAILABLE_IN_3_0 |
|
41760
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
293 | PurpleStatusType *purple_status_type_new_with_attrsv(PurpleStatusPrimitive primitive, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
294 | const gchar *id, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
295 | const gchar *name, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
296 | gboolean saveable, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
297 | gboolean user_settable, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
298 | gboolean independent, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
299 | guint n_attributes, |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
300 | const gchar *attr_id[], |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
301 | const gchar *attr_name[], |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
302 | GValue *attr_value[]); |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
303 | |
|
50a483611feb
Add introspectable version of purple_status_type_new_with_attrs
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41758
diff
changeset
|
304 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
305 | * purple_status_type_destroy: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
306 | * @status_type: The status type to destroy. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
307 | * |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
308 | * Destroys a status type. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
309 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
310 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
311 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
312 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 313 | void purple_status_type_destroy(PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
314 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
315 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
316 | * purple_status_type_get_primitive: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
317 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
318 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
319 | * Returns the primitive type of a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
320 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
321 | * Returns: The primitive type of the status type. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
322 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
323 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
324 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
325 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 326 | PurpleStatusPrimitive purple_status_type_get_primitive( |
| 327 | const PurpleStatusType *status_type); | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
328 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
329 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
330 | * purple_status_type_get_id: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
331 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
332 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
333 | * Returns the ID of a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
334 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
335 | * Returns: The ID of the status type. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
336 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
337 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
338 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
339 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 340 | const char *purple_status_type_get_id(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
341 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
342 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
343 | * purple_status_type_get_name: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
344 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
345 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
346 | * Returns the name of a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
347 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
348 | * Returns: The name of the status type. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
349 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
350 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
351 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
352 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 353 | const char *purple_status_type_get_name(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
354 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
355 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
356 | * purple_status_type_is_saveable: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
357 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
358 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
359 | * Returns whether or not the status type is saveable. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
360 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
361 | * Returns: TRUE if user-defined statuses based off this type are saveable. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
362 | * FALSE otherwise. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
363 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
364 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
365 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
366 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 367 | gboolean purple_status_type_is_saveable(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
368 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
369 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
370 | * purple_status_type_is_user_settable: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
371 | * @status_type: The status type. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
372 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
373 | * Returns whether or not the status type can be set or modified by the |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
374 | * user. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
375 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
376 | * Returns: TRUE if the status type can be set or modified by the user. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
377 | * FALSE if it's a protocol-set setting. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
378 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
379 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
380 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
381 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 382 | gboolean purple_status_type_is_user_settable(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
383 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
384 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
385 | * purple_status_type_is_independent: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
386 | * @status_type: The status type. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
387 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
388 | * Returns whether or not the status type is independent. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
389 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
390 | * Independent status types are non-exclusive. If other status types on |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
391 | * the same hierarchy level are set, this one will not be affected. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
392 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
393 | * Returns: TRUE if the status type is independent, or FALSE otherwise. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
394 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
395 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
396 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
397 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 398 | gboolean purple_status_type_is_independent(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
399 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
400 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
401 | * purple_status_type_is_exclusive: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
402 | * @status_type: The status type. |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
403 | * |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
10067
diff
changeset
|
404 | * Returns whether the status type is exclusive. |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
405 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
406 | * Returns: TRUE if the status type is exclusive, FALSE otherwise. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
407 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
408 | * Since: 2.0.0 |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
409 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
410 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 411 | gboolean purple_status_type_is_exclusive(const PurpleStatusType *status_type); |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
412 | |
|
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
413 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
414 | * purple_status_type_is_available: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
415 | * @status_type: The status type. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
416 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
417 | * Returns whether or not a status type is available. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
418 | * |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12484
diff
changeset
|
419 | * Available status types are online and possibly invisible, but not away. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
420 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
421 | * Returns: TRUE if the status is available, or FALSE otherwise. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
422 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
423 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
424 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
425 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 426 | gboolean purple_status_type_is_available(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
427 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
428 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
429 | * purple_status_type_get_attr: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
430 | * @status_type: The status type containing the attribute. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
431 | * @id: The ID of the desired attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
432 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
433 | * Returns the attribute with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
434 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
435 | * Returns: The attribute, if found. NULL otherwise. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
436 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
437 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
438 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
439 | PURPLE_AVAILABLE_IN_ALL |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
440 | PurpleStatusAttribute *purple_status_type_get_attr(const PurpleStatusType *status_type, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
441 | const char *id); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
442 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
443 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
444 | * purple_status_type_get_attrs: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
445 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
446 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
447 | * Returns a list of all attributes in a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
448 | * |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38563
diff
changeset
|
449 | * Returns: (element-type PurpleStatusAttribute) (transfer none): The list of attributes. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
450 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
451 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
452 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
453 | PURPLE_AVAILABLE_IN_ALL |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16870
diff
changeset
|
454 | GList *purple_status_type_get_attrs(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
455 | |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
456 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
457 | * purple_status_type_find_with_id: |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38563
diff
changeset
|
458 | * @status_types: (element-type PurpleStatus) (transfer none): A list of status |
|
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38563
diff
changeset
|
459 | * types. Often account->status_types. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
460 | * @id: The unique ID of the status type you wish to find. |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
461 | * |
| 15884 | 462 | * Find the PurpleStatusType with the given id. |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
463 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
464 | * Returns: The status type with the given ID, or NULL if one could |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
465 | * not be found. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
466 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
467 | * Since: 2.0.0 |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
468 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
469 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 470 | const PurpleStatusType *purple_status_type_find_with_id(GList *status_types, |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
471 | const char *id); |
|
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
472 | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
473 | /**************************************************************************/ |
| 35472 | 474 | /* PurpleStatusAttribute API */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
475 | /**************************************************************************/ |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
476 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
477 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
478 | * purple_status_attribute_get_type: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
479 | * |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
480 | * The standard _get_type function for #PurpleStatusAttribute. |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
481 | * |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
482 | * Returns: The #GType for the #PurpleStatusAttribute boxed structure. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
483 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
484 | * Since: 3.0.0 |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
485 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
486 | PURPLE_AVAILABLE_IN_3_0 |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
487 | GType purple_status_attribute_get_type(void); |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
488 | |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
489 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
490 | * purple_status_attribute_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
491 | * @id: The ID of the attribute. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
492 | * @name: The name presented to the user. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
493 | * @value_type: The type of data contained in the attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
494 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
495 | * Creates a new status attribute. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
496 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
497 | * Returns: A new status attribute. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
498 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
499 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
500 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
501 | PURPLE_AVAILABLE_IN_3_0 |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
502 | PurpleStatusAttribute *purple_status_attribute_new(const char *id, const char *name, |
|
34801
08c49f30e4a1
Replaced PurpleValue with GType in plugin.h, signals.h. Replaced with GValue in status.h.
Ankit Vani <a@nevitus.org>
parents:
34799
diff
changeset
|
503 | GValue *value_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
504 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
505 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
506 | * purple_status_attribute_destroy: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
507 | * @attr: The status attribute to destroy. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
508 | * |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
509 | * Destroys a status attribute. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
510 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
511 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
512 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
513 | PURPLE_AVAILABLE_IN_3_0 |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
514 | void purple_status_attribute_destroy(PurpleStatusAttribute *attr); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
515 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
516 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
517 | * purple_status_attribute_get_id: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
518 | * @attr: The status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
519 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
520 | * Returns the ID of a status attribute. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
521 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
522 | * Returns: The status attribute's ID. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
523 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
524 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
525 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
526 | PURPLE_AVAILABLE_IN_3_0 |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
527 | const char *purple_status_attribute_get_id(const PurpleStatusAttribute *attr); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
528 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
529 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
530 | * purple_status_attribute_get_name: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
531 | * @attr: The status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
532 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
533 | * Returns the name of a status attribute. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
534 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
535 | * Returns: The status attribute's name. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
536 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
537 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
538 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
539 | PURPLE_AVAILABLE_IN_3_0 |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
540 | const char *purple_status_attribute_get_name(const PurpleStatusAttribute *attr); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
541 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
542 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
543 | * purple_status_attribute_get_value: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
544 | * @attr: The status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
545 | * |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
546 | * Returns the value of a status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
547 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
548 | * Returns: The status attribute's value. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
549 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
550 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
551 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
552 | PURPLE_AVAILABLE_IN_3_0 |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
553 | GValue *purple_status_attribute_get_value(const PurpleStatusAttribute *attr); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
554 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
555 | /**************************************************************************/ |
| 35472 | 556 | /* PurpleStatus API */ |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
557 | /**************************************************************************/ |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
558 | |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
559 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
560 | * purple_status_get_type: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
561 | * |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
562 | * The standard _get_type function for #PurpleStatus. |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
563 | * |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40575
diff
changeset
|
564 | * Returns: The #GType for #PurpleStatus. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
565 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
566 | * Since: 2.0.0 |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
567 | */ |
|
42400
64c85dc25cd4
Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
568 | PURPLE_AVAILABLE_IN_ALL |
|
39543
b72187eb4335
Use G_DECLARE_FINAL_TYPE for PurpleStatus.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39515
diff
changeset
|
569 | G_DECLARE_FINAL_TYPE(PurpleStatus, purple_status, PURPLE, STATUS, GObject) |
|
34785
99bcdb44c75f
Added boxed types for PurpleStatus and PurpleSavedStatus
Ankit Vani <a@nevitus.org>
parents:
34778
diff
changeset
|
570 | |
|
99bcdb44c75f
Added boxed types for PurpleStatus and PurpleSavedStatus
Ankit Vani <a@nevitus.org>
parents:
34778
diff
changeset
|
571 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
572 | * purple_status_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
573 | * @status_type: The type of status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
574 | * @presence: The parent presence. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
575 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
576 | * Creates a new status. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
577 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
578 | * Returns: The new status. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
579 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
580 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
581 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
582 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 583 | PurpleStatus *purple_status_new(PurpleStatusType *status_type, |
| 584 | PurplePresence *presence); | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
585 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
586 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
587 | * purple_status_set_active: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
588 | * @status: The status. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
589 | * @active: The active state. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
590 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
591 | * Sets whether or not a status is active. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
592 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
593 | * This should only be called by the account, conversation, and buddy APIs. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
594 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
595 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
596 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
597 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 598 | void purple_status_set_active(PurpleStatus *status, gboolean active); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
599 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
600 | /** |
|
41782
5fb843f4e356
Merge purple_status_set_active_with_attrs{,_dict}
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41760
diff
changeset
|
601 | * purple_status_set_active_with_attributes: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
602 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
603 | * @active: The active state. |
|
41782
5fb843f4e356
Merge purple_status_set_active_with_attrs{,_dict}
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41760
diff
changeset
|
604 | * @attrs: (nullable) (element-type utf8 gpointer): A hash table of attributes |
|
5fb843f4e356
Merge purple_status_set_active_with_attrs{,_dict}
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41760
diff
changeset
|
605 | * to set on the status. This hash table's keys are valid attribute |
|
5fb843f4e356
Merge purple_status_set_active_with_attrs{,_dict}
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41760
diff
changeset
|
606 | * names for this PurpleStatusType. The hash table is not modified or |
|
5fb843f4e356
Merge purple_status_set_active_with_attrs{,_dict}
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41760
diff
changeset
|
607 | * freed by this function. |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
608 | * |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
609 | * Sets whether or not a status is active. |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
610 | * |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
611 | * This should only be called by the account, conversation, and buddy APIs. |
|
40332
cd2da3a58f6d
Rename purple_account_set_status_list and purple_status_set_active_with_attrs_list
qarkai <qarkai@gmail.com>
parents:
40328
diff
changeset
|
612 | * |
|
cd2da3a58f6d
Rename purple_account_set_status_list and purple_status_set_active_with_attrs_list
qarkai <qarkai@gmail.com>
parents:
40328
diff
changeset
|
613 | * Since: 3.0.0 |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
614 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42164
diff
changeset
|
615 | PURPLE_AVAILABLE_IN_3_0 |
|
41782
5fb843f4e356
Merge purple_status_set_active_with_attrs{,_dict}
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41760
diff
changeset
|
616 | void purple_status_set_active_with_attributes(PurpleStatus *status, gboolean active, GHashTable *attrs); |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
617 | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
618 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
619 | * purple_status_get_status_type: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
620 | * @status: The status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
621 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
622 | * Returns the status's type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
623 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
624 | * Returns: The status's type. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
625 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
626 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
627 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
628 | PURPLE_AVAILABLE_IN_3_0 |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
629 | PurpleStatusType *purple_status_get_status_type(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
630 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
631 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
632 | * purple_status_get_presence: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
633 | * @status: The status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
634 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
635 | * Returns the status's presence. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
636 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
637 | * Returns: (transfer none): The status's presence. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
638 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
639 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
640 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
641 | PURPLE_AVAILABLE_IN_ALL |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
642 | PurplePresence *purple_status_get_presence(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
643 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
644 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
645 | * purple_status_get_id: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
646 | * @status: The status. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
647 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
648 | * Returns the status's type ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
649 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
650 | * This is a convenience method for |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
651 | * purple_status_type_get_id(purple_status_get_status_type(status)). |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
652 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
653 | * Returns: The status's ID. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
654 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
655 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
656 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
657 | PURPLE_AVAILABLE_IN_ALL |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
658 | const char *purple_status_get_id(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
659 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
660 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
661 | * purple_status_get_name: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
662 | * @status: The status. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
663 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
664 | * Returns the status's name. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
665 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
666 | * This is a convenience method for |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
667 | * purple_status_type_get_name(purple_status_get_status_type(status)). |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
668 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
669 | * Returns: The status's name. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
670 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
671 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
672 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
673 | PURPLE_AVAILABLE_IN_ALL |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
674 | const char *purple_status_get_name(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
675 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
676 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
677 | * purple_status_is_independent: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
678 | * @status: The status. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
679 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
680 | * Returns whether or not a status is independent. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
681 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
682 | * This is a convenience method for |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
683 | * purple_status_type_is_independent(purple_status_get_status_type(status)). |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
684 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
685 | * Returns: TRUE if the status is independent, or FALSE otherwise. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
686 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
687 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
688 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
689 | PURPLE_AVAILABLE_IN_ALL |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
690 | gboolean purple_status_is_independent(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
691 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
692 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
693 | * purple_status_is_exclusive: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
694 | * @status: The status. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
695 | * |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
696 | * Returns whether or not a status is exclusive. |
|
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
697 | * |
|
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
698 | * This is a convenience method for |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
699 | * purple_status_type_is_exclusive(purple_status_get_status_type(status)). |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
700 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
701 | * Returns: TRUE if the status is exclusive, FALSE otherwise. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
702 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
703 | * Since: 2.0.0 |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
704 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
705 | PURPLE_AVAILABLE_IN_ALL |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
706 | gboolean purple_status_is_exclusive(PurpleStatus *status); |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
707 | |
|
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
708 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
709 | * purple_status_is_available: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
710 | * @status: The status. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
711 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
712 | * Returns whether or not a status is available. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
713 | * |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12484
diff
changeset
|
714 | * Available statuses are online and possibly invisible, but not away or idle. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
715 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
716 | * This is a convenience method for |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
717 | * purple_status_type_is_available(purple_status_get_status_type(status)). |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
718 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
719 | * Returns: TRUE if the status is available, or FALSE otherwise. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
720 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
721 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
722 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
723 | PURPLE_AVAILABLE_IN_ALL |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
724 | gboolean purple_status_is_available(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
725 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
726 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
727 | * purple_status_is_active: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
728 | * @status: The status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
729 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
730 | * Returns the active state of a status. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
731 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
732 | * Returns: The active state of the status. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
733 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
734 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
735 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
736 | PURPLE_AVAILABLE_IN_ALL |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
737 | gboolean purple_status_is_active(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
738 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
739 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
740 | * purple_status_is_online: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
741 | * @status: The status. |
|
10040
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
742 | * |
|
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
743 | * Returns whether or not a status is considered 'online' |
|
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
744 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
745 | * Returns: TRUE if the status is considered online, FALSE otherwise |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
746 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
747 | * Since: 2.0.0 |
|
10040
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
748 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
749 | PURPLE_AVAILABLE_IN_ALL |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
750 | gboolean purple_status_is_online(PurpleStatus *status); |
|
10040
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
751 | |
|
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
752 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
753 | * purple_status_get_attr_value: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
754 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
755 | * @id: The attribute ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
756 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
757 | * Returns the value of an attribute in a status with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
758 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
759 | * Returns: The value of the attribute. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
760 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
761 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
762 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
763 | PURPLE_AVAILABLE_IN_ALL |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
764 | GValue *purple_status_get_attr_value(PurpleStatus *status, |
|
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
765 | const char *id); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
766 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
767 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
768 | * purple_status_get_attr_boolean: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
769 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
770 | * @id: The attribute ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
771 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
772 | * Returns the boolean value of an attribute in a status with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
773 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
774 | * Returns: The boolean value of the attribute. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
775 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
776 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
777 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
778 | PURPLE_AVAILABLE_IN_ALL |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
779 | gboolean purple_status_get_attr_boolean(PurpleStatus *status, |
|
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
780 | const char *id); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
781 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
782 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
783 | * purple_status_get_attr_int: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
784 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
785 | * @id: The attribute ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
786 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
787 | * Returns the integer value of an attribute in a status with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
788 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
789 | * Returns: The integer value of the attribute. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
790 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
791 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
792 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
793 | PURPLE_AVAILABLE_IN_ALL |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
794 | int purple_status_get_attr_int(PurpleStatus *status, const char *id); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
795 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
796 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
797 | * purple_status_get_attr_string: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
798 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
799 | * @id: The attribute ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
800 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
801 | * Returns the string value of an attribute in a status with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
802 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
803 | * Returns: The string value of the attribute. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
804 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
805 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
806 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
807 | PURPLE_AVAILABLE_IN_ALL |
|
39515
80425f8a38e2
Clean up a function prototype to be on one line
Gary Kramlich <grim@reaperworld.com>
parents:
39514
diff
changeset
|
808 | const char *purple_status_get_attr_string(PurpleStatus *status, const char *id); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
809 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
810 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
811 | * purple_status_compare: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
812 | * @status1: The first status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
813 | * @status2: The second status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
814 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
815 | * Compares two statuses for availability. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
816 | * |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
817 | * Returns: -1 if @status1 is more available than @status2. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
818 | * 0 if @status1 is equal to @status2. |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
819 | * 1 if @status2 is more available than @status1. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
820 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
821 | * Since: 2.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
822 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
823 | PURPLE_AVAILABLE_IN_ALL |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
39300
diff
changeset
|
824 | gint purple_status_compare(PurpleStatus *status1, PurpleStatus *status2); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
825 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
826 | /**************************************************************************/ |
| 35472 | 827 | /* Statuses subsystem */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
828 | /**************************************************************************/ |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
829 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
830 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
831 | * purple_statuses_get_handle: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
832 | * |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
833 | * Get the handle for the status subsystem. |
|
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
834 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
835 | * Returns: the handle to the status subsystem |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
836 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
837 | * Since: 3.0.0 |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
838 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
839 | PURPLE_AVAILABLE_IN_3_0 |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
840 | void *purple_statuses_get_handle(void); |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
841 | |
|
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
842 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
843 | * purple_statuses_init: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
844 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
845 | * Initializes the status subsystem. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
846 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
847 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
848 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
849 | PURPLE_AVAILABLE_IN_3_0 |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
850 | void purple_statuses_init(void); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
851 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
852 | /** |
|
35401
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
853 | * purple_statuses_uninit: |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
854 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
855 | * Uninitializes the status subsystem. |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
856 | * |
|
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
857 | * Since: 3.0.0 |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
858 | */ |
|
42414
dde461efd3e0
Add Since and visibility tags for status API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42400
diff
changeset
|
859 | PURPLE_AVAILABLE_IN_3_0 |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
860 | void purple_statuses_uninit(void); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
861 | |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
862 | /**************************************************************************/ |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
863 | /* Helpers */ |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
864 | /**************************************************************************/ |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
865 | |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
866 | /** |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
867 | * purple_attrs_from_vargs: |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
868 | * @args: A list of attributes to parse. This list is |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
869 | * composed of key/value pairs, where each key is a valid |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
870 | * attribute name for this PurpleStatusType. The list should |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
871 | * be NULL terminated. |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
872 | * |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
873 | * Returns a hash table of attributes constructed from args. |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
874 | * |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
875 | * Returns: (element-type utf8 gpointer) (transfer container): The hash table of attributes. |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
876 | * |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
877 | * Since: 3.0.0 |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
878 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42164
diff
changeset
|
879 | PURPLE_AVAILABLE_IN_3_0 |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
880 | GHashTable *purple_attrs_from_vargs(va_list args); |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
881 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32303
diff
changeset
|
882 | G_END_DECLS |
| 15124 | 883 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39556
diff
changeset
|
884 | #endif /* PURPLE_STATUS_H */ |