Showing the changes to libraries/script-engine/src/UsersScriptingInterface.h (1 of 8 files). Show all
Unified · Split
| @@ -48,7 +48,7 @@ class UsersScriptingInterface : public QObject, public Dependency { · 47 unmodified lines | |||
| 48 | 48 | ||
| 49 | public: | 49 | public: |
| 50 | UsersScriptingInterface(); | 50 | UsersScriptingInterface(); |
| 51 | void setKickConfirmationOperator(std::function<void(const QUuid& nodeID, int banFlags)> kickConfirmationOperator) { | 51 | void setKickConfirmationOperator(std::function<void(const QUuid& nodeID, unsigned int banFlags)> kickConfirmationOperator) { |
| 52 | _kickConfirmationOperator = kickConfirmationOperator; | 52 | _kickConfirmationOperator = kickConfirmationOperator; |
| 53 | } | 53 | } |
| 54 | 54 | ||
| @@ -125,7 +125,7 @@ public slots: · 70 unmodified lines | |||
| 125 | * @param {Uuid} sessionID - The session ID of the user to kick and ban. | 125 | * @param {Uuid} sessionID - The session ID of the user to kick and ban. |
| 126 | * @param {number} - Preferred ban flags. <i>Bans a user by username (if available) and machine fingerprint by default.</i> | 126 | * @param {number} - Preferred ban flags. <i>Bans a user by username (if available) and machine fingerprint by default.</i> |
| 127 | */ | 127 | */ |
| 128 | void kick(const QUuid& nodeID, int banFlags = ModerationFlags::getDefaultBanFlags()); | 128 | void kick(const QUuid& nodeID, unsigned int banFlags = ModerationFlags::getDefaultBanFlags()); |
| 129 | 129 | ||
| 130 | /**jsdoc | 130 | /**jsdoc |
| 131 | * Mutes a user's microphone for everyone. The mute is not permanent: the user can unmute themselves. | 131 | * Mutes a user's microphone for everyone. The mute is not permanent: the user can unmute themselves. |
| @@ -250,7 +250,7 @@ private: · 118 unmodified lines | |||
| 250 | static constexpr unsigned int getBanByFingerprint() { return ModerationFlags::BanFlags::BAN_BY_FINGERPRINT; }; | 250 | static constexpr unsigned int getBanByFingerprint() { return ModerationFlags::BanFlags::BAN_BY_FINGERPRINT; }; |
| 251 | static constexpr unsigned int getBanByIP() { return ModerationFlags::BanFlags::BAN_BY_IP; }; | 251 | static constexpr unsigned int getBanByIP() { return ModerationFlags::BanFlags::BAN_BY_IP; }; |
| 252 | 252 | ||
| 253 | std::function<void(const QUuid& nodeID, int banFlags)> _kickConfirmationOperator; | 253 | std::function<void(const QUuid& nodeID, unsigned int banFlags)> _kickConfirmationOperator; |
| 254 | 254 | ||
| 255 | ReadWriteLockable _kickResponseLock; | 255 | ReadWriteLockable _kickResponseLock; |
| 256 | bool _waitingForKickResponse { false }; | 256 | bool _waitingForKickResponse { false }; |