 |
LeechCraft Azoth
0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
|
Go to the documentation of this file.
9 #ifndef PLUGINS_AZOTH_INTERFACES_IMUCPERMS_H
10 #define PLUGINS_AZOTH_INTERFACES_IMUCPERMS_H
71 virtual QMap<QByteArray, QList<QByteArray>>
GetPerms (QObject *participant)
const = 0;
73 virtual QPair<QByteArray, QByteArray>
GetKickPerm ()
const = 0;
74 virtual QPair<QByteArray, QByteArray>
GetBanPerm ()
const = 0;
92 virtual QByteArray
GetAffName (QObject *participant)
const = 0;
113 const QByteArray& permClass,
const QByteArray& targetPerm)
const = 0;
133 virtual void SetPerm (QObject *participant,
134 const QByteArray& permClass,
const QByteArray& targetPerm,
const QString& reason) = 0;
147 virtual bool IsLessByPerm (QObject *part1, QObject *part2)
const = 0;
158 virtual bool IsMultiPerm (
const QByteArray& permClass)
const = 0;
165 virtual QString
GetUserString (
const QByteArray&
id)
const = 0;
187 virtual void TrySetPerm (
const QString& userId,
188 const QByteArray& permClass,
const QByteArray& targetPerm,
const QString& reason)
192 Q_UNUSED (targetPerm)
200 "org.Deviant.LeechCraft.Azoth.IMUCPerms/1.0")
virtual bool IsMultiPerm(const QByteArray &permClass) const =0
Returns whether users can have many perms of the given class at once.
virtual QByteArray GetAffName(QObject *participant) const =0
Returns the name of the affiliation icon.
virtual void SetPerm(QObject *participant, const QByteArray &permClass, const QByteArray &targetPerm, const QString &reason)=0
Sets the permission for the given participant.
virtual QString GetUserString(const QByteArray &id) const =0
Returns a human-readable string for the given id.
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 QMap< QByteArray, QList< QByteArray > > GetPerms(QObject *participant) const =0
Returns current permissions 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.
virtual QPair< QByteArray, QByteArray > GetKickPerm() const =0
virtual QPair< QByteArray, QByteArray > GetBanPerm() const =0
virtual QMap< QByteArray, QList< QByteArray > > GetPossiblePerms() const =0
Returns all possible permission classes and values.
This interface describes permissions in the given room.