EvEmu
0.8.4
11 September 2021
|
#include "LSCChannel.h"
Public Member Functions | |
LSCChannel (LSCService *svc, int32 channelID, LSC::Type type, uint32 ownerID, const char *displayName, const char *comparisonKey, std::string motd, bool memberless, const char *password, bool mailingList, uint32 cspa, bool temporary, bool languageRestriction, int32 groupMessageID, int32 channelMessageID) | |
~LSCChannel () | |
PyRep * | EncodeID () |
PyRep * | EncodeStaticChannel (uint32 charID) |
PyRep * | EncodeDynamicChannel (uint32 charID) |
PyRep * | EncodeChannelMods () |
PyRep * | EncodeChannelChars () |
PyRep * | EncodeEmptyChannelChars () |
const char * | GetTypeString () |
bool | JoinChannel (Client *pClient) |
void | LeaveChannel (Client *pClient) |
bool | IsJoined (uint32 charID) |
void | UpdateConfig () |
void | Evacuate (Client *c) |
void | SendMessage (Client *c, const char *message, bool self=false) |
void | SendServerMOTD (Client *pClient) |
void | GetChannelInfo (int32 *channelID, uint32 *ownerID, std::string &displayName, std::string &motd, std::string &comparisonKey, bool *memberless, std::string &password, bool *mailingList, uint32 *cspa, uint32 *temporary) |
void | SetDisplayName (std::string displayName) |
void | SetMOTD (std::string motd) |
void | SetMemberless (bool memberless) |
void | SetPassword (std::string password) |
bool | GetMemberless () |
bool | GetMailingList () |
bool | GetTemporary () |
int32 | GetGrpMsgID () |
int32 | GetChMsgID () |
uint16 | GetCSPA () |
uint32 | GetOwnerID () |
int32 | GetChannelID () |
uint32 | GetMemberCount () |
LSC::Type | GetType () |
LSC::Mode | GetMode () |
std::string | GetDisplayName () |
std::string | GetMOTD () |
std::string | GetComparisonKey () |
std::string | GetPassword () |
Static Public Member Functions | |
static OnLSC_SenderInfo * | _MakeSenderInfo (Client *from) |
Protected Member Functions | |
OnLSC_SenderInfo * | _FakeSenderInfo () |
Protected Attributes | |
LSCService *const | m_service |
LSC::Type | m_type |
LSC::Mode | m_mode |
bool | m_memberless |
bool | m_mailingList |
bool | m_temporary |
bool | m_languageRestriction |
int32 | m_groupMessageID |
int32 | m_channelMessageID |
uint16 | m_cspa |
uint32 | m_ownerID |
int32 | m_channelID |
std::string | m_displayName |
std::string | m_motd |
std::string | m_comparisonKey |
std::string | m_password |
std::map< uint32, LSCChannelMod > | m_mods |
std::map< uint32, LSCChannelChar > | m_chars |
Definition at line 89 of file LSCChannel.h.
LSCChannel::LSCChannel | ( | LSCService * | svc, |
int32 | channelID, | ||
LSC::Type | type, | ||
uint32 | ownerID, | ||
const char * | displayName, | ||
const char * | comparisonKey, | ||
std::string | motd, | ||
bool | memberless, | ||
const char * | password, | ||
bool | mailingList, | ||
uint32 | cspa, | ||
bool | temporary, | ||
bool | languageRestriction, | ||
int32 | groupMessageID, | ||
int32 | channelMessageID | ||
) |
Definition at line 72 of file LSCChannel.cpp.
References _log, LSC::chConversationalist, m_channelID, m_comparisonKey, m_displayName, and m_mode.
LSCChannel::~LSCChannel | ( | ) |
Definition at line 94 of file LSCChannel.cpp.
References _log, m_channelID, m_comparisonKey, and m_displayName.
|
protected |
Definition at line 272 of file LSCChannel.cpp.
Referenced by SendServerMOTD().
|
static |
Definition at line 261 of file LSCChannel.cpp.
References Client::GetAccountRole(), Client::GetChar(), Client::GetCharacterID(), Client::GetCorporationID(), Client::GetCorpRole(), Client::GetName(), and InventoryItem::typeID().
Referenced by Evacuate(), JoinChannel(), LeaveChannel(), and SendMessage().
PyRep * LSCChannel::EncodeChannelChars | ( | ) |
PyRep * LSCChannel::EncodeChannelMods | ( | ) |
Definition at line 333 of file LSCChannel.cpp.
References IsStaticChannel, m_channelID, m_channelMessageID, m_chars, m_comparisonKey, m_cspa, m_displayName, m_groupMessageID, m_languageRestriction, m_mailingList, m_memberless, m_mode, m_motd, m_ownerID, m_password, and m_temporary.
PyRep * LSCChannel::EncodeEmptyChannelChars | ( | ) |
Definition at line 390 of file LSCChannel.cpp.
PyRep * LSCChannel::EncodeID | ( | ) |
Definition at line 283 of file LSCChannel.cpp.
References LSC::alliance, LSC::character, LSC::constellation, LSC::corp, LSC::custom, LSC::fleet, GetTypeString(), LSC::global, LSC::incursion, m_channelID, m_type, LSC::normal, LSC::region, LSC::solarsystem, LSC::solarsystem2, LSC::squad, LSC::warfaction, and LSC::wing.
Referenced by Evacuate(), JoinChannel(), LeaveChannel(), SendMessage(), and SendServerMOTD().
Definition at line 311 of file LSCChannel.cpp.
References IsStaticChannel, m_channelID, m_channelMessageID, m_chars, m_comparisonKey, m_cspa, m_displayName, m_groupMessageID, m_languageRestriction, m_mailingList, m_memberless, m_mode, m_motd, m_ownerID, m_password, and m_temporary.
void LSCChannel::Evacuate | ( | Client * | c | ) |
Definition at line 175 of file LSCChannel.cpp.
References _MakeSenderInfo(), MulticastTarget::characters, EncodeID(), GetTypeString(), m_chars, and sEntityList.
|
inline |
Definition at line 134 of file LSCChannel.h.
References m_channelID.
Referenced by LSCDB::UpdateChannelInfo().
void LSCChannel::GetChannelInfo | ( | int32 * | channelID, |
uint32 * | ownerID, | ||
std::string & | displayName, | ||
std::string & | motd, | ||
std::string & | comparisonKey, | ||
bool * | memberless, | ||
std::string & | password, | ||
bool * | mailingList, | ||
uint32 * | cspa, | ||
uint32 * | temporary | ||
) |
Definition at line 98 of file LSCChannel.cpp.
References m_channelID, m_comparisonKey, m_cspa, m_displayName, m_mailingList, m_memberless, m_motd, m_ownerID, m_password, and m_temporary.
|
inline |
|
inline |
Definition at line 140 of file LSCChannel.h.
References m_comparisonKey.
Referenced by LSCDB::UpdateChannelInfo().
|
inline |
Definition at line 132 of file LSCChannel.h.
References m_cspa.
Referenced by LSCDB::UpdateChannelInfo().
|
inline |
Definition at line 138 of file LSCChannel.h.
References m_displayName.
Referenced by LSCDB::UpdateChannelInfo().
|
inline |
|
inline |
Definition at line 128 of file LSCChannel.h.
References m_mailingList.
Referenced by LSCDB::UpdateChannelInfo().
|
inline |
|
inline |
Definition at line 127 of file LSCChannel.h.
References m_memberless.
Referenced by LSCDB::UpdateChannelInfo().
|
inline |
|
inline |
Definition at line 139 of file LSCChannel.h.
References m_motd.
Referenced by LSCDB::UpdateChannelInfo().
|
inline |
Definition at line 133 of file LSCChannel.h.
References m_ownerID.
Referenced by LSCDB::UpdateChannelInfo().
|
inline |
Definition at line 141 of file LSCChannel.h.
References m_password.
Referenced by LSCDB::UpdateChannelInfo().
|
inline |
|
inline |
const char * LSCChannel::GetTypeString | ( | ) |
Definition at line 396 of file LSCChannel.cpp.
References LSC::alliance, LSC::character, LSC::constellation, LSC::corp, LSC::custom, LSC::fleet, LSC::global, LSC::incursion, m_type, LSC::normal, LSC::region, LSC::solarsystem, LSC::solarsystem2, LSC::squad, LSC::warfaction, and LSC::wing.
Referenced by EncodeID(), Evacuate(), JoinChannel(), LeaveChannel(), SendMessage(), and SendServerMOTD().
bool LSCChannel::IsJoined | ( | uint32 | charID | ) |
bool LSCChannel::JoinChannel | ( | Client * | pClient | ) |
Definition at line 112 of file LSCChannel.cpp.
References _log, _MakeSenderInfo(), Client::ChannelJoined(), MulticastTarget::characters, LSC::chConversationalist, LSC::chCreator, EncodeID(), Client::GetAccountRole(), Client::GetAllianceID(), Client::GetCharacterID(), Client::GetCharName(), Client::GetCorporationID(), Client::GetName(), GetTypeString(), Client::GetWarFactionID(), m_channelID, m_chars, m_displayName, m_ownerID, and sEntityList.
void LSCChannel::LeaveChannel | ( | Client * | pClient | ) |
Definition at line 140 of file LSCChannel.cpp.
References _log, _MakeSenderInfo(), Client::ChannelLeft(), MulticastTarget::characters, EncodeID(), Client::GetCharacterID(), Client::GetName(), GetTypeString(), m_channelID, m_chars, m_displayName, sConsole, and sEntityList.
void LSCChannel::SendMessage | ( | Client * | c, |
const char * | message, | ||
bool | self = false |
||
) |
Definition at line 193 of file LSCChannel.cpp.
References _MakeSenderInfo(), MulticastTarget::characters, EncodeID(), Client::GetCharacterID(), GetTypeString(), m_chars, and sEntityList.
void LSCChannel::SendServerMOTD | ( | Client * | pClient | ) |
Definition at line 215 of file LSCChannel.cpp.
References _FakeSenderInfo(), Client::AutoStop(), EncodeID(), EVEMU_BUILD_DATE, EVEMU_REVISION, GetTypeString(), m_chars, Client::SendNotification(), and sEntityList.
|
inline |
|
inline |
|
inline |
|
inline |
void LSCChannel::UpdateConfig | ( | ) |
Definition at line 251 of file LSCChannel.cpp.
|
protected |
Definition at line 158 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeID(), EncodeStaticChannel(), GetChannelID(), GetChannelInfo(), JoinChannel(), LeaveChannel(), LSCChannel(), and ~LSCChannel().
|
protected |
Definition at line 155 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeStaticChannel(), and GetChMsgID().
|
protected |
Definition at line 165 of file LSCChannel.h.
Referenced by EncodeChannelChars(), EncodeDynamicChannel(), EncodeStaticChannel(), Evacuate(), GetMemberCount(), IsJoined(), JoinChannel(), LeaveChannel(), SendMessage(), and SendServerMOTD().
|
protected |
Definition at line 161 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeStaticChannel(), GetChannelInfo(), GetComparisonKey(), LSCChannel(), and ~LSCChannel().
|
protected |
Definition at line 156 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeStaticChannel(), GetChannelInfo(), and GetCSPA().
|
protected |
Definition at line 159 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeStaticChannel(), GetChannelInfo(), GetDisplayName(), JoinChannel(), LeaveChannel(), LSCChannel(), SetDisplayName(), and ~LSCChannel().
|
protected |
Definition at line 154 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeStaticChannel(), and GetGrpMsgID().
|
protected |
Definition at line 153 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), and EncodeStaticChannel().
|
protected |
Definition at line 151 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeStaticChannel(), GetChannelInfo(), and GetMailingList().
|
protected |
Definition at line 150 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeStaticChannel(), GetChannelInfo(), GetMemberless(), and SetMemberless().
|
protected |
Definition at line 147 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeStaticChannel(), GetMode(), and LSCChannel().
|
protected |
Definition at line 164 of file LSCChannel.h.
Referenced by EncodeChannelMods().
|
protected |
Definition at line 160 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeStaticChannel(), GetChannelInfo(), GetMOTD(), and SetMOTD().
|
protected |
Definition at line 157 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeStaticChannel(), GetChannelInfo(), GetOwnerID(), and JoinChannel().
|
protected |
Definition at line 162 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeStaticChannel(), GetChannelInfo(), GetPassword(), and SetPassword().
|
protected |
Definition at line 144 of file LSCChannel.h.
|
protected |
Definition at line 152 of file LSCChannel.h.
Referenced by EncodeDynamicChannel(), EncodeStaticChannel(), GetChannelInfo(), and GetTemporary().
|
protected |
Definition at line 146 of file LSCChannel.h.
Referenced by EncodeID(), GetType(), and GetTypeString().