#include <irc/user.hpp>
The user class models and IRC user.
Public Member Functions | |
| user (std::string nick_) | |
| Constructor. More... | |
| user (std::string nick_, prefix pfx_) | |
| Constructor. More... | |
| const std::string & | get_nick () const |
| returns the nick for this user More... | |
| const prefix & | get_prefix () const |
| returns the prefix for this user More... | |
| mode_block & | get_modes () |
| returns the mode block for this user More... | |
| const mode_block & | get_modes () const |
| const version More... | |
| template<typename F > | |
| bsig::connection | connect_on_channel_message (F &&f) |
| connect to the on_channel_message signal More... | |
| template<typename F > | |
| bsig::connection | connect_on_direct_message (F &&f) |
| connect to the on_direct_message signal More... | |
| template<typename F > | |
| bsig::connection | connect_on_nick_change (F &&f) |
| connect to the on_nick_change signal More... | |
| template<typename F > | |
| bsig::connection | connect_on_notice (F &&f) |
| connect to the on_notice signal More... | |
| irc::user::user | ( | std::string | nick_ | ) |
Constructor.
| nick_ | The user nickname. |
| irc::user::user | ( | std::string | nick_, |
| prefix | pfx_ | ||
| ) |
Constructor.
| nick_ | The user nickname. |
| pfx_ | The user hostmask. |
| bsig::connection irc::user::connect_on_channel_message | ( | F && | f | ) |
connect to the on_channel_message signal
| f | the function to callback. |
This signal is triggered when ever the user has sent a channel a private message, the format of the callback is:
| bsig::connection irc::user::connect_on_direct_message | ( | F && | f | ) |
connect to the on_direct_message signal
| f | the function to callback. |
this signal is triggered when ever the user has sent a private message directly to you
| bsig::connection irc::user::connect_on_nick_change | ( | F && | f | ) |
connect to the on_nick_change signal
| f | the function to callback. |
this signal is triggered when ever this users nick has been changed
| bsig::connection irc::user::connect_on_notice | ( | F && | f | ) |
connect to the on_notice signal
| f | the function to callback. |
this signal is triggered when ever this users nick has sent you a notice
| mode_block& irc::user::get_modes | ( | ) |
returns the mode block for this user
| const mode_block& irc::user::get_modes | ( | ) | const |
| const std::string& irc::user::get_nick | ( | ) | const |
returns the nick for this user
| const prefix& irc::user::get_prefix | ( | ) | const |
returns the prefix for this user