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.

Referenced by C4Network2IRCClient::RegisterNick().

65  : Name(szName), pUsers(nullptr), fReceivingUsers(false)
66 {
67 
68 }
Here is the caller graph for this function:

◆ ~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.

References StdStrBuf::getData().

Referenced by C4Network2IRCClient::Close(), and C4Network2IRCClient::RegisterNick().

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:

◆ getTopic()

const char* C4Network2IRCChannel::getTopic ( ) const
inline

Definition at line 103 of file C4Network2IRC.h.

References StdStrBuf::getData().

Referenced by C4ChatControl::ChatSheet::NickItem::SortFunc().

103 { return Topic.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:

◆ getUser()

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

Definition at line 75 of file C4Network2IRC.cpp.

References C4Network2IRCClient::C4Network2IRCClient(), StdStrBuf::Copy(), StdStrBuf::getData(), ircExtractPar(), SEqual(), and SSearch().

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:

◆ getUsers()

C4Network2IRCUser* C4Network2IRCChannel::getUsers ( ) const
inline

Definition at line 104 of file C4Network2IRC.h.

Referenced by C4ChatControl::ChatSheet::NickItem::SortFunc().

104 { return pUsers; }
Here is the caller graph for this function:

◆ isUsersLocked()

bool C4Network2IRCChannel::isUsersLocked ( ) const
inline

Definition at line 106 of file C4Network2IRC.h.

Referenced by C4ChatControl::ChatSheet::NickItem::SortFunc().

106 { return fReceivingUsers; }
Here is the caller graph for this function:

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: