comparison src/status.h @ 11249:b4b1be482b4e

[gaim-migrate @ 13418] sf patch #1235519, from Sadrul Habib Chowdhury This is a pretty big patch that makes Gaim correctly save and restore the current status (away/available, away message, available message, invisible, etc). The GaimGtkStatusBoxWidget thing I think defaults to "Available" every time its created, which overrides the setting that was saved to the XML file. So that still needs to be fixed before this will really work. Anyway, mad props to Sadrul for putting up with my requests on this patch committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 13 Aug 2005 05:22:09 +0000
parents 0754ce8f1122
children 90be432e8385
comparison
equal deleted inserted replaced
11248:a2eababc78a8 11249:b4b1be482b4e
435 * @return The status attribute's name. 435 * @return The status attribute's name.
436 */ 436 */
437 const char *gaim_status_attr_get_name(const GaimStatusAttr *attr); 437 const char *gaim_status_attr_get_name(const GaimStatusAttr *attr);
438 438
439 /** 439 /**
440 * Returns the value type of a status attribute. 440 * Returns the value of a status attribute.
441 * 441 *
442 * @param attr The status attribute. 442 * @param attr The status attribute.
443 * 443 *
444 * @return The status attribute's value type. 444 * @return The status attribute's value.
445 */ 445 */
446 GaimValue *gaim_status_attr_get_value_type(const GaimStatusAttr *attr); 446 GaimValue *gaim_status_attr_get_value(const GaimStatusAttr *attr);
447 447
448 /*@}*/ 448 /*@}*/
449 449
450 /**************************************************************************/ 450 /**************************************************************************/
451 /** @name GaimStatus API */ 451 /** @name GaimStatus API */
494 */ 494 */
495 void gaim_status_set_active_with_attrs(GaimStatus *status, gboolean active, 495 void gaim_status_set_active_with_attrs(GaimStatus *status, gboolean active,
496 va_list args); 496 va_list args);
497 497
498 /** 498 /**
499 * Sets whether or not a status is active.
500 *
501 * This should only be called by the account, conversation, and buddy APIs.
502 *
503 * @param status The status.
504 * @param active The active state.
505 * @param list A list of attributes to set on the status. This list is
506 * composed of key/value pairs, where each key is a valid
507 * attribute name for this GaimStatusType.
508 */
509 void gaim_status_set_active_with_attrs_list(GaimStatus *status, gboolean active,
510 const GList *attrs);
511
512 /**
499 * Sets the boolean value of an attribute in a status with the specified ID. 513 * Sets the boolean value of an attribute in a status with the specified ID.
500 * 514 *
501 * @param status The status. 515 * @param status The status.
502 * @param id The attribute ID. 516 * @param id The attribute ID.
503 * @param value The boolean value. 517 * @param value The boolean value.