Skip to content

Commit

Permalink
MixConfigItem: Document which roles are valid to set
Browse files Browse the repository at this point in the history
  • Loading branch information
melvo committed Nov 19, 2023
1 parent 992265c commit 7428f50
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/base/QXmppMixItems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,11 @@ QXmppMixConfigItem::Role QXmppMixConfigItem::messagesSubscribeRole() const
///
/// Sets the role that is permitted to subscribe to messages sent through the channel.
///
/// Only the following roles are valid:
/// * Role::Participant
/// * Role::Allowed
/// * Role::Anyone
///
/// \param messagesSubscribeRole role permitted to subscribe to the messages
///
void QXmppMixConfigItem::setMessagesSubscribeRole(Role messagesSubscribeRole)
Expand All @@ -564,6 +569,11 @@ QXmppMixConfigItem::Role QXmppMixConfigItem::messagesRetractRole() const
///
/// Sets the role that is permitted to retract any message sent through the channel.
///
/// Only the following roles are valid:
/// * Role::Owner
/// * Role::Administrator
/// * Role::Nobody
///
/// \param messagesRetractRole role permitted to retract any message
///
void QXmppMixConfigItem::setMessagesRetractRole(Role messagesRetractRole)
Expand All @@ -584,6 +594,11 @@ QXmppMixConfigItem::Role QXmppMixConfigItem::presenceSubscribeRole() const
///
/// Sets the role that is permitted to subscribe to the channel's users' presence.
///
/// Only the following roles are valid:
/// * Role::Participant
/// * Role::Allowed
/// * Role::Anyone
///
/// \param presenceSubscribeRole role permitted to subscribe to the presence
///
void QXmppMixConfigItem::setPresenceSubscribeRole(Role presenceSubscribeRole)
Expand Down Expand Up @@ -624,6 +639,11 @@ QXmppMixConfigItem::Role QXmppMixConfigItem::informationSubscribeRole() const
///
/// Sets the role that is permitted to subscribe to the channel's information.
///
/// Only the following roles are valid:
/// * Role::Participant
/// * Role::Allowed
/// * Role::Anyone
///
/// \param informationSubscribeRole role permitted to subscribe to the information
///
void QXmppMixConfigItem::setInformationSubscribeRole(Role informationSubscribeRole)
Expand All @@ -644,6 +664,11 @@ QXmppMixConfigItem::Role QXmppMixConfigItem::informationUpdateRole() const
///
/// Sets the role that is permitted to update the channel's information.
///
/// Only the following roles are valid:
/// * Role::Owner
/// * Role::Administrator
/// * Role::Participant
///
/// \param informationUpdateRole role permitted to update the information
///
void QXmppMixConfigItem::setInformationUpdateRole(Role informationUpdateRole)
Expand All @@ -666,6 +691,13 @@ QXmppMixConfigItem::Role QXmppMixConfigItem::allowedJidsSubscribeRole() const
/// Sets the role that is permitted to subscribe to the JIDs that are allowed to participate in the
/// channel.
///
/// Only the following roles are valid:
/// * Role::Owner
/// * Role::Administrator
/// * Role::Participant
/// * Role::Allowed
/// * Role::Nobody
///
/// \param allowedJidsSubscribeRole role permitted to subscribe to the allowed JIDs
///
void QXmppMixConfigItem::setAllowedJidsSubscribeRole(Role allowedJidsSubscribeRole)
Expand All @@ -688,6 +720,13 @@ QXmppMixConfigItem::Role QXmppMixConfigItem::bannedJidsSubscribeRole() const
/// Sets the role that is permitted to subscribe to the JIDs that are banned from participating in
/// the channel.
///
/// Only the following roles are valid:
/// * Role::Owner
/// * Role::Administrator
/// * Role::Participant
/// * Role::Allowed
/// * Role::Nobody
///
/// \param bannedJidsSubscribeRole role permitted to subscribe to the banned JIDs
///
void QXmppMixConfigItem::setBannedJidsSubscribeRole(Role bannedJidsSubscribeRole)
Expand All @@ -708,6 +747,13 @@ QXmppMixConfigItem::Role QXmppMixConfigItem::configurationReadRole() const
///
/// Sets the role that is permitted to subscribe to and read the channel's configuration.
///
/// Only the following roles are valid:
/// * Role::Owner
/// * Role::Administrator
/// * Role::Participant
/// * Role::Allowed
/// * Role::Nobody
///
/// \param configurationReadRole role permitted to subscribe to and read the configuration
///
void QXmppMixConfigItem::setConfigurationReadRole(Role configurationReadRole)
Expand All @@ -728,6 +774,11 @@ QXmppMixConfigItem::Role QXmppMixConfigItem::avatarUpdateRole() const
///
/// Sets the role that is permitted to update the channel's avatar.
///
/// Only the following roles are valid:
/// * Role::Owner
/// * Role::Administrator
/// * Role::Participant
///
/// \param avatarUpdateRole role permitted to update the avatar
///
void QXmppMixConfigItem::setAvatarUpdateRole(Role avatarUpdateRole)
Expand Down

0 comments on commit 7428f50

Please sign in to comment.