Keeps track of user status on a channel.
More...
Inherits QObject.
◆ IrcUser()
IrcUser::IrcUser |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
Constructs a new user with parent.
◆ ~IrcUser()
Destructs the user object.
◆ channel()
This property holds the channel of the user.
- Access function:
-
◆ mode()
QString IrcUser::mode |
( |
| ) |
const |
This property holds the mode letter.
Typical mode letters are o
(op) and v
(voice).
- Note
- The mode may be multiple characters if the
multi-prefix
capability is enabled.
- Access function:
-
- Notifier signal:
- void modeChanged(const QString& mode)
- See also
- prefix, IRCv3 support
◆ name()
QString IrcUser::name |
( |
| ) |
const |
This property holds the name.
- Access function:
-
- Notifier signal:
- void nameChanged(const QString& name)
◆ prefix()
QString IrcUser::prefix |
( |
| ) |
const |
This property holds the prefix character.
Typical prefix characters are @
(op) and +
(voice).
- Note
- The prefix may be multiple characters if the
multi-prefix
capability is enabled.
- Access function:
-
- Notifier signal:
- void prefixChanged(const QString& prefix)
- See also
- mode, IRCv3 support
◆ title()
QString IrcUser::title |
( |
| ) |
const |
This property holds the title.
The title consists of prefix and name.
- Access function:
-
- Notifier signal:
- void titleChanged(const QString& title)
◆ away
- Since
- 3.1
This property holds whether the user is marked as being away.
- Note
- IRC servers do not send this information by default. In order to fetch the information for all users on a channel, issue a WHO command on the channel:
Q_INVOKABLE bool sendCommand(IrcCommand *command)
Definition: ircbuffer.cpp:578
bool channel
Definition: ircbuffer.h:59
Keeps track of channel status.
Definition: ircchannel.h:41
Provides the most common commands.
Definition: irccommand.h:45
static Q_INVOKABLE IrcCommand * createWho(const QString &mask, bool operators=false)
Definition: irccommand.cpp:875
- Access function:
-
- Notifier signal:
- void awayChanged(bool away)
◆ servOp
- Since
- 3.1
This property holds whether the user is a server operator.
- Note
- IRC servers do not send this information by default. In order to fetch the information for all users on a channel, issue a WHO command on the channel:
- Access function:
-
- Notifier signal:
- void servOpChanged(bool servOp)