Contains a message to be sent to IRC server. More...
#include <c_tracked_msg_to_server.h>
Public Types | |
enum | e_kind { PIECE_IGNORE, PIECE_NICK, PIECE_CHANNEL } |
Public Member Functions | |
c_tracked_msg_to_server (const string &first_piece) | |
Adds first piece of message to the vector (not-adjustable, as it is always IRC protocol command). | |
c_tracked_msg_to_server () | |
Dummy constructor to allow uninitialized construction. | |
c_tracked_msg_to_server & | add_channel (const string &channel) |
Adds next piece of command (adjustable: should be channel). | |
c_tracked_msg_to_server & | add_multi (const vector< pair< e_kind, string > > &pieces) |
Adds multiple pieces at once. | |
c_tracked_msg_to_server & | add_nick (const string &nick) |
Adds next piece of command (adjustable: should be nick). | |
c_tracked_msg_to_server & | add_piece (const string &piece) |
Adds next piece of command (not-adjustable). | |
bool | empty () |
Check whether we have message. | |
string | get_msg () const |
Returns message including EOL sequence. | |
bool | is_nick (const string &nick) const |
Checks whether argument is adjustable entry (nick). | |
bool | operator== (const c_tracked_msg_to_server &right) const |
bool | process_nick_change (const string &old_nick, const string new_nick) |
Called if someone has changed nick, and, possibly adjust it in the vector if particular nick is related to this message. | |
bool | process_nick_change_chan (const string &channel, const string &part_nick) |
Called if someone has part/quit/got kicked from channel, and, possibly removing it in the vector if particular nick is related to this message. | |
Private Attributes | |
vector< pair< e_kind, string > > | m_pieces |
Message broken into pieces (.second: text to be adjusted according to .first). |
Contains a message to be sent to IRC server.
Definition at line 54 of file c_tracked_msg_to_server.h.