OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4Network2IRCMessage Class Reference

#include <C4Network2IRC.h>

Public Member Functions

 C4Network2IRCMessage (C4Network2IRCMessageType enType, const char *szSource, const char *szTarget, const char *szData)
 
time_t getTimestamp () const
 
C4Network2IRCMessageType getType () const
 
const char * getSource () const
 
const char * getTarget () const
 
const char * getData () const
 
bool isChannel () const
 
C4Network2IRCMessagegetNext () const
 

Friends

class C4Network2IRCClient
 

Detailed Description

Definition at line 34 of file C4Network2IRC.h.

Constructor & Destructor Documentation

C4Network2IRCMessage::C4Network2IRCMessage ( C4Network2IRCMessageType  enType,
const char *  szSource,
const char *  szTarget,
const char *  szData 
)
inline

Definition at line 38 of file C4Network2IRC.h.

39  : iTimestamp(time(nullptr)), eType(enType), Source(szSource), Target(szTarget), Data(szData), Next(0)
40  { }

Member Function Documentation

const char* C4Network2IRCMessage::getData ( ) const
inline

Definition at line 55 of file C4Network2IRC.h.

References StdStrBuf::getData().

Referenced by C4ChatControl::Update().

55 { return Data.getData(); }
const char * getData() const
Definition: StdBuf.h:450

Here is the call graph for this function:

Here is the caller graph for this function:

C4Network2IRCMessage* C4Network2IRCMessage::getNext ( ) const
inline

Definition at line 58 of file C4Network2IRC.h.

Referenced by C4Network2IRCClient::getUnreadMessageLog(), and C4ChatControl::Update().

58 { return Next; }

Here is the caller graph for this function:

const char* C4Network2IRCMessage::getSource ( ) const
inline

Definition at line 53 of file C4Network2IRC.h.

References StdStrBuf::getData().

Referenced by C4ChatControl::Update().

53 { return Source.getData(); }
const char * getData() const
Definition: StdBuf.h:450

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4Network2IRCMessage::getTarget ( ) const
inline

Definition at line 54 of file C4Network2IRC.h.

References StdStrBuf::getData().

Referenced by C4ChatControl::Update().

54 { return Target.getData(); }
const char * getData() const
Definition: StdBuf.h:450

Here is the call graph for this function:

Here is the caller graph for this function:

time_t C4Network2IRCMessage::getTimestamp ( ) const
inline

Definition at line 51 of file C4Network2IRC.h.

51 { return iTimestamp; }
C4Network2IRCMessageType C4Network2IRCMessage::getType ( ) const
inline

Definition at line 52 of file C4Network2IRC.h.

Referenced by C4ChatControl::Update().

52 { return eType; }

Here is the caller graph for this function:

bool C4Network2IRCMessage::isChannel ( ) const
inline

Definition at line 56 of file C4Network2IRC.h.

References StdStrBuf::getData(), and StdStrBuf::getLength().

Referenced by C4ChatControl::Update().

56 { return Target.getLength() && (*Target.getData() == '#' || *Target.getData() == '+'); }
const char * getData() const
Definition: StdBuf.h:450
size_t getLength() const
Definition: StdBuf.h:453

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class C4Network2IRCClient
friend

Definition at line 36 of file C4Network2IRC.h.


The documentation for this class was generated from the following file: