IRCUserPrefix Class Reference

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
 
IRCUserPrefixoperator= (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.
 

Static Public Member Functions

static IRCUserPrefix mkDefault ()
 User modes: op, half-op and voice.
 

Detailed Description

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.

Member Function Documentation

IRCUserPrefix IRCUserPrefix::mkDefault ( )
static

User modes: op, half-op and voice.

Should be used when server doesn't provide its own PREFIX information.

Definition at line 108 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 147 of file ircuserprefix.cpp.


The documentation for this class was generated from the following files: