OpenClonk
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::C4Network2IRCChannel ( const char *  szName)

Definition at line 64 of file C4Network2IRC.cpp.

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

◆ ~C4Network2IRCChannel()

C4Network2IRCChannel::~C4Network2IRCChannel ( )

Definition at line 70 of file C4Network2IRC.cpp.

71 {
72  ClearUsers();
73 }

Member Function Documentation

◆ getName()

const char* C4Network2IRCChannel::getName ( ) const
inline

Definition at line 102 of file C4Network2IRC.h.

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

References StdStrBuf::getData().

Referenced by C4Network2IRCClient::Close().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTopic()

const char* C4Network2IRCChannel::getTopic ( ) const
inline

Definition at line 103 of file C4Network2IRC.h.

103 { return Topic.getData(); }

References StdStrBuf::getData().

Here is the call graph for this function:

◆ getUser()

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

Definition at line 75 of file C4Network2IRC.cpp.

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

References SEqual().

Here is the call graph for this function:

◆ getUsers()

C4Network2IRCUser* C4Network2IRCChannel::getUsers ( ) const
inline

Definition at line 104 of file C4Network2IRC.h.

104 { return pUsers; }

◆ isUsersLocked()

bool C4Network2IRCChannel::isUsersLocked ( ) const
inline

Definition at line 106 of file C4Network2IRC.h.

106 { return fReceivingUsers; }

Friends And Related Function Documentation

◆ C4Network2IRCClient

friend class C4Network2IRCClient
friend

Definition at line 86 of file C4Network2IRC.h.


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