Sat, 30 Jan 2021 02:26:08 -0600
Make PurpleWhiteboard derivable and remove purple_whiteboard_[gs]et_ui data.
Testing Done:
Compiled
Reviewed at https://reviews.imfreedom.org/r/461/
|
40579
882884b9bc97
Split PurpleAttentionType and PurpleProtocolAttention into their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
1 | /* |
|
882884b9bc97
Split PurpleAttentionType and PurpleProtocolAttention into their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
2 | * purple |
|
882884b9bc97
Split PurpleAttentionType and PurpleProtocolAttention into their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
38858
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * Purple is the legal property of its developers, whose names are too numerous |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * source distribution. |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * This program is free software; you can redistribute it and/or modify |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * it under the terms of the GNU General Public License as published by |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * the Free Software Foundation; either version 2 of the License, or |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * (at your option) any later version. |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * This program is distributed in the hope that it will be useful, |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * GNU General Public License for more details. |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License |
|
40579
882884b9bc97
Split PurpleAttentionType and PurpleProtocolAttention into their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
20 | * along with this program; if not, see <https://www.gnu.org/licenses/>. |
|
38858
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | */ |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40245
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:
40245
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:
40245
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40245
diff
changeset
|
26 | |
|
40579
882884b9bc97
Split PurpleAttentionType and PurpleProtocolAttention into their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
27 | #ifndef PURPLE_ATTENTION_TYPE_H |
|
882884b9bc97
Split PurpleAttentionType and PurpleProtocolAttention into their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
28 | #define PURPLE_ATTENTION_TYPE_H |
|
38858
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | |
|
38859
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
30 | #include <glib.h> |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
31 | #include <glib-object.h> |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
32 | |
|
38858
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | /** |
|
40579
882884b9bc97
Split PurpleAttentionType and PurpleProtocolAttention into their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
34 | * SECTION:purpleattentiontype |
|
882884b9bc97
Split PurpleAttentionType and PurpleProtocolAttention into their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
35 | * @section_id: libpurple-purpleattentiontype |
|
882884b9bc97
Split PurpleAttentionType and PurpleProtocolAttention into their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
36 | * @title: Attention Types |
|
38858
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | */ |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | |
|
40579
882884b9bc97
Split PurpleAttentionType and PurpleProtocolAttention into their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
39 | #define PURPLE_TYPE_ATTENTION_TYPE (purple_attention_type_get_type()) |
|
38858
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | |
|
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | /** |
|
38859
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
42 | * PurpleAttentionType: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
43 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
44 | * Represents "nudges" and "buzzes" that you may send to a buddy to attract |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
45 | * their attention (or vice-versa). |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
46 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
47 | typedef struct _PurpleAttentionType PurpleAttentionType; |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
48 | |
|
39662
cc279390deec
Change a libpurple interface to GObject macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39028
diff
changeset
|
49 | G_BEGIN_DECLS |
|
38858
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
51 | /** |
|
38859
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
52 | * purple_attention_type_get_type: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
53 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
54 | * Returns: The #GType for the #PurpleAttentionType boxed structure. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
55 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
56 | GType purple_attention_type_get_type(void); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
57 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
58 | PurpleAttentionType *purple_attention_type_copy(PurpleAttentionType *attn); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
59 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
60 | /** |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
61 | * purple_attention_type_new: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
62 | * @unlocalized_name: A non-localized string that can be used by UIs in need of such |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
63 | * non-localized strings. This should be the same as @name, |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
64 | * without localization. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
65 | * @name: A localized string that the UI may display for the event. This |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
66 | * should be the same string as @unlocalized_name, with localization. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
67 | * @incoming_description: A localized description shown when the event is received. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
68 | * @outgoing_description: A localized description shown when the event is sent. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
69 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
70 | * Creates a new #PurpleAttentionType object and sets its mandatory parameters. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
71 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
72 | * Returns: A pointer to the new object. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
73 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
74 | PurpleAttentionType *purple_attention_type_new(const gchar *unlocalized_name, const gchar *name, |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
75 | const gchar *incoming_description, const gchar *outgoing_description); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
76 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
77 | /** |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
78 | * purple_attention_type_get_name: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
79 | * @type: The attention type. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
80 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
81 | * Get the attention type's name as displayed by the UI. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
82 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
83 | * Returns: The name. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
84 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
85 | const gchar *purple_attention_type_get_name(const PurpleAttentionType *type); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
86 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
87 | /** |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
88 | * purple_attention_type_set_name: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
89 | * @type: The attention type. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
90 | * @name: The localized name that will be displayed by UIs. This should be |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
91 | * the same string given as the unlocalized name, but with |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
92 | * localization. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
93 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
94 | * Sets the displayed name of the attention-demanding event. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
95 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
96 | void purple_attention_type_set_name(PurpleAttentionType *type, const gchar *name); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
97 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
98 | /** |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
99 | * purple_attention_type_get_incoming_desc: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
100 | * @type: The attention type. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
101 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
102 | * Get the attention type's description shown when the event is received. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
103 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
104 | * Returns: The description. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
105 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
106 | const gchar *purple_attention_type_get_incoming_desc(const PurpleAttentionType *type); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
107 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
108 | /** |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
109 | * purple_attention_type_set_incoming_desc: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
110 | * @type: The attention type. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
111 | * @desc: The localized description for incoming events. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
112 | * |
|
38861
21858f98040c
Address the issues that Qulogic found
Gary Kramlich <grim@reaperworld.com>
parents:
38859
diff
changeset
|
113 | * Sets the description of the attention-demanding event shown in conversations |
|
38859
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
114 | * when the event is received. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
115 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
116 | void purple_attention_type_set_incoming_desc(PurpleAttentionType *type, const gchar *desc); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
117 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
118 | /** |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
119 | * purple_attention_type_get_outgoing_desc: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
120 | * @type: The attention type. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
121 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
122 | * Get the attention type's description shown when the event is sent. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
123 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
124 | * Returns: The description. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
125 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
126 | const gchar *purple_attention_type_get_outgoing_desc(const PurpleAttentionType *type); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
127 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
128 | /** |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
129 | * purple_attention_type_set_outgoing_desc: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
130 | * @type: The attention type. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
131 | * @desc: The localized description for outgoing events. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
132 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
133 | * Sets the description of the attention-demanding event shown in conversations |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
134 | * when the event is sent. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
135 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
136 | void purple_attention_type_set_outgoing_desc(PurpleAttentionType *type, const gchar *desc); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
137 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
138 | /** |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
139 | * purple_attention_type_get_icon_name: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
140 | * @type: The attention type. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
141 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
142 | * Get the attention type's icon name. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
143 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
144 | * Note: Icons are optional for attention events. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
145 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
146 | * Returns: The icon name or %NULL if unset/empty. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
147 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
148 | const gchar *purple_attention_type_get_icon_name(const PurpleAttentionType *type); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
149 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
150 | /** |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
151 | * purple_attention_type_set_icon_name: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
152 | * @type: The attention type. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
153 | * @name: The icon's name. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
154 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
155 | * Sets the name of the icon to display for the attention event; this is optional. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
156 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
157 | * Note: Icons are optional for attention events. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
158 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
159 | void purple_attention_type_set_icon_name(PurpleAttentionType *type, const gchar *name); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
160 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
161 | /** |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
162 | * purple_attention_type_get_unlocalized_name: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
163 | * @type: The attention type |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
164 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
165 | * Get the attention type's unlocalized name; this is useful for some UIs. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
166 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
167 | * Returns: The unlocalized name. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
168 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
169 | const gchar *purple_attention_type_get_unlocalized_name(const PurpleAttentionType *type); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
170 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
171 | /** |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
172 | * purple_attention_type_set_unlocalized_name: |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
173 | * @type: The attention type. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
174 | * @ulname: The unlocalized name. This should be the same string given as |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
175 | * the localized name, but without localization. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
176 | * |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
177 | * Sets the unlocalized name of the attention event; some UIs may need this, |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
178 | * thus it is required. |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
179 | */ |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
180 | void purple_attention_type_set_unlocalized_name(PurpleAttentionType *type, const gchar *ulname); |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
181 | |
|
ed15916ec9ed
First pass at moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
38858
diff
changeset
|
182 | G_END_DECLS |
|
38858
79e613af04c4
Start of moving attention to it's own files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
183 | |
|
40579
882884b9bc97
Split PurpleAttentionType and PurpleProtocolAttention into their own files
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
184 | #endif /* PURPLE_ATTENTION_TYPE_H */ |