| 1008 * |
1008 * |
| 1009 * Clear an account's current error state, resetting it to %NULL. |
1009 * Clear an account's current error state, resetting it to %NULL. |
| 1010 */ |
1010 */ |
| 1011 void purple_account_clear_current_error(PurpleAccount *account); |
1011 void purple_account_clear_current_error(PurpleAccount *account); |
| 1012 |
1012 |
| |
1013 /** |
| |
1014 * purple_account_set_require_password: |
| |
1015 * @account: The instance. |
| |
1016 * @require_password: Whether or not this account should require a password. |
| |
1017 * |
| |
1018 * For protocols that have an optional password, this settings tells libpurple |
| |
1019 * that it should look for a password in the [class@Purple.CredentialManager] |
| |
1020 * or prompt the user if a password can not be found. |
| |
1021 * |
| |
1022 * Since: 3.0.0 |
| |
1023 */ |
| |
1024 void purple_account_set_require_password(PurpleAccount *account, gboolean require_password); |
| |
1025 |
| |
1026 /** |
| |
1027 * purple_account_get_require_password: |
| |
1028 * @account: The instance. |
| |
1029 * |
| |
1030 * Gets whether or not @account requires a password. |
| |
1031 * |
| |
1032 * Returns: %TRUE if the account requires a password, %FALSE otherwise. |
| |
1033 * |
| |
1034 * Since: 3.0.0 |
| |
1035 */ |
| |
1036 gboolean purple_account_get_require_password(PurpleAccount *account); |
| |
1037 |
| 1013 G_END_DECLS |
1038 G_END_DECLS |
| 1014 |
1039 |
| 1015 #endif /* PURPLE_ACCOUNT_H */ |
1040 #endif /* PURPLE_ACCOUNT_H */ |