ZNC
trunk
|
#include <Message.h>
Public Types | |
enum class | Type { Unknown , Account , Action , Away , Capability , ChgHost , CTCP , Error , Invite , Join , Kick , Mode , Nick , Notice , Numeric , Part , Ping , Pong , Quit , Text , Topic , Wallops } |
enum | FormatFlags { IncludeAll = 0x0 , ExcludePrefix = 0x1 , ExcludeTags = 0x2 } |
Public Member Functions | |
CString | GetText () const |
void | SetText (const CString &sText) |
CString | GetTarget () const |
void | SetTarget (const CString &sTarget) |
Type | GetType () const |
bool | Equals (const CMessage &Other) const |
void | Clone (const CMessage &Other) |
CIRCNetwork * | GetNetwork () const |
void | SetNetwork (CIRCNetwork *pNetwork) |
CClient * | GetClient () const |
void | SetClient (CClient *pClient) |
CChan * | GetChan () const |
void | SetChan (CChan *pChan) |
CNick & | GetNick () |
const CNick & | GetNick () const |
void | SetNick (const CNick &Nick) |
const CString & | GetCommand () const |
void | SetCommand (const CString &sCommand) |
const VCString & | GetParams () const |
CString | GetParams (unsigned int uIdx, unsigned int uLen=-1) const ZNC_MSG_DEPRECATED("Use GetParamsColon() instead") |
VCString | GetParamsSplit (unsigned int uIdx, unsigned int uLen=-1) const |
Get a subset of the message parameters. More... | |
void | SetParams (const VCString &vsParams) |
void | SetParams (VCString &&vsParams) |
CString | GetParamsColon (unsigned int uIdx, unsigned int uLen=-1) const |
CString | GetParam (unsigned int uIdx) const |
void | SetParam (unsigned int uIdx, const CString &sParam) |
const timeval & | GetTime () const |
void | SetTime (const timeval &ts) |
const MCString & | GetTags () const |
void | SetTags (const MCString &mssTags) |
CString | GetTag (const CString &sKey) const |
void | SetTag (const CString &sKey, const CString &sValue) |
CString | ToString (unsigned int uFlags=IncludeAll) const |
void | Parse (const CString &sMessage) |
template<typename M > | |
M & | As () & |
template<typename M > | |
const M & | As () const & |
template<typename M , typename = typename std::enable_if< std::is_base_of<CMessage, M>{}>::type> | |
operator M& () & | |
template<typename M , typename = typename std::enable_if< std::is_base_of<CMessage, M>{}>::type> | |
operator const M & () const & | |
|
inherited |
|
stronginherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
Referenced by CBufLine::Equals().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Referenced by CNumericMessage::GetCode(), CBufLine::GetCommand(), and CCTCPMessage::IsReply().
|
inlineinherited |
|
inlineinherited |
Referenced by CNickMessage::GetOldNick().
|
inlineinherited |
|
inherited |
Referenced by CJoinMessage::GetKey(), CKickMessage::GetKickedNick(), CModeMessage::GetModeList(), CChgHostMessage::GetNewHost(), CChgHostMessage::GetNewIdent(), CNickMessage::GetNewNick(), CKickMessage::GetReason(), CPartMessage::GetReason(), CQuitMessage::GetReason(), CTargetMessage::GetTarget(), CActionMessage::GetText(), CCTCPMessage::GetText(), GetText(), CTextMessage::GetText(), and CTopicMessage::GetTopic().
|
inlineinherited |
|
inlineinherited |
References CMessage::GetParamsColon().
|
inherited |
Referenced by CModeMessage::GetModes(), and CMessage::GetParams().
|
inherited |
Get a subset of the message parameters.
This allows accessing a vector of a specific range of parameters, allowing easy inline use, such as pChan->SetModes(Message.GetParam(2), Message.GetParamsSplit(3));
uIdx | The index of the first parameter to retrieve |
uLen | How many parameters to retrieve |
Referenced by CModeMessage::GetModeParams().
|
inlineinherited |
Referenced by CBufLine::GetTags().
|
inlineinherited |
References CMessage::GetParam().
|
inline |
References CMessage::GetParam().
|
inlineinherited |
Referenced by CBufLine::GetTime().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Referenced by CBufLine::SetFormat().
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Referenced by CJoinMessage::SetKey(), CKickMessage::SetKickedNick(), CChgHostMessage::SetNewHost(), CChgHostMessage::SetNewIdent(), CNickMessage::SetNewNick(), CKickMessage::SetReason(), CPartMessage::SetReason(), CQuitMessage::SetReason(), CTargetMessage::SetTarget(), CActionMessage::SetText(), CCTCPMessage::SetText(), SetText(), CTextMessage::SetText(), and CTopicMessage::SetTopic().
|
inherited |
|
inherited |
|
inlineinherited |
Referenced by CBufLine::SetTags().
|
inlineinherited |
References CMessage::SetParam().
|
inline |
References CMessage::SetParam().
|
inlineinherited |
Referenced by CBufLine::SetTime().
|
inherited |
Referenced by CBufLine::GetFormat().