30 #ifndef PLUGINS_AZOTH_INTERFACES_IMUCPERMS_H 31 #define PLUGINS_AZOTH_INTERFACES_IMUCPERMS_H 92 virtual QMap<QByteArray, QList<QByteArray>>
GetPerms (QObject *participant)
const = 0;
94 virtual QPair<QByteArray, QByteArray>
GetKickPerm ()
const = 0;
95 virtual QPair<QByteArray, QByteArray>
GetBanPerm ()
const = 0;
113 virtual QByteArray
GetAffName (QObject *participant)
const = 0;
134 const QByteArray& permClass,
const QByteArray& targetPerm)
const = 0;
154 virtual void SetPerm (QObject *participant,
155 const QByteArray& permClass,
const QByteArray& targetPerm,
const QString& reason) = 0;
168 virtual bool IsLessByPerm (QObject *part1, QObject *part2)
const = 0;
179 virtual bool IsMultiPerm (
const QByteArray& permClass)
const = 0;
186 virtual QString
GetUserString (
const QByteArray&
id)
const = 0;
209 const QByteArray& permClass,
const QByteArray& targetPerm,
const QString& reason)
213 Q_UNUSED (targetPerm)
221 "org.Deviant.LeechCraft.Azoth.IMUCPerms/1.0")
virtual QMap< QByteArray, QList< QByteArray > > GetPossiblePerms() const =0
Returns all possible permission classes and values.
virtual QByteArray GetAffName(QObject *participant) const =0
Returns the name of the affiliation icon.
virtual QString GetUserString(const QByteArray &id) const =0
Returns a human-readable string for the given id.
virtual QMap< QByteArray, QList< QByteArray > > GetPerms(QObject *participant) const =0
Returns current permissions for the given participant.
virtual void SetPerm(QObject *participant, const QByteArray &permClass, const QByteArray &targetPerm, const QString &reason)=0
Sets the permission for the given participant.
virtual bool MayChangePerm(QObject *participant, const QByteArray &permClass, const QByteArray &targetPerm) const =0
Whether given participant's permission may be changed to the given value.
This interface describes permissions in the given room.
virtual bool IsMultiPerm(const QByteArray &permClass) const =0
Returns whether users can have many perms of the given class at once.
virtual bool IsLessByPerm(QObject *part1, QObject *part2) const =0
Returns if one participant has less perms than another.
virtual void TrySetPerm(const QString &userId, const QByteArray &permClass, const QByteArray &targetPerm, const QString &reason)
Sets a perm on a user not present in the room.
virtual QPair< QByteArray, QByteArray > GetBanPerm() const =0
virtual QPair< QByteArray, QByteArray > GetKickPerm() const =0