| 42386:63de4915950b | 42387:d9350cda1556 |
|---|---|
| 28 | 28 |
| 29 #include <glib.h> | 29 #include <glib.h> |
| 30 #include <glib-object.h> | 30 #include <glib-object.h> |
| 31 | 31 |
| 32 #include "blistnode.h" | 32 #include "blistnode.h" |
| 33 #include "purpleversion.h" | |
| 33 | 34 |
| 34 #define PURPLE_TYPE_COUNTING_NODE (purple_counting_node_get_type()) | 35 #define PURPLE_TYPE_COUNTING_NODE (purple_counting_node_get_type()) |
| 35 #define PURPLE_COUNTING_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNode)) | 36 #define PURPLE_COUNTING_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNode)) |
| 36 #define PURPLE_COUNTING_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNodeClass)) | 37 #define PURPLE_COUNTING_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNodeClass)) |
| 37 #define PURPLE_IS_COUNTING_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_COUNTING_NODE)) | 38 #define PURPLE_IS_COUNTING_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_COUNTING_NODE)) |
| 80 * | 81 * |
| 81 * Returns: The #GType for the #PurpleCountingNode object. | 82 * Returns: The #GType for the #PurpleCountingNode object. |
| 82 * | 83 * |
| 83 * Since: 3.0.0 | 84 * Since: 3.0.0 |
| 84 */ | 85 */ |
| 86 PURPLE_AVAILABLE_IN_3_0 | |
| 85 GType purple_counting_node_get_type(void); | 87 GType purple_counting_node_get_type(void); |
| 86 | 88 |
| 87 /** | 89 /** |
| 88 * purple_counting_node_get_total_size: | 90 * purple_counting_node_get_total_size: |
| 89 * @counter: The node | 91 * @counter: The node |
| 92 * | 94 * |
| 93 * Returns: The total number of children of the node | 95 * Returns: The total number of children of the node |
| 94 * | 96 * |
| 95 * Since: 3.0.0 | 97 * Since: 3.0.0 |
| 96 */ | 98 */ |
| 99 PURPLE_AVAILABLE_IN_3_0 | |
| 97 int purple_counting_node_get_total_size(PurpleCountingNode *counter); | 100 int purple_counting_node_get_total_size(PurpleCountingNode *counter); |
| 98 | 101 |
| 99 /** | 102 /** |
| 100 * purple_counting_node_get_current_size: | 103 * purple_counting_node_get_current_size: |
| 101 * @counter: The node | 104 * @counter: The node |
| 105 * | 108 * |
| 106 * Returns: The number of children with online accounts | 109 * Returns: The number of children with online accounts |
| 107 * | 110 * |
| 108 * Since: 3.0.0 | 111 * Since: 3.0.0 |
| 109 */ | 112 */ |
| 113 PURPLE_AVAILABLE_IN_3_0 | |
| 110 int purple_counting_node_get_current_size(PurpleCountingNode *counter); | 114 int purple_counting_node_get_current_size(PurpleCountingNode *counter); |
| 111 | 115 |
| 112 /** | 116 /** |
| 113 * purple_counting_node_get_online_count: | 117 * purple_counting_node_get_online_count: |
| 114 * @counter: The node | 118 * @counter: The node |
| 117 * | 121 * |
| 118 * Returns: The total number of online children | 122 * Returns: The total number of online children |
| 119 * | 123 * |
| 120 * Since: 3.0.0 | 124 * Since: 3.0.0 |
| 121 */ | 125 */ |
| 126 PURPLE_AVAILABLE_IN_3_0 | |
| 122 int purple_counting_node_get_online_count(PurpleCountingNode *counter); | 127 int purple_counting_node_get_online_count(PurpleCountingNode *counter); |
| 123 | 128 |
| 124 /** | 129 /** |
| 125 * purple_counting_node_change_total_size: | 130 * purple_counting_node_change_total_size: |
| 126 * @counter: The node | 131 * @counter: The node |
| 130 * delta value is added to the count, or if it's negative, the count is | 135 * delta value is added to the count, or if it's negative, the count is |
| 131 * decreased. | 136 * decreased. |
| 132 * | 137 * |
| 133 * Since: 3.0.0 | 138 * Since: 3.0.0 |
| 134 */ | 139 */ |
| 140 PURPLE_AVAILABLE_IN_3_0 | |
| 135 void purple_counting_node_change_total_size(PurpleCountingNode *counter, int delta); | 141 void purple_counting_node_change_total_size(PurpleCountingNode *counter, int delta); |
| 136 | 142 |
| 137 /** | 143 /** |
| 138 * purple_counting_node_change_current_size: | 144 * purple_counting_node_change_current_size: |
| 139 * @counter: The node | 145 * @counter: The node |
| 143 * accounts. The provided delta value is added to the count, or if it's | 149 * accounts. The provided delta value is added to the count, or if it's |
| 144 * negative, the count is decreased. | 150 * negative, the count is decreased. |
| 145 * | 151 * |
| 146 * Since: 3.0.0 | 152 * Since: 3.0.0 |
| 147 */ | 153 */ |
| 154 PURPLE_AVAILABLE_IN_3_0 | |
| 148 void purple_counting_node_change_current_size(PurpleCountingNode *counter, int delta); | 155 void purple_counting_node_change_current_size(PurpleCountingNode *counter, int delta); |
| 149 | 156 |
| 150 /** | 157 /** |
| 151 * purple_counting_node_change_online_count: | 158 * purple_counting_node_change_online_count: |
| 152 * @counter: The node | 159 * @counter: The node |
| 156 * provided delta value is added to the count, or if it's negative, the count is | 163 * provided delta value is added to the count, or if it's negative, the count is |
| 157 * decreased. | 164 * decreased. |
| 158 * | 165 * |
| 159 * Since: 3.0.0 | 166 * Since: 3.0.0 |
| 160 */ | 167 */ |
| 168 PURPLE_AVAILABLE_IN_3_0 | |
| 161 void purple_counting_node_change_online_count(PurpleCountingNode *counter, int delta); | 169 void purple_counting_node_change_online_count(PurpleCountingNode *counter, int delta); |
| 162 | 170 |
| 163 /** | 171 /** |
| 164 * purple_counting_node_set_total_size: | 172 * purple_counting_node_set_total_size: |
| 165 * @counter: The node | 173 * @counter: The node |
| 167 * | 175 * |
| 168 * Sets the total number of children of the counting node. | 176 * Sets the total number of children of the counting node. |
| 169 * | 177 * |
| 170 * Since: 3.0.0 | 178 * Since: 3.0.0 |
| 171 */ | 179 */ |
| 180 PURPLE_AVAILABLE_IN_3_0 | |
| 172 void purple_counting_node_set_total_size(PurpleCountingNode *counter, int totalsize); | 181 void purple_counting_node_set_total_size(PurpleCountingNode *counter, int totalsize); |
| 173 | 182 |
| 174 /** | 183 /** |
| 175 * purple_counting_node_set_current_size: | 184 * purple_counting_node_set_current_size: |
| 176 * @counter: The node | 185 * @counter: The node |
| 179 * Sets the number of children of the counting node corresponding to online | 188 * Sets the number of children of the counting node corresponding to online |
| 180 * accounts. | 189 * accounts. |
| 181 * | 190 * |
| 182 * Since: 3.0.0 | 191 * Since: 3.0.0 |
| 183 */ | 192 */ |
| 193 PURPLE_AVAILABLE_IN_3_0 | |
| 184 void purple_counting_node_set_current_size(PurpleCountingNode *counter, int currentsize); | 194 void purple_counting_node_set_current_size(PurpleCountingNode *counter, int currentsize); |
| 185 | 195 |
| 186 /** | 196 /** |
| 187 * purple_counting_node_set_online_count: | 197 * purple_counting_node_set_online_count: |
| 188 * @counter: The node | 198 * @counter: The node |
| 190 * | 200 * |
| 191 * Sets the number of children of the counting node that are online. | 201 * Sets the number of children of the counting node that are online. |
| 192 * | 202 * |
| 193 * Since: 3.0.0 | 203 * Since: 3.0.0 |
| 194 */ | 204 */ |
| 205 PURPLE_AVAILABLE_IN_3_0 | |
| 195 void purple_counting_node_set_online_count(PurpleCountingNode *counter, int onlinecount); | 206 void purple_counting_node_set_online_count(PurpleCountingNode *counter, int onlinecount); |
| 196 | 207 |
| 197 G_END_DECLS | 208 G_END_DECLS |
| 198 | 209 |
| 199 #endif /* PURPLE_COUNTING_NODE_H */ | 210 #endif /* PURPLE_COUNTING_NODE_H */ |