Mercurial > pidgin.yaz
comparison libpurple/prpl.h @ 32687:02a2e8183b1d
Clean the API documentation in preparation for 3.0.0 by removing all the old @since tags.
author | andrew.victor@mxit.com |
---|---|
date | Sun, 25 Sep 2011 18:56:58 +0000 |
parents | 5aa171c8776b |
children |
comparison
equal
deleted
inserted
replaced
32685:9d5b87e1a4d0 | 32687:02a2e8183b1d |
---|---|
184 OPT_PROTO_REGISTER_NOSCREENNAME = 0x00000200, | 184 OPT_PROTO_REGISTER_NOSCREENNAME = 0x00000200, |
185 | 185 |
186 /** | 186 /** |
187 * Indicates that slash commands are native to this protocol. | 187 * Indicates that slash commands are native to this protocol. |
188 * Used as a hint that unknown commands should not be sent as messages. | 188 * Used as a hint that unknown commands should not be sent as messages. |
189 * @since 2.1.0 | |
190 */ | 189 */ |
191 OPT_PROTO_SLASH_COMMANDS_NATIVE = 0x00000400, | 190 OPT_PROTO_SLASH_COMMANDS_NATIVE = 0x00000400, |
192 | 191 |
193 /** | 192 /** |
194 * Indicates that this protocol supports sending a user-supplied message | 193 * Indicates that this protocol supports sending a user-supplied message |
195 * along with an invitation. | 194 * along with an invitation. |
196 * @since 2.8.0 | |
197 */ | 195 */ |
198 OPT_PROTO_INVITE_MESSAGE = 0x00000800 | 196 OPT_PROTO_INVITE_MESSAGE = 0x00000800 |
199 | 197 |
200 } PurpleProtocolOptions; | 198 } PurpleProtocolOptions; |
201 | 199 |
569 const char *who); | 567 const char *who); |
570 | 568 |
571 /** | 569 /** |
572 * Returns an array of "PurpleMood"s, with the last one having | 570 * Returns an array of "PurpleMood"s, with the last one having |
573 * "mood" set to @c NULL. | 571 * "mood" set to @c NULL. |
574 * @since 2.7.0 | |
575 */ | 572 */ |
576 PurpleMood *(*get_moods)(PurpleAccount *account); | 573 PurpleMood *(*get_moods)(PurpleAccount *account); |
577 | 574 |
578 /** | 575 /** |
579 * Set the user's "friendly name" (or alias or nickname or | 576 * Set the user's "friendly name" (or alias or nickname or |
589 * a protocol-specific "default"). | 586 * a protocol-specific "default"). |
590 * @param success_cb Callback to be called if the public alias is set | 587 * @param success_cb Callback to be called if the public alias is set |
591 * @param failure_cb Callback to be called if setting the public alias | 588 * @param failure_cb Callback to be called if setting the public alias |
592 * fails | 589 * fails |
593 * @see purple_account_set_public_alias | 590 * @see purple_account_set_public_alias |
594 * @since 2.7.0 | |
595 */ | 591 */ |
596 void (*set_public_alias)(PurpleConnection *gc, const char *alias, | 592 void (*set_public_alias)(PurpleConnection *gc, const char *alias, |
597 PurpleSetPublicAliasSuccessCallback success_cb, | 593 PurpleSetPublicAliasSuccessCallback success_cb, |
598 PurpleSetPublicAliasFailureCallback failure_cb); | 594 PurpleSetPublicAliasFailureCallback failure_cb); |
599 /** | 595 /** |
606 * @param gc The connection for which to retireve the alias | 602 * @param gc The connection for which to retireve the alias |
607 * @param success_cb Callback to be called with the retrieved alias | 603 * @param success_cb Callback to be called with the retrieved alias |
608 * @param failure_cb Callback to be called if the prpl is unable to | 604 * @param failure_cb Callback to be called if the prpl is unable to |
609 * retrieve the alias | 605 * retrieve the alias |
610 * @see purple_account_get_public_alias | 606 * @see purple_account_get_public_alias |
611 * @since 2.7.0 | |
612 */ | 607 */ |
613 void (*get_public_alias)(PurpleConnection *gc, | 608 void (*get_public_alias)(PurpleConnection *gc, |
614 PurpleGetPublicAliasSuccessCallback success_cb, | 609 PurpleGetPublicAliasSuccessCallback success_cb, |
615 PurpleGetPublicAliasFailureCallback failure_cb); | 610 PurpleGetPublicAliasFailureCallback failure_cb); |
616 }; | 611 }; |
790 * This is meant to be called from protocol plugins. | 785 * This is meant to be called from protocol plugins. |
791 * | 786 * |
792 * @param account The account. | 787 * @param account The account. |
793 * | 788 * |
794 * @see account-actions-changed | 789 * @see account-actions-changed |
795 * @since 2.6.0 | |
796 */ | 790 */ |
797 void purple_prpl_got_account_actions(PurpleAccount *account); | 791 void purple_prpl_got_account_actions(PurpleAccount *account); |
798 | 792 |
799 /** | 793 /** |
800 * Notifies Purple that a buddy's idle state and time have changed. | 794 * Notifies Purple that a buddy's idle state and time have changed. |
881 * of the attention request command to send. 0 if prpl only defines one | 875 * of the attention request command to send. 0 if prpl only defines one |
882 * (for example, Yahoo and MSN), but some protocols define more (MySpaceIM). | 876 * (for example, Yahoo and MSN), but some protocols define more (MySpaceIM). |
883 * | 877 * |
884 * Note that you can't send arbitrary PurpleAttentionType's, because there is | 878 * Note that you can't send arbitrary PurpleAttentionType's, because there is |
885 * only a fixed set of attention commands. | 879 * only a fixed set of attention commands. |
886 * | |
887 * @since 2.5.0 | |
888 */ | 880 */ |
889 void purple_prpl_send_attention(PurpleConnection *gc, const char *who, guint type_code); | 881 void purple_prpl_send_attention(PurpleConnection *gc, const char *who, guint type_code); |
890 | 882 |
891 /** | 883 /** |
892 * Process an incoming attention message. | 884 * Process an incoming attention message. |
893 * | 885 * |
894 * @param gc The connection that received the attention message. | 886 * @param gc The connection that received the attention message. |
895 * @param who Who requested your attention. | 887 * @param who Who requested your attention. |
896 * @param type_code An index into the prpl's attention_types list determining the type | 888 * @param type_code An index into the prpl's attention_types list determining the type |
897 * of the attention request command to send. | 889 * of the attention request command to send. |
898 * | |
899 * @since 2.5.0 | |
900 */ | 890 */ |
901 void purple_prpl_got_attention(PurpleConnection *gc, const char *who, guint type_code); | 891 void purple_prpl_got_attention(PurpleConnection *gc, const char *who, guint type_code); |
902 | 892 |
903 /** | 893 /** |
904 * Process an incoming attention message in a chat. | 894 * Process an incoming attention message in a chat. |
906 * @param gc The connection that received the attention message. | 896 * @param gc The connection that received the attention message. |
907 * @param id The chat id. | 897 * @param id The chat id. |
908 * @param who Who requested your attention. | 898 * @param who Who requested your attention. |
909 * @param type_code An index into the prpl's attention_types list determining the type | 899 * @param type_code An index into the prpl's attention_types list determining the type |
910 * of the attention request command to send. | 900 * of the attention request command to send. |
911 * | |
912 * @since 2.5.0 | |
913 */ | 901 */ |
914 void purple_prpl_got_attention_in_chat(PurpleConnection *gc, int id, const char *who, guint type_code); | 902 void purple_prpl_got_attention_in_chat(PurpleConnection *gc, int id, const char *who, guint type_code); |
915 | 903 |
916 /** | 904 /** |
917 * Determines if the contact supports the given media session type. | 905 * Determines if the contact supports the given media session type. |
942 * | 930 * |
943 * This function is intended to be used only by prpls. | 931 * This function is intended to be used only by prpls. |
944 * | 932 * |
945 * @param account The account the user is on. | 933 * @param account The account the user is on. |
946 * @param who The name of the contact for which capabilities have been received. | 934 * @param who The name of the contact for which capabilities have been received. |
947 * @since 2.7.0 | |
948 */ | 935 */ |
949 void purple_prpl_got_media_caps(PurpleAccount *account, const char *who); | 936 void purple_prpl_got_media_caps(PurpleAccount *account, const char *who); |
950 | 937 |
951 /*@}*/ | 938 /*@}*/ |
952 | 939 |