|
ZNC
trunk
|
#include <Message.h>
Inheritance diagram for CTopicMessage:
Collaboration diagram for CTopicMessage:Public Types | |
| enum | Type { Type::Unknown, Type::Account, Type::Action, Type::Away, Type::Capability, Type::CTCP, Type::Error, Type::Invite, Type::Join, Type::Kick, Type::Mode, Type::Nick, Type::Notice, Type::Numeric, Type::Part, Type::Ping, Type::Pong, Type::Quit, Type::Text, Type::Topic, Type::Wallops } |
| enum | FormatFlags { IncludeAll = 0x0, ExcludePrefix = 0x1, ExcludeTags = 0x2 } |
Public Member Functions | |
| CString | GetTopic () const |
| void | SetTopic (const CString &sTopic) |
| 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) |
| 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(), CNickMessage::GetNewNick(), CKickMessage::GetReason(), CPartMessage::GetReason(), CQuitMessage::GetReason(), CTargetMessage::GetTarget(), CActionMessage::GetText(), CCTCPMessage::GetText(), CNoticeMessage::GetText(), CTextMessage::GetText(), and 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 GetTopic().
|
inlineinherited |
Referenced by CBufLine::GetTime().
|
inline |
References CMessage::GetParam().
Referenced by GetText().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Referenced by CBufLine::SetFormat().
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Referenced by CJoinMessage::SetKey(), CKickMessage::SetKickedNick(), CNickMessage::SetNewNick(), CKickMessage::SetReason(), CPartMessage::SetReason(), CQuitMessage::SetReason(), CTargetMessage::SetTarget(), CActionMessage::SetText(), CCTCPMessage::SetText(), CNoticeMessage::SetText(), CTextMessage::SetText(), and SetTopic().
|
inherited |
|
inlineinherited |
Referenced by CBufLine::SetTags().
|
inlineinherited |
References CMessage::SetParam().
|
inline |
References SetTopic().
|
inlineinherited |
Referenced by CBufLine::SetTime().
|
inline |
References CMessage::SetParam().
Referenced by SetText().
|
inherited |
Referenced by CBufLine::GetFormat().
1.8.14