Sat, 21 Dec 2019 21:51:21 -0500
Convert PurpleXferUiOps.add_thumbnail to a signal.
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* purple |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Purple is the legal property of its developers, whose names are too numerous |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * source distribution. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | #ifndef PURPLE_COUNTING_NODE_H |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #define PURPLE_COUNTING_NODE_H |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | /** |
|
37949
87d2c1513e5b
Clean up some documentation comments
Gary Kramlich <grim@reaperworld.com>
parents:
37945
diff
changeset
|
25 | * SECTION:countingnode |
|
87d2c1513e5b
Clean up some documentation comments
Gary Kramlich <grim@reaperworld.com>
parents:
37945
diff
changeset
|
26 | * @section_id: libpurple-countingnode |
|
87d2c1513e5b
Clean up some documentation comments
Gary Kramlich <grim@reaperworld.com>
parents:
37945
diff
changeset
|
27 | * @short_description: <filename>countingnode.h</filename> |
|
87d2c1513e5b
Clean up some documentation comments
Gary Kramlich <grim@reaperworld.com>
parents:
37945
diff
changeset
|
28 | * @title: CountingNode Object |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | #include <glib.h> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | #include <glib-object.h> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | #include "blistnode.h" |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | #define PURPLE_TYPE_COUNTING_NODE (purple_counting_node_get_type()) |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | #define PURPLE_COUNTING_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNode)) |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | #define PURPLE_COUNTING_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNodeClass)) |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | #define PURPLE_IS_COUNTING_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_COUNTING_NODE)) |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | #define PURPLE_IS_COUNTING_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_COUNTING_NODE)) |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | #define PURPLE_COUNTING_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNodeClass)) |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | typedef struct _PurpleCountingNode PurpleCountingNode; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | typedef struct _PurpleCountingNodeClass PurpleCountingNodeClass; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | * PurpleCountingNode: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | * A node that keeps count of the number of children that it has. It tracks the |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | * total number of children, the number of children corresponding to online |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | * accounts, and the number of online children. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | * The two types of counting nodes are: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | * <orderedlist> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | * <listitem>Contact: Keeps track of the number of buddies under it.</listitem> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | * <listitem>Group: Keeps track of the number of chats and contacts under it. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | * </listitem> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | * </orderedlist> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
60 | * See #PurpleContact, #PurpleGroup |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
61 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
62 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | struct _PurpleCountingNode { |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | PurpleBlistNode node; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | }; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | struct _PurpleCountingNodeClass { |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | PurpleBlistNodeClass node_class; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | /*< private >*/ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | void (*_purple_reserved1)(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | void (*_purple_reserved2)(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | void (*_purple_reserved3)(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | void (*_purple_reserved4)(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | }; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | G_BEGIN_DECLS |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
80 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | * purple_counting_node_get_type: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
83 | * Returns: The #GType for the #PurpleCountingNode object. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
84 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
85 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
86 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
87 | GType purple_counting_node_get_type(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
88 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
89 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
90 | * purple_counting_node_get_total_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
92 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
93 | * Returns the total number of children of the counting node. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
94 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
95 | * Returns: The total number of children of the node |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
96 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
97 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
98 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
99 | int purple_counting_node_get_total_size(PurpleCountingNode *counter); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
100 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
101 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
102 | * purple_counting_node_get_current_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
103 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
104 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
105 | * Returns the number of children of the counting node corresponding to online |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
106 | * accounts. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
107 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
108 | * Returns: The number of children with online accounts |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
109 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
110 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
111 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
112 | int purple_counting_node_get_current_size(PurpleCountingNode *counter); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
113 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
114 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
115 | * purple_counting_node_get_online_count: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
116 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
117 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | * Returns the number of children of the counting node that are online. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
119 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
120 | * Returns: The total number of online children |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
121 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
122 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
123 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
124 | int purple_counting_node_get_online_count(PurpleCountingNode *counter); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
125 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
126 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
127 | * purple_counting_node_change_total_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
128 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
129 | * @delta: The value to change the total size by |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
130 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
131 | * Changes the total number of children of the counting node. The provided |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
132 | * delta value is added to the count, or if it's negative, the count is |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
133 | * decreased. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
134 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
135 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
136 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
137 | void purple_counting_node_change_total_size(PurpleCountingNode *counter, int delta); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
138 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
139 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
140 | * purple_counting_node_change_current_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
141 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
142 | * @delta: The value to change the current size by |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
143 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
144 | * Changes the number of children of the counting node corresponding to online |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
145 | * accounts. The provided delta value is added to the count, or if it's |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
146 | * negative, the count is decreased. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
147 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
148 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
149 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
150 | void purple_counting_node_change_current_size(PurpleCountingNode *counter, int delta); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
151 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
152 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
153 | * purple_counting_node_change_online_count: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
154 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
155 | * @delta: The value to change the online count by |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
156 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
157 | * Changes the number of children of the counting node that are online. The |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
158 | * provided delta value is added to the count, or if it's negative, the count is |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
159 | * decreased. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
160 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
161 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
162 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
163 | void purple_counting_node_change_online_count(PurpleCountingNode *counter, int delta); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
164 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
165 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
166 | * purple_counting_node_set_total_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
167 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
168 | * @totalsize: The total number of children of the node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
169 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
170 | * Sets the total number of children of the counting node. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
171 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
172 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
173 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
174 | void purple_counting_node_set_total_size(PurpleCountingNode *counter, int totalsize); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
175 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
176 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
177 | * purple_counting_node_set_current_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
178 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
179 | * @currentsize: The number of children with online accounts |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
180 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
181 | * Sets the number of children of the counting node corresponding to online |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
182 | * accounts. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
183 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
184 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
185 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
186 | void purple_counting_node_set_current_size(PurpleCountingNode *counter, int currentsize); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
187 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
188 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
189 | * purple_counting_node_set_online_count: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
190 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
191 | * @onlinecount: The total number of online children |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
192 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
193 | * Sets the number of children of the counting node that are online. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
194 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
195 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
196 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
197 | void purple_counting_node_set_online_count(PurpleCountingNode *counter, int onlinecount); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
198 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
199 | G_END_DECLS |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
200 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
201 | #endif /* PURPLE_COUNTING_NODE_H */ |