comparison libpurple/status.h @ 32672:3828a61c44da

A boring and large patch so I can merge heads.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 23 Dec 2011 08:21:58 +0000
parents 80eabeb5b794
children 98520ee78f12
comparison
equal deleted inserted replaced
32671:0e69949b3e61 32672:3828a61c44da
269 * 269 *
270 * @param status_type The status type to destroy. 270 * @param status_type The status type to destroy.
271 */ 271 */
272 void purple_status_type_destroy(PurpleStatusType *status_type); 272 void purple_status_type_destroy(PurpleStatusType *status_type);
273 273
274 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_STATUS_C_)
275 /**
276 * Adds an attribute to a status type.
277 *
278 * @param status_type The status type to add the attribute to.
279 * @param id The ID of the attribute.
280 * @param name The name presented to the user.
281 * @param value The value type of this attribute.
282 *
283 * @deprecated This function isn't needed and should be removed in 3.0.0.
284 * Status type attributes should be set when the status type
285 * is created, in the call to purple_status_type_new_with_attrs.
286 */
287 void purple_status_type_add_attr(PurpleStatusType *status_type, const char *id,
288 const char *name, PurpleValue *value);
289 #endif
290
291 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_STATUS_C_)
292 /**
293 * Adds multiple attributes to a status type.
294 *
295 * @param status_type The status type to add the attribute to.
296 * @param id The ID of the first attribute.
297 * @param name The description of the first attribute.
298 * @param value The value type of the first attribute attribute.
299 * @param ... Additional attribute information.
300 *
301 * @deprecated This function isn't needed and should be removed in 3.0.0.
302 * Status type attributes should be set when the status type
303 * is created, in the call to purple_status_type_new_with_attrs.
304 */
305 void purple_status_type_add_attrs(PurpleStatusType *status_type, const char *id,
306 const char *name, PurpleValue *value, ...) G_GNUC_NULL_TERMINATED;
307 #endif
308
309 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_STATUS_C_)
310 /**
311 * Adds multiple attributes to a status type using a va_list.
312 *
313 * @param status_type The status type to add the attribute to.
314 * @param args The va_list of attributes.
315 *
316 * @deprecated This function isn't needed and should be removed in 3.0.0.
317 * Status type attributes should be set when the status type
318 * is created, in the call to purple_status_type_new_with_attrs.
319 */
320 void purple_status_type_add_attrs_vargs(PurpleStatusType *status_type,
321 va_list args);
322 #endif
323
324 /** 274 /**
325 * Returns the primitive type of a status type. 275 * Returns the primitive type of a status type.
326 * 276 *
327 * @param status_type The status type. 277 * @param status_type The status type.
328 * 278 *
550 * not modified or freed by this function. 500 * not modified or freed by this function.
551 */ 501 */
552 void purple_status_set_active_with_attrs_list(PurpleStatus *status, gboolean active, 502 void purple_status_set_active_with_attrs_list(PurpleStatus *status, gboolean active,
553 GList *attrs); 503 GList *attrs);
554 504
555 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_STATUS_C_)
556 /**
557 * Sets the boolean value of an attribute in a status with the specified ID.
558 *
559 * @param status The status.
560 * @param id The attribute ID.
561 * @param value The boolean value.
562 *
563 * @deprecated This function is only used by status.c and should be made
564 * static in 3.0.0.
565 */
566 void purple_status_set_attr_boolean(PurpleStatus *status, const char *id,
567 gboolean value);
568 #endif
569
570 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_STATUS_C_)
571 /**
572 * Sets the integer value of an attribute in a status with the specified ID.
573 *
574 * @param status The status.
575 * @param id The attribute ID.
576 * @param value The integer value.
577 *
578 * @deprecated This function is only used by status.c and should be made
579 * static in 3.0.0.
580 */
581 void purple_status_set_attr_int(PurpleStatus *status, const char *id,
582 int value);
583 #endif
584
585 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_STATUS_C_)
586 /**
587 * Sets the string value of an attribute in a status with the specified ID.
588 *
589 * @param status The status.
590 * @param id The attribute ID.
591 * @param value The string value.
592 *
593 * @deprecated This function is only used by status.c and should be made
594 * static in 3.0.0.
595 */
596 void purple_status_set_attr_string(PurpleStatus *status, const char *id,
597 const char *value);
598 #endif
599
600 /** 505 /**
601 * Returns the status's type. 506 * Returns the status's type.
602 * 507 *
603 * @param status The status. 508 * @param status The status.
604 * 509 *
800 * the presence. 705 * the presence.
801 * 706 *
802 * @param presence The presence to destroy. 707 * @param presence The presence to destroy.
803 */ 708 */
804 void purple_presence_destroy(PurplePresence *presence); 709 void purple_presence_destroy(PurplePresence *presence);
805
806 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_STATUS_C_)
807 /**
808 * Adds a status to a presence.
809 *
810 * @param presence The presence.
811 * @param status The status to add.
812 *
813 * @deprecated This function is only used by purple_presence_add_list,
814 * and both should be removed in 3.0.0.
815 */
816 void purple_presence_add_status(PurplePresence *presence, PurpleStatus *status);
817 #endif
818
819 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_STATUS_C_)
820 /**
821 * Adds a list of statuses to the presence.
822 *
823 * @param presence The presence.
824 * @param source_list The source list of statuses to add, which is not
825 * modified or freed by this function.
826 *
827 * @deprecated This function isn't used and should be removed in 3.0.0.
828 */
829 void purple_presence_add_list(PurplePresence *presence, GList *source_list);
830 #endif
831 710
832 /** 711 /**
833 * Sets the active state of a status in a presence. 712 * Sets the active state of a status in a presence.
834 * 713 *
835 * Only independent statuses can be set unactive. Normal statuses can only 714 * Only independent statuses can be set unactive. Normal statuses can only