9#ifndef PLUGINS_AZOTH_INTERFACES_IMUCPERMS_H
10#define PLUGINS_AZOTH_INTERFACES_IMUCPERMS_H
65 virtual QMap<QByteArray, QList<QByteArray>>
GetPerms (
const ICLEntry& participant)
const = 0;
67 virtual QPair<QByteArray, QByteArray>
GetKickPerm ()
const = 0;
68 virtual QPair<QByteArray, QByteArray>
GetBanPerm ()
const = 0;
107 const QByteArray& permClass,
const QByteArray& targetPerm)
const = 0;
128 const QByteArray& permClass,
const QByteArray& targetPerm,
const QString& reason) = 0;
182 const QByteArray& permClass,
const QByteArray& targetPerm,
const QString& reason)
186 Q_UNUSED (targetPerm)
194 "org.Deviant.LeechCraft.Azoth.IMUCPerms/1.0")
Represents a single entry in contact list.
This interface describes permissions in the given room.
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 QMap< QByteArray, QList< QByteArray > > GetPerms(const ICLEntry &participant) const =0
Returns current permissions for the given participant.
virtual void SetPerm(ICLEntry &participant, const QByteArray &permClass, const QByteArray &targetPerm, const QString &reason)=0
Sets the permission for the given participant.
virtual QByteArray GetAffName(const ICLEntry &participant) const =0
Returns the name of the affiliation icon.
virtual bool IsMultiPerm(const QByteArray &permClass) const =0
Returns whether users can have many perms of the given class at once.
virtual QMap< QByteArray, QList< QByteArray > > GetPossiblePerms() const =0
Returns all possible permission classes and values.
virtual bool MayChangePerm(const ICLEntry &participant, const QByteArray &permClass, const QByteArray &targetPerm) const =0
Whether given participant's permission may be changed to the given value.
virtual bool IsLessByPerm(const ICLEntry &part1, const ICLEntry &part2) const =0
Returns if one participant has less perms than another.
virtual QString GetUserString(const QByteArray &id) const =0
Returns a human-readable string for the given id.
virtual QPair< QByteArray, QByteArray > GetKickPerm() const =0