muc/user: Improve documentation of Status.

This commit is contained in:
Emmanuel Gil Peyrot 2017-11-24 05:50:24 +00:00
parent 75625c497c
commit 93c7ea6914

View file

@ -16,59 +16,65 @@ use error::Error;
use ns; use ns;
generate_attribute_enum!(Status, "status", ns::MUC_USER, "code", { generate_attribute_enum!(
/// Status: 100 /// Lists all of the possible status codes used in MUC presences.
Status, "status", ns::MUC_USER, "code", {
/// Inform user that any occupant is allowed to see the user's full JID
NonAnonymousRoom => 100, NonAnonymousRoom => 100,
/// Status: 101 /// Inform user that his or her affiliation changed while not in the room
AffiliationChange => 101, AffiliationChange => 101,
/// Status: 102 /// Inform occupants that room now shows unavailable members
ConfigShowsUnavailableMembers => 102, ConfigShowsUnavailableMembers => 102,
/// Status: 103 /// Inform occupants that room now does not show unavailable members
ConfigHidesUnavailableMembers => 103, ConfigHidesUnavailableMembers => 103,
/// Status: 104 /// Inform occupants that a non-privacy-related room configuration change has occurred
ConfigNonPrivacyRelated => 104, ConfigNonPrivacyRelated => 104,
/// Status: 110 /// Inform user that presence refers to itself
SelfPresence => 110, SelfPresence => 110,
/// Status: 170 /// Inform occupants that room logging is now enabled
ConfigRoomLoggingEnabled => 170, ConfigRoomLoggingEnabled => 170,
/// Status: 171 /// Inform occupants that room logging is now disabled
ConfigRoomLoggingDisabled => 171, ConfigRoomLoggingDisabled => 171,
/// Status: 172 /// Inform occupants that the room is now non-anonymous
ConfigRoomNonAnonymous => 172, ConfigRoomNonAnonymous => 172,
/// Status: 173 /// Inform occupants that the room is now semi-anonymous
ConfigRoomSemiAnonymous => 173, ConfigRoomSemiAnonymous => 173,
/// Status: 201 /// Inform user that a new room has been created
RoomHasBeenCreated => 201, RoomHasBeenCreated => 201,
/// Status: 210 /// Inform user that service has assigned or modified occupant's roomnick
AssignedNick => 210, AssignedNick => 210,
/// Status: 301 /// Inform user that he or she has been banned from the room
Banned => 301, Banned => 301,
/// Status: 303 /// Inform all occupants of new room nickname
NewNick => 303, NewNick => 303,
/// Status: 307 /// Inform user that he or she has been kicked from the room
Kicked => 307, Kicked => 307,
/// Status: 321 /// Inform user that he or she is being removed from the room
/// because of an affiliation change
RemovalFromRoom => 321, RemovalFromRoom => 321,
/// Status: 322 /// Inform user that he or she is being removed from the room
/// because the room has been changed to members-only and the
/// user is not a member
ConfigMembersOnly => 322, ConfigMembersOnly => 322,
/// Status: 332 /// Inform user that he or she is being removed from the room
/// because the MUC service is being shut down
ServiceShutdown => 332, ServiceShutdown => 332,
}); });