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

#include <C4Network2IRC.h>

Public Member Functions

 C4Network2IRCChannel (const char *szName)
 
 ~C4Network2IRCChannel ()
 
const char * getName () const
 
const char * getTopic () const
 
C4Network2IRCUsergetUsers () const
 
C4Network2IRCUsergetUser (const char *szName) const
 
bool isUsersLocked () const
 

Friends

class C4Network2IRCClient
 

Detailed Description

Definition at line 84 of file C4Network2IRC.h.

Constructor & Destructor Documentation

C4Network2IRCChannel::C4Network2IRCChannel ( const char *  szName)

Definition at line 64 of file C4Network2IRC.cpp.

65  : Name(szName), pUsers(nullptr), fReceivingUsers(false)
66 {
67 
68 }
C4Network2IRCChannel::~C4Network2IRCChannel ( )

Definition at line 70 of file C4Network2IRC.cpp.

71 {
72  ClearUsers();
73 }

Member Function Documentation

const char* C4Network2IRCChannel::getName ( ) const
inline

Definition at line 102 of file C4Network2IRC.h.

References StdStrBuf::getData().

Referenced by C4Network2IRCClient::Close().

102 { return Name.getData(); }
const char * getData() const
Definition: StdBuf.h:442

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4Network2IRCChannel::getTopic ( ) const
inline

Definition at line 103 of file C4Network2IRC.h.

References StdStrBuf::getData().

103 { return Topic.getData(); }
const char * getData() const
Definition: StdBuf.h:442

Here is the call graph for this function:

C4Network2IRCUser * C4Network2IRCChannel::getUser ( const char *  szName) const

Definition at line 75 of file C4Network2IRC.cpp.

References SEqual().

76 {
77  for (C4Network2IRCUser *pUser = pUsers; pUser; pUser = pUser->Next)
78  if (SEqual(pUser->getName(), szName))
79  return pUser;
80  return nullptr;
81 }
bool SEqual(const char *szStr1, const char *szStr2)
Definition: Standard.h:93

Here is the call graph for this function:

C4Network2IRCUser* C4Network2IRCChannel::getUsers ( ) const
inline

Definition at line 104 of file C4Network2IRC.h.

104 { return pUsers; }
bool C4Network2IRCChannel::isUsersLocked ( ) const
inline

Definition at line 106 of file C4Network2IRC.h.

106 { return fReceivingUsers; }

Friends And Related Function Documentation

friend class C4Network2IRCClient
friend

Definition at line 86 of file C4Network2IRC.h.


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