Sun, 21 Jun 2020 04:16:15 -0500
Make it so only libpurple can directly include libpurple header files.
This is part of our on going effort to make it easier to develop against libpurple as well as making our filenames not part of our api.
Make it so only libpurple can directly include libpurple header files.
Testing Done:
Just a normal compile to make sure everything builds again.
Reviewed at https://reviews.imfreedom.org/r/8/
|
11035
c10c382f4896
[gaim-migrate @ 12922]
Gary Kramlich <grim@reaperworld.com>
parents:
10860
diff
changeset
|
1 | /* |
| 15884 | 2 | * purple |
| 6065 | 3 | * |
| 15884 | 4 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 5 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 6 | * source distribution. | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
7 | * |
| 6065 | 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by | |
| 10 | * the Free Software Foundation; either version 2 of the License, or | |
| 11 | * (at your option) any later version. | |
| 12 | * | |
| 13 | * This program is distributed in the hope that it will be useful, | |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 | * GNU General Public License for more details. | |
| 17 | * | |
| 18 | * You should have received a copy of the GNU General Public License | |
| 19 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18243
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 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 |
|
35442
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35401
diff
changeset
|
29 | /** |
|
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35401
diff
changeset
|
30 | * SECTION:status |
|
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35401
diff
changeset
|
31 | * @section_id: libpurple-status |
|
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35401
diff
changeset
|
32 | * @short_description: <filename>status.h</filename> |
| 35444 | 33 | * @title: Status Object API |
|
35442
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35401
diff
changeset
|
34 | */ |
|
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35401
diff
changeset
|
35 | |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
36 | #define PURPLE_TYPE_STATUS (purple_status_get_type()) |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
37 | typedef struct _PurpleStatus PurpleStatus; |
|
34785
99bcdb44c75f
Added boxed types for PurpleStatus and PurpleSavedStatus
Ankit Vani <a@nevitus.org>
parents:
34778
diff
changeset
|
38 | |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
39 | #define PURPLE_TYPE_STATUS_TYPE (purple_status_type_get_type()) |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
40 | |
|
35088
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
41 | /** |
|
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
|
42 | * 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
|
43 | * |
|
baddcf712dd3
Convert docs from doxygen to gtk-doc format for status.h and xfer.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
44 | * 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
|
45 | * 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
|
46 | * 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
|
47 | * 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
|
48 | * 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
|
49 | * 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
|
50 | * 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
|
51 | * they are hardcoded, they do not need to be saved to any XML file. |
|
a156686b58eb
Moved the status API documentation to the appropriate structures
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
52 | */ |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
53 | typedef struct _PurpleStatusType PurpleStatusType; |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
54 | |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
55 | #define PURPLE_TYPE_STATUS_ATTRIBUTE (purple_status_attribute_get_type()) |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
56 | |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
57 | typedef struct _PurpleStatusAttribute PurpleStatusAttribute; |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
58 | |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
59 | #define PURPLE_TYPE_MOOD (purple_mood_get_type()) |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
60 | |
|
39556
622bf98df0ac
Remove unnecessary struct tags.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39543
diff
changeset
|
61 | typedef struct { |
|
24912
9ae8349f0353
Move the mood UI for ICQ into Pidgin. It still uses the new request API
Richard Laager <rlaager@pidgin.im>
parents:
24911
diff
changeset
|
62 | const char *mood; |
|
9ae8349f0353
Move the mood UI for ICQ into Pidgin. It still uses the new request API
Richard Laager <rlaager@pidgin.im>
parents:
24911
diff
changeset
|
63 | const char *description; |
|
9ae8349f0353
Move the mood UI for ICQ into Pidgin. It still uses the new request API
Richard Laager <rlaager@pidgin.im>
parents:
24911
diff
changeset
|
64 | gpointer *padding; |
|
9ae8349f0353
Move the mood UI for ICQ into Pidgin. It still uses the new request API
Richard Laager <rlaager@pidgin.im>
parents:
24911
diff
changeset
|
65 | } PurpleMood; |
|
9ae8349f0353
Move the mood UI for ICQ into Pidgin. It still uses the new request API
Richard Laager <rlaager@pidgin.im>
parents:
24911
diff
changeset
|
66 | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
67 | /** |
|
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
|
68 | * PurpleStatusPrimitive: |
|
38018
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
69 | * @PURPLE_STATUS_UNSET: The status is not set |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
70 | * @PURPLE_STATUS_OFFLINE: The status is offline |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
71 | * @PURPLE_STATUS_AVAILABLE: The status is available |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
72 | * @PURPLE_STATUS_UNAVAILABLE: The status is unavailable |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
73 | * @PURPLE_STATUS_INVISIBLE: The stuatus is invisible |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
74 | * @PURPLE_STATUS_AWAY: The status is away |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
75 | * @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
|
76 | * @PURPLE_STATUS_MOBILE: The status is mobile |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
77 | * @PURPLE_STATUS_TUNE: The status includes a song title |
|
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
78 | * @PURPLE_STATUS_MOOD: The status includes a mood |
|
39300
af611557a710
status: Silence glib-mkenums warning
Mike Ruprecht <cmaiku@gmail.com>
parents:
38716
diff
changeset
|
79 | * @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
|
80 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
81 | * A primitive defining the basic structure of a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
82 | */ |
|
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
|
83 | /* |
|
493e5846c38d
Add PURPLE_STATUS_TUNE to status_primitive_map so that it has a name
Mark Doliner <markdoliner@pidgin.im>
parents:
21193
diff
changeset
|
84 | * 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
|
85 | * 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
|
86 | */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
87 | typedef enum |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
88 | { |
| 15884 | 89 | PURPLE_STATUS_UNSET = 0, |
| 90 | PURPLE_STATUS_OFFLINE, | |
| 91 | PURPLE_STATUS_AVAILABLE, | |
| 92 | PURPLE_STATUS_UNAVAILABLE, | |
| 93 | PURPLE_STATUS_INVISIBLE, | |
| 94 | PURPLE_STATUS_AWAY, | |
| 95 | PURPLE_STATUS_EXTENDED_AWAY, | |
| 96 | PURPLE_STATUS_MOBILE, | |
|
21193
e918a1846d03
Use an independant status type for 'current media' stuff, instead of using
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19897
diff
changeset
|
97 | PURPLE_STATUS_TUNE, |
|
24907
13118548c74c
Add a PURPLE_STATUS_MOOD primitive and change ICQ to use it.
Richard Laager <rlaager@pidgin.im>
parents:
22793
diff
changeset
|
98 | PURPLE_STATUS_MOOD, |
|
38018
926551540b3b
Cleanup documentation issues for status.h
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
99 | |
|
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
|
100 | PURPLE_STATUS_NUM_PRIMITIVES, /*< skip >*/ |
| 15884 | 101 | } PurpleStatusPrimitive; |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
102 | |
|
34852
0e01a98b2ef7
Renamed blistnodes.[ch] to blistnode.[ch], presences.[ch] to presence.[ch]
Ankit Vani <a@nevitus.org>
parents:
34848
diff
changeset
|
103 | #include "presence.h" |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
104 | |
|
17800
39a0f9ed0e26
Replaced a clean and simple API with a very weird hack due to vivid request on #pidgin by multiple devs. This avoids the change in PurplePluginProtocolInfo, but requires complicated change tracking in every prpl. The others prpl should add this change tracking, too (since otherwise the status gets changed even though nothing they care about changed), but that's not up to me.
Andreas Monitzer <am@adiumx.com>
parents:
16870
diff
changeset
|
105 | #define PURPLE_TUNE_ARTIST "tune_artist" |
|
39a0f9ed0e26
Replaced a clean and simple API with a very weird hack due to vivid request on #pidgin by multiple devs. This avoids the change in PurplePluginProtocolInfo, but requires complicated change tracking in every prpl. The others prpl should add this change tracking, too (since otherwise the status gets changed even though nothing they care about changed), but that's not up to me.
Andreas Monitzer <am@adiumx.com>
parents:
16870
diff
changeset
|
106 | #define PURPLE_TUNE_TITLE "tune_title" |
|
39a0f9ed0e26
Replaced a clean and simple API with a very weird hack due to vivid request on #pidgin by multiple devs. This avoids the change in PurplePluginProtocolInfo, but requires complicated change tracking in every prpl. The others prpl should add this change tracking, too (since otherwise the status gets changed even though nothing they care about changed), but that's not up to me.
Andreas Monitzer <am@adiumx.com>
parents:
16870
diff
changeset
|
107 | #define PURPLE_TUNE_ALBUM "tune_album" |
|
39a0f9ed0e26
Replaced a clean and simple API with a very weird hack due to vivid request on #pidgin by multiple devs. This avoids the change in PurplePluginProtocolInfo, but requires complicated change tracking in every prpl. The others prpl should add this change tracking, too (since otherwise the status gets changed even though nothing they care about changed), but that's not up to me.
Andreas Monitzer <am@adiumx.com>
parents:
16870
diff
changeset
|
108 | #define PURPLE_TUNE_GENRE "tune_genre" |
|
39a0f9ed0e26
Replaced a clean and simple API with a very weird hack due to vivid request on #pidgin by multiple devs. This avoids the change in PurplePluginProtocolInfo, but requires complicated change tracking in every prpl. The others prpl should add this change tracking, too (since otherwise the status gets changed even though nothing they care about changed), but that's not up to me.
Andreas Monitzer <am@adiumx.com>
parents:
16870
diff
changeset
|
109 | #define PURPLE_TUNE_COMMENT "tune_comment" |
|
39a0f9ed0e26
Replaced a clean and simple API with a very weird hack due to vivid request on #pidgin by multiple devs. This avoids the change in PurplePluginProtocolInfo, but requires complicated change tracking in every prpl. The others prpl should add this change tracking, too (since otherwise the status gets changed even though nothing they care about changed), but that's not up to me.
Andreas Monitzer <am@adiumx.com>
parents:
16870
diff
changeset
|
110 | #define PURPLE_TUNE_TRACK "tune_track" |
|
39a0f9ed0e26
Replaced a clean and simple API with a very weird hack due to vivid request on #pidgin by multiple devs. This avoids the change in PurplePluginProtocolInfo, but requires complicated change tracking in every prpl. The others prpl should add this change tracking, too (since otherwise the status gets changed even though nothing they care about changed), but that's not up to me.
Andreas Monitzer <am@adiumx.com>
parents:
16870
diff
changeset
|
111 | #define PURPLE_TUNE_TIME "tune_time" |
|
39a0f9ed0e26
Replaced a clean and simple API with a very weird hack due to vivid request on #pidgin by multiple devs. This avoids the change in PurplePluginProtocolInfo, but requires complicated change tracking in every prpl. The others prpl should add this change tracking, too (since otherwise the status gets changed even though nothing they care about changed), but that's not up to me.
Andreas Monitzer <am@adiumx.com>
parents:
16870
diff
changeset
|
112 | #define PURPLE_TUNE_YEAR "tune_year" |
|
21029
097ab54af4c0
Use a #define for the msn 'currentmedia' status attribute in line with the PURPLE_TUNE_ attributes used in the xmpp prpl
Evan Schoenberg <evands@pidgin.im>
parents:
19897
diff
changeset
|
113 | #define PURPLE_TUNE_URL "tune_url" |
|
097ab54af4c0
Use a #define for the msn 'currentmedia' status attribute in line with the PURPLE_TUNE_ attributes used in the xmpp prpl
Evan Schoenberg <evands@pidgin.im>
parents:
19897
diff
changeset
|
114 | #define PURPLE_TUNE_FULL "tune_full" |
|
17800
39a0f9ed0e26
Replaced a clean and simple API with a very weird hack due to vivid request on #pidgin by multiple devs. This avoids the change in PurplePluginProtocolInfo, but requires complicated change tracking in every prpl. The others prpl should add this change tracking, too (since otherwise the status gets changed even though nothing they care about changed), but that's not up to me.
Andreas Monitzer <am@adiumx.com>
parents:
16870
diff
changeset
|
115 | |
|
24907
13118548c74c
Add a PURPLE_STATUS_MOOD primitive and change ICQ to use it.
Richard Laager <rlaager@pidgin.im>
parents:
22793
diff
changeset
|
116 | #define PURPLE_MOOD_NAME "mood" |
|
13118548c74c
Add a PURPLE_STATUS_MOOD primitive and change ICQ to use it.
Richard Laager <rlaager@pidgin.im>
parents:
22793
diff
changeset
|
117 | #define PURPLE_MOOD_COMMENT "moodtext" |
|
13118548c74c
Add a PURPLE_STATUS_MOOD primitive and change ICQ to use it.
Richard Laager <rlaager@pidgin.im>
parents:
22793
diff
changeset
|
118 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32303
diff
changeset
|
119 | G_BEGIN_DECLS |
|
14988
66b34458d49e
[gaim-migrate @ 17698]
Richard Laager <rlaager@pidgin.im>
parents:
14254
diff
changeset
|
120 | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
121 | /**************************************************************************/ |
| 35472 | 122 | /* PurpleStatusPrimitive API */ |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
123 | /**************************************************************************/ |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
124 | |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
125 | /** |
|
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
|
126 | * 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
|
127 | * @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
|
128 | * |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
129 | * 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
|
130 | * 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
|
131 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
132 | * Returns: The unique ID for this type. |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
133 | */ |
| 15884 | 134 | const char *purple_primitive_get_id_from_type(PurpleStatusPrimitive type); |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
135 | |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
136 | /** |
|
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
|
137 | * 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
|
138 | * @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
|
139 | * |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
140 | * 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
|
141 | * 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
|
142 | * or two words. |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
143 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
144 | * Returns: The name of this type, suitable for users to see. |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
145 | */ |
| 15884 | 146 | const char *purple_primitive_get_name_from_type(PurpleStatusPrimitive type); |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
147 | |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
148 | /** |
|
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
|
149 | * 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
|
150 | * @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
|
151 | * |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
152 | * 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
|
153 | * 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
|
154 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
155 | * Returns: The PurpleStatusPrimitive value. |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
156 | */ |
| 15884 | 157 | PurpleStatusPrimitive purple_primitive_get_type_from_id(const char *id); |
|
10419
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
158 | |
|
cb6b7316fdba
[gaim-migrate @ 11670]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
159 | /**************************************************************************/ |
| 35472 | 160 | /* PurpleStatusType API */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
161 | /**************************************************************************/ |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
162 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
163 | /** |
|
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
|
164 | * 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
|
165 | * |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
166 | * Returns: The #GType for the #PurpleStatusType boxed structure. |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
167 | */ |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
168 | GType purple_status_type_get_type(void); |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
169 | |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
170 | /** |
|
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
|
171 | * purple_status_type_new_full: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
172 | * @primitive: The primitive status type. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
173 | * @id: The ID of the status type, or %NULL to use the id of |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12484
diff
changeset
|
174 | * the primitive status type. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
175 | * @name: The name presented to the user, or %NULL to use the |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12484
diff
changeset
|
176 | * name of the primitive status type. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
177 | * @saveable: TRUE if the information set for this status by the |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
178 | * user can be saved for future sessions. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
179 | * @user_settable: TRUE if this is a status the user can manually set. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
180 | * @independent: TRUE if this is an independent (non-exclusive) |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
181 | * status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
182 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
183 | * Creates a new status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
184 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
185 | * Returns: A new status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
186 | */ |
| 15884 | 187 | PurpleStatusType *purple_status_type_new_full(PurpleStatusPrimitive primitive, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
188 | const char *id, const char *name, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
189 | gboolean saveable, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
190 | gboolean user_settable, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
191 | gboolean independent); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
192 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
193 | /** |
|
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
|
194 | * purple_status_type_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
195 | * @primitive: The primitive status type. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
196 | * @id: The ID of the status type, or %NULL to use the id of |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12484
diff
changeset
|
197 | * the primitive status type. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
198 | * @name: The name presented to the user, or %NULL to use the |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12484
diff
changeset
|
199 | * name of the primitive status type. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
200 | * @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
|
201 | * |
|
25445
b36f23e05c50
Thomas Gibson-Robinson noticed that the "saveable" attribute of a status type
Daniel Atallah <datallah@pidgin.im>
parents:
25231
diff
changeset
|
202 | * Creates a new status type with some default values ( |
| 24911 | 203 | * saveable and not independent). |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
204 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
205 | * Returns: A new status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
206 | */ |
| 15884 | 207 | PurpleStatusType *purple_status_type_new(PurpleStatusPrimitive primitive, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
208 | const char *id, const char *name, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
209 | gboolean user_settable); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
210 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
211 | /** |
|
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
|
212 | * purple_status_type_new_with_attrs: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
213 | * @primitive: The primitive status type. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
214 | * @id: The ID of the status type, or %NULL to use the id of |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12484
diff
changeset
|
215 | * the primitive status type. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
216 | * @name: The name presented to the user, or %NULL to use the |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12484
diff
changeset
|
217 | * name of the primitive status type. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
218 | * @saveable: TRUE if the information set for this status by the |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
219 | * user can be saved for future sessions. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
220 | * @user_settable: TRUE if this is a status the user can manually set. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
221 | * @independent: TRUE if this is an independent (non-exclusive) |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
222 | * status type. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
223 | * @attr_id: The ID of the first attribute. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
224 | * @attr_name: The name of the first attribute. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
225 | * @attr_value: The value type of the first attribute. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
226 | * @...: Additional attribute information. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
227 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
228 | * Creates a new status type with attributes. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
229 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
230 | * Returns: A new status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
231 | */ |
| 15884 | 232 | PurpleStatusType *purple_status_type_new_with_attrs(PurpleStatusPrimitive primitive, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
233 | const char *id, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
234 | const char *name, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
235 | gboolean saveable, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
236 | gboolean user_settable, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
237 | gboolean independent, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
238 | const char *attr_id, |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
239 | 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
|
240 | GValue *attr_value, ...) G_GNUC_NULL_TERMINATED; |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
241 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
242 | /** |
|
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
|
243 | * 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
|
244 | * @status_type: The status type to destroy. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
245 | * |
|
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
|
246 | * Destroys a status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
247 | */ |
| 15884 | 248 | void purple_status_type_destroy(PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
249 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
250 | /** |
|
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
|
251 | * 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
|
252 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
253 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
254 | * Returns the primitive type of a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
255 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
256 | * Returns: The primitive type of the status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
257 | */ |
| 15884 | 258 | PurpleStatusPrimitive purple_status_type_get_primitive( |
| 259 | const PurpleStatusType *status_type); | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
260 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
261 | /** |
|
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
|
262 | * 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
|
263 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
264 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
265 | * Returns the ID of a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
266 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
267 | * Returns: The ID of the status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
268 | */ |
| 15884 | 269 | 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
|
270 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
271 | /** |
|
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
|
272 | * 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
|
273 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
274 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
275 | * Returns the name of a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
276 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
277 | * Returns: The name of the status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
278 | */ |
| 15884 | 279 | 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
|
280 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
281 | /** |
|
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
|
282 | * 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
|
283 | * @status_type: The status type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
284 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
285 | * Returns whether or not the status type is saveable. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
286 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
287 | * 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
|
288 | * FALSE otherwise. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
289 | */ |
| 15884 | 290 | gboolean purple_status_type_is_saveable(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
291 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
292 | /** |
|
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
|
293 | * 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
|
294 | * @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
|
295 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
296 | * 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
|
297 | * user. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
298 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
299 | * 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
|
300 | * FALSE if it's a protocol-set setting. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
301 | */ |
| 15884 | 302 | 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
|
303 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
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_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
|
306 | * @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
|
307 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
308 | * Returns whether or not the status type is independent. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
309 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
310 | * Independent status types are non-exclusive. If other status types on |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
311 | * 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
|
312 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
313 | * Returns: TRUE if the status type is independent, or FALSE otherwise. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
314 | */ |
| 15884 | 315 | gboolean purple_status_type_is_independent(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
316 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
317 | /** |
|
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
|
318 | * 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
|
319 | * @status_type: The status type. |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
320 | * |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
10067
diff
changeset
|
321 | * Returns whether the status type is exclusive. |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
322 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
323 | * Returns: TRUE if the status type is exclusive, FALSE otherwise. |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
324 | */ |
| 15884 | 325 | gboolean purple_status_type_is_exclusive(const PurpleStatusType *status_type); |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
326 | |
|
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
327 | /** |
|
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
|
328 | * 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
|
329 | * @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
|
330 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
331 | * Returns whether or not a status type is available. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
332 | * |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12484
diff
changeset
|
333 | * 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
|
334 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
335 | * Returns: TRUE if the status is available, or FALSE otherwise. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
336 | */ |
| 15884 | 337 | gboolean purple_status_type_is_available(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
338 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
339 | /** |
|
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
|
340 | * purple_status_type_get_attr: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
341 | * @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
|
342 | * @id: The ID of the desired attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
343 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
344 | * Returns the attribute with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
345 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
346 | * Returns: The attribute, if found. NULL otherwise. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
347 | */ |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
348 | PurpleStatusAttribute *purple_status_type_get_attr(const PurpleStatusType *status_type, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
349 | const char *id); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
350 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
351 | /** |
|
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
|
352 | * 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
|
353 | * @status_type: The 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 | * Returns a list of all attributes in a status type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
356 | * |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38563
diff
changeset
|
357 | * Returns: (element-type PurpleStatusAttribute) (transfer none): The list of attributes. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
358 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16870
diff
changeset
|
359 | GList *purple_status_type_get_attrs(const PurpleStatusType *status_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
360 | |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
361 | /** |
|
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
|
362 | * 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
|
363 | * @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
|
364 | * types. Often account->status_types. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
365 | * @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
|
366 | * |
| 15884 | 367 | * Find the PurpleStatusType with the given id. |
|
10348
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
368 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
369 | * 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
|
370 | * not be found. |
|
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
371 | */ |
| 15884 | 372 | 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
|
373 | const char *id); |
|
0ab5eb1a828e
[gaim-migrate @ 11562]
Mark Doliner <markdoliner@pidgin.im>
parents:
10340
diff
changeset
|
374 | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
375 | /**************************************************************************/ |
| 35472 | 376 | /* PurpleStatusAttribute API */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
377 | /**************************************************************************/ |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
378 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
379 | /** |
|
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
|
380 | * 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
|
381 | * |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
382 | * Returns: The #GType for the #PurpleStatusAttribute boxed structure. |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
383 | */ |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
384 | GType purple_status_attribute_get_type(void); |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
385 | |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
386 | /** |
|
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
|
387 | * purple_status_attribute_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
388 | * @id: The ID of the attribute. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
389 | * @name: The name presented to the user. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
390 | * @value_type: The type of data contained in the attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
391 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
392 | * Creates a new status attribute. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
393 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
394 | * Returns: A new status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
395 | */ |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
396 | 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
|
397 | GValue *value_type); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
398 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
399 | /** |
|
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
|
400 | * 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
|
401 | * @attr: The status attribute to destroy. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
402 | * |
|
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
|
403 | * Destroys a status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
404 | */ |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
405 | void purple_status_attribute_destroy(PurpleStatusAttribute *attr); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
406 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
407 | /** |
|
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
|
408 | * 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
|
409 | * @attr: The status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
410 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
411 | * Returns the ID of a status attribute. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
412 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
413 | * Returns: The status attribute's ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
414 | */ |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
415 | const char *purple_status_attribute_get_id(const PurpleStatusAttribute *attr); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
416 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
417 | /** |
|
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
|
418 | * 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
|
419 | * @attr: The status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
420 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
421 | * Returns the name of a status attribute. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
422 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
423 | * Returns: The status attribute's name. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
424 | */ |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
425 | const char *purple_status_attribute_get_name(const PurpleStatusAttribute *attr); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
426 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
427 | /** |
|
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
|
428 | * 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
|
429 | * @attr: The status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
430 | * |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
431 | * Returns the value of a status attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
432 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
433 | * Returns: The status attribute's value. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
434 | */ |
|
34858
28ac3a0418f1
Renamed PurpleStatusAttr to PurpleStatusAttribute for simplicity.
Ankit Vani <a@nevitus.org>
parents:
34857
diff
changeset
|
435 | GValue *purple_status_attribute_get_value(const PurpleStatusAttribute *attr); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
436 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
437 | /**************************************************************************/ |
| 35472 | 438 | /* PurpleMood API */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
439 | /**************************************************************************/ |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
440 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
441 | /** |
|
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
|
442 | * purple_mood_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
|
443 | * |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
444 | * Returns: The #GType for the #PurpleMood boxed structure. |
|
34785
99bcdb44c75f
Added boxed types for PurpleStatus and PurpleSavedStatus
Ankit Vani <a@nevitus.org>
parents:
34778
diff
changeset
|
445 | */ |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
446 | GType purple_mood_get_type(void); |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
447 | |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
448 | /**************************************************************************/ |
| 35472 | 449 | /* PurpleStatus API */ |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
450 | /**************************************************************************/ |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
451 | |
|
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
452 | /** |
|
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
|
453 | * 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
|
454 | * |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
455 | * Returns: The #GType for the Status object. |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
456 | */ |
|
39543
b72187eb4335
Use G_DECLARE_FINAL_TYPE for PurpleStatus.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39515
diff
changeset
|
457 | 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
|
458 | |
|
99bcdb44c75f
Added boxed types for PurpleStatus and PurpleSavedStatus
Ankit Vani <a@nevitus.org>
parents:
34778
diff
changeset
|
459 | /** |
|
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
|
460 | * purple_status_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
461 | * @status_type: The type of status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
462 | * @presence: The parent presence. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
463 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
464 | * Creates a new status. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
465 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
466 | * Returns: The new status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
467 | */ |
| 15884 | 468 | PurpleStatus *purple_status_new(PurpleStatusType *status_type, |
| 469 | PurplePresence *presence); | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
470 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
471 | /** |
|
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
|
472 | * 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
|
473 | * @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
|
474 | * @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
|
475 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
476 | * Sets whether or not a status is active. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
477 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
478 | * This should only be called by the account, conversation, and buddy APIs. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
479 | */ |
| 15884 | 480 | void purple_status_set_active(PurpleStatus *status, gboolean active); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
481 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
482 | /** |
|
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
|
483 | * purple_status_set_active_with_attrs: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
484 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
485 | * @active: The active state. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
486 | * @args: A list of attributes to set on the status. This list is |
|
10204
874e91e2a3b3
[gaim-migrate @ 11325]
Mark Doliner <markdoliner@pidgin.im>
parents:
10151
diff
changeset
|
487 | * composed of key/value pairs, where each key is a valid |
| 15884 | 488 | * attribute name for this PurpleStatusType. The list should |
|
10204
874e91e2a3b3
[gaim-migrate @ 11325]
Mark Doliner <markdoliner@pidgin.im>
parents:
10151
diff
changeset
|
489 | * be NULL terminated. |
|
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 | * |
|
10204
874e91e2a3b3
[gaim-migrate @ 11325]
Mark Doliner <markdoliner@pidgin.im>
parents:
10151
diff
changeset
|
491 | * Sets whether or not a status is active. |
|
874e91e2a3b3
[gaim-migrate @ 11325]
Mark Doliner <markdoliner@pidgin.im>
parents:
10151
diff
changeset
|
492 | * |
|
874e91e2a3b3
[gaim-migrate @ 11325]
Mark Doliner <markdoliner@pidgin.im>
parents:
10151
diff
changeset
|
493 | * This should only be called by the account, conversation, and buddy APIs. |
|
874e91e2a3b3
[gaim-migrate @ 11325]
Mark Doliner <markdoliner@pidgin.im>
parents:
10151
diff
changeset
|
494 | */ |
| 15884 | 495 | void purple_status_set_active_with_attrs(PurpleStatus *status, gboolean active, |
|
10204
874e91e2a3b3
[gaim-migrate @ 11325]
Mark Doliner <markdoliner@pidgin.im>
parents:
10151
diff
changeset
|
496 | va_list args); |
|
874e91e2a3b3
[gaim-migrate @ 11325]
Mark Doliner <markdoliner@pidgin.im>
parents:
10151
diff
changeset
|
497 | |
|
874e91e2a3b3
[gaim-migrate @ 11325]
Mark Doliner <markdoliner@pidgin.im>
parents:
10151
diff
changeset
|
498 | /** |
|
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
|
499 | * purple_status_set_active_with_attrs_list: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
500 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
501 | * @active: The active state. |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
502 | * @attrs: (element-type utf8 gpointer): A hash table of attributes to set on the status. |
|
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
503 | * This hash table's keys are valid attribute names for this PurpleStatusType. |
|
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
504 | * The hash table is not modified or 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
|
505 | * |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
506 | * Sets whether or not a status is active. |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
507 | * |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
508 | * 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
|
509 | * |
|
cd2da3a58f6d
Rename purple_account_set_status_list and purple_status_set_active_with_attrs_list
qarkai <qarkai@gmail.com>
parents:
40328
diff
changeset
|
510 | * Since: 3.0.0 |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
511 | */ |
|
40332
cd2da3a58f6d
Rename purple_account_set_status_list and purple_status_set_active_with_attrs_list
qarkai <qarkai@gmail.com>
parents:
40328
diff
changeset
|
512 | void purple_status_set_active_with_attrs_dict(PurpleStatus *status, gboolean active, |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
513 | GHashTable *attrs); |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11129
diff
changeset
|
514 | |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
515 | /** |
|
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
|
516 | * 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
|
517 | * @status: The status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
518 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
519 | * Returns the status's type. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
520 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
521 | * Returns: The status's type. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
522 | */ |
|
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
|
523 | PurpleStatusType *purple_status_get_status_type(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
524 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
525 | /** |
|
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
|
526 | * 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
|
527 | * @status: The status. |
|
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 | * Returns the status's presence. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
530 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
531 | * Returns: (transfer none): The status's presence. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
532 | */ |
|
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
|
533 | PurplePresence *purple_status_get_presence(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
534 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
535 | /** |
|
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
|
536 | * 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
|
537 | * @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
|
538 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
539 | * Returns the status's type ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
540 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
541 | * 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
|
542 | * 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
|
543 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
544 | * Returns: The status's ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
545 | */ |
|
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
|
546 | const char *purple_status_get_id(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
547 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
548 | /** |
|
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
|
549 | * 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
|
550 | * @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
|
551 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
552 | * Returns the status's name. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
553 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
554 | * 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
|
555 | * 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
|
556 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
557 | * Returns: The status's name. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
558 | */ |
|
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
|
559 | const char *purple_status_get_name(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
560 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
561 | /** |
|
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
|
562 | * 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
|
563 | * @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
|
564 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
565 | * Returns whether or not a status is independent. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
566 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
567 | * 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
|
568 | * 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
|
569 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
570 | * Returns: TRUE if the status is independent, or FALSE otherwise. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
571 | */ |
|
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
|
572 | gboolean purple_status_is_independent(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
573 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
574 | /** |
|
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
|
575 | * 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
|
576 | * @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
|
577 | * |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
578 | * Returns whether or not a status is exclusive. |
|
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
579 | * |
|
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
580 | * 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
|
581 | * 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
|
582 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
583 | * Returns: TRUE if the status is exclusive, FALSE otherwise. |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
584 | */ |
|
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
|
585 | gboolean purple_status_is_exclusive(PurpleStatus *status); |
|
10067
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
586 | |
|
d04171b6f098
[gaim-migrate @ 11043]
Mark Doliner <markdoliner@pidgin.im>
parents:
10040
diff
changeset
|
587 | /** |
|
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
|
588 | * 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
|
589 | * @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
|
590 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
591 | * Returns whether or not a status is available. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
592 | * |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12484
diff
changeset
|
593 | * 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
|
594 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
595 | * 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
|
596 | * 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
|
597 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
598 | * Returns: TRUE if the status is available, or FALSE otherwise. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
599 | */ |
|
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
|
600 | gboolean purple_status_is_available(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
601 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
602 | /** |
|
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
|
603 | * 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
|
604 | * @status: The status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
605 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
606 | * Returns the active state of a status. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
607 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
608 | * Returns: The active state of the status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
609 | */ |
|
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
|
610 | gboolean purple_status_is_active(PurpleStatus *status); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
611 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
612 | /** |
|
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
|
613 | * 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
|
614 | * @status: The status. |
|
10040
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
615 | * |
|
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
616 | * Returns whether or not a status is considered 'online' |
|
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
617 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
618 | * Returns: TRUE if the status is considered online, FALSE otherwise |
|
10040
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
619 | */ |
|
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
|
620 | gboolean purple_status_is_online(PurpleStatus *status); |
|
10040
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
621 | |
|
b74aeb350fc5
[gaim-migrate @ 10999]
Dave West <kat@users.sourceforge.net>
parents:
10006
diff
changeset
|
622 | /** |
|
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
|
623 | * purple_status_get_attr_value: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
624 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
625 | * @id: The attribute ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
626 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
627 | * 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
|
628 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
629 | * Returns: The value of the attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
630 | */ |
|
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
|
631 | 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
|
632 | const char *id); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
633 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
634 | /** |
|
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
|
635 | * purple_status_get_attr_boolean: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
636 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
637 | * @id: The attribute ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
638 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
639 | * 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
|
640 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
641 | * Returns: The boolean value of the attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
642 | */ |
|
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
|
643 | 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
|
644 | const char *id); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
645 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
646 | /** |
|
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
|
647 | * purple_status_get_attr_int: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
648 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
649 | * @id: The attribute ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
650 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
651 | * 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
|
652 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
653 | * Returns: The integer value of the attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
654 | */ |
|
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
|
655 | 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
|
656 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
657 | /** |
|
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
|
658 | * purple_status_get_attr_string: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
659 | * @status: The status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
660 | * @id: The attribute ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
661 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
662 | * 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
|
663 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
664 | * Returns: The string value of the attribute. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
665 | */ |
|
39515
80425f8a38e2
Clean up a function prototype to be on one line
Gary Kramlich <grim@reaperworld.com>
parents:
39514
diff
changeset
|
666 | 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
|
667 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
668 | /** |
|
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
|
669 | * purple_status_compare: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
670 | * @status1: The first status. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
671 | * @status2: The second status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
672 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
673 | * Compares two statuses for availability. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
674 | * |
|
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
|
675 | * 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
|
676 | * 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
|
677 | * 1 if @status2 is more available than @status1. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
678 | */ |
|
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
|
679 | gint purple_status_compare(PurpleStatus *status1, PurpleStatus *status2); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
680 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
681 | /**************************************************************************/ |
| 35472 | 682 | /* Statuses subsystem */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
683 | /**************************************************************************/ |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
684 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
685 | /** |
|
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
|
686 | * 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
|
687 | * |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
688 | * Get the handle for the status subsystem. |
|
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
689 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35088
diff
changeset
|
690 | * Returns: the handle to the status subsystem |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
691 | */ |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
692 | void *purple_statuses_get_handle(void); |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
693 | |
|
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
694 | /** |
|
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
|
695 | * 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
|
696 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
697 | * Initializes the status subsystem. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
698 | */ |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
699 | void purple_statuses_init(void); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
700 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
701 | /** |
|
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
|
702 | * 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
|
703 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
704 | * Uninitializes the status subsystem. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
705 | */ |
|
34854
8417ea6a9235
Started GObjectification of PurpleStatus.
Ankit Vani <a@nevitus.org>
parents:
34852
diff
changeset
|
706 | void purple_statuses_uninit(void); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
707 | |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
708 | /**************************************************************************/ |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
709 | /* Helpers */ |
|
40327
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
710 | /**************************************************************************/ |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
711 | |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
712 | /** |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
713 | * 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
|
714 | * @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
|
715 | * 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
|
716 | * 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
|
717 | * 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
|
718 | * |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
719 | * 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
|
720 | * |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
721 | * 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
|
722 | * |
|
4caeb8c0b1ca
Add PurpleAttr to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
723 | * 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
|
724 | */ |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
40327
diff
changeset
|
725 | 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
|
726 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32303
diff
changeset
|
727 | G_END_DECLS |
| 15124 | 728 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39556
diff
changeset
|
729 | #endif /* PURPLE_STATUS_H */ |