One-to-one association of visible prefixes to user mode. More...
#include <ircuserprefix.h>
Public Member Functions | |
| IRCUserPrefix (const IRCUserPrefix &other) | |
| void | assignPrefix (char mode, char prefix) |
| QString | cleanNickname (const QString &nickname) const |
| int | compare (char mode1, char mode2) const |
| bool | hasMode (char mode) const |
| bool | hasPrefix (char prefix) const |
| char | modeForPrefix (char prefix) const |
| char | modeFromNickname (const QString &nickname) const |
| IRCUserPrefix & | operator= (const IRCUserPrefix &other) |
| char | prefixForMode (char mode) const |
| char | topMostMode (const QList< char > &candidates) const |
| Out of list of possible modes picks mode with highest priority. More... | |
Static Public Member Functions | |
| static IRCUserPrefix | mkDefault () |
| User modes: op, half-op and voice. More... | |
One-to-one association of visible prefixes to user mode.
For example: Ops get mode 'o' and prefix '@', voiced users get mode 'v' and prefix '+'. Various servers define various different user modes.
Definition at line 37 of file ircuserprefix.h.
|
static |
User modes: op, half-op and voice.
Should be used when server doesn't provide its own PREFIX information.
Definition at line 116 of file ircuserprefix.cpp.
| char IRCUserPrefix::topMostMode | ( | const QList< char > & | candidates | ) | const |
Out of list of possible modes picks mode with highest priority.
Definition at line 161 of file ircuserprefix.cpp.