|
ZNC trunk
|
#include <Message.h>
Inheritance diagram for CKickMessage:
Collaboration diagram for CKickMessage:Public Types | |
| enum class | Type { Unknown , Account , Action , Authenticate , Away , Capability , ChgHost , CTCP , Error , Invite , Join , Kick , Mode , Nick , Notice , Numeric , Part , Ping , Pong , Quit , TagMsg , Text , Topic , Wallops } |
| enum | FormatFlags { IncludeAll = 0x0 , ExcludePrefix = 0x1 , ExcludeTags = 0x2 } |
Public Member Functions | |
| CString | GetKickedNick () const |
| void | SetKickedNick (const CString &sNick) |
| CString | GetReason () const |
| void | SetReason (const CString &sReason) |
| CString | GetText () const |
| void | SetText (const CString &sText) |
| CString | GetTarget () const |
| void | SetTarget (const CString &sTarget) |
| Type | GetType () const |
| Returns which type of message this is. | |
| 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. | |
| 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 |
| MCString & | GetTags () |
| 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().
|
inline |
References CMessage::GetParam().
|
inlineinherited |
|
inlineinherited |
Referenced by CNickMessage::GetOldNick().
|
inlineinherited |
|
inherited |
Referenced by CInviteMessage::GetChannel(), CInviteMessage::GetInvitedNick(), CJoinMessage::GetKey(), GetKickedNick(), CModeMessage::GetModeList(), CChgHostMessage::GetNewHost(), CChgHostMessage::GetNewIdent(), CNickMessage::GetNewNick(), GetReason(), CPartMessage::GetReason(), CQuitMessage::GetReason(), CTargetMessage::GetTarget(), CActionMessage::GetText(), CAuthenticateMessage::GetText(), CCTCPMessage::GetText(), CNoticeMessage::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().
|
inline |
References CMessage::GetParam().
Referenced by GetText().
|
inlineinherited |
|
inlineinherited |
Referenced by CBufLine::GetTags().
|
inlineinherited |
References CMessage::GetParam().
|
inline |
References GetReason().
|
inlineinherited |
Referenced by CBufLine::GetTime().
|
inlineinherited |
Returns which type of message this is.
This is mostly about which subclass of CMessage is intended to be used, but does not map 1:1 to the subclasses. The number is NOT guaranteed to be the same across ZNC versions. For practical purposes, GetCommand() may be more useful.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Referenced by CBufLine::SetFormat().
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inline |
References CMessage::SetParam().
|
inlineinherited |
|
inlineinherited |
References CMessage::Nick.
|
inherited |
Referenced by CInviteMessage::SetChannel(), CInviteMessage::SetInvitedNick(), CJoinMessage::SetKey(), SetKickedNick(), CChgHostMessage::SetNewHost(), CChgHostMessage::SetNewIdent(), CNickMessage::SetNewNick(), SetReason(), CPartMessage::SetReason(), CQuitMessage::SetReason(), CTargetMessage::SetTarget(), CActionMessage::SetText(), CAuthenticateMessage::SetText(), CCTCPMessage::SetText(), CNoticeMessage::SetText(), CTextMessage::SetText(), and CTopicMessage::SetTopic().
|
inherited |
|
inherited |
|
inline |
References CMessage::SetParam().
Referenced by SetText().
|
inlineinherited |
Referenced by CBufLine::SetTags().
|
inlineinherited |
References CMessage::SetParam().
|
inline |
References SetReason().
|
inlineinherited |
Referenced by CBufLine::SetTime().
|
inherited |
Referenced by CBufLine::GetFormat().