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 85 of file C4Network2IRC.h.

Constructor & Destructor Documentation

C4Network2IRCChannel::C4Network2IRCChannel ( const char *  szName)

Definition at line 67 of file C4Network2IRC.cpp.

68  : Name(szName), pUsers(nullptr), fReceivingUsers(false)
69 {
70 
71 }
C4Network2IRCChannel::~C4Network2IRCChannel ( )

Definition at line 73 of file C4Network2IRC.cpp.

74 {
75  ClearUsers();
76 }

Member Function Documentation

const char* C4Network2IRCChannel::getName ( ) const
inline

Definition at line 103 of file C4Network2IRC.h.

References StdStrBuf::getData().

Referenced by C4Network2IRCClient::Close().

103 { return Name.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* C4Network2IRCChannel::getTopic ( ) const
inline

Definition at line 104 of file C4Network2IRC.h.

References StdStrBuf::getData().

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

Here is the call graph for this function:

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

Definition at line 78 of file C4Network2IRC.cpp.

References SEqual().

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

Here is the call graph for this function:

C4Network2IRCUser* C4Network2IRCChannel::getUsers ( ) const
inline

Definition at line 105 of file C4Network2IRC.h.

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

Definition at line 107 of file C4Network2IRC.h.

107 { return fReceivingUsers; }

Friends And Related Function Documentation

friend class C4Network2IRCClient
friend

Definition at line 87 of file C4Network2IRC.h.


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