#include <ServerChannelManager.h>
Public Member Functions | |
| DestinationEntry (unsigned int destinationId) | |
| unsigned int | getDestinationId () |
| bool | hasChannel (const std::string &channel) |
| void | addChannel (const std::string &channel, unsigned int localId, bool current) |
| void | removeChannel (const std::string &channel, unsigned int localId) |
| bool | hasLocalId (unsigned int localId) |
| void | addLocalId (unsigned int localId) |
| void | removeLocalId (unsigned int localId) |
| void | setMessageCount (unsigned int count) |
| unsigned int | getMessageCount () |
| time_t | getMuteTime () |
| void | setMuteTime (time_t t) |
| void | getLocalIds (const std::string &channel, std::list< unsigned int > &ids) |
| std::map< unsigned int, DestinationLocalEntry > & | getLocalEntries () |
Protected Member Functions | |
| void | updateChannels () |
Protected Attributes | |
| time_t | muteTime_ |
| unsigned int | messageCount_ |
| unsigned int | destinationId_ |
| std::set< std::string > | channels_ |
| std::map< unsigned int, DestinationLocalEntry > | localEntries_ |
Definition at line 77 of file ServerChannelManager.h.
| ServerChannelManager::DestinationEntry::DestinationEntry | ( | unsigned int | destinationId | ) |
Definition at line 55 of file ServerChannelManager.cpp.
| unsigned int ServerChannelManager::DestinationEntry::getDestinationId | ( | ) | [inline] |
Definition at line 82 of file ServerChannelManager.h.
References destinationId_.
Referenced by ServerChannelManager::actualSend(), and ServerChannelManager::simulate().
| bool ServerChannelManager::DestinationEntry::hasChannel | ( | const std::string & | channel | ) |
Definition at line 62 of file ServerChannelManager.cpp.
References channels_.
Referenced by ServerChannelManager::actualSend(), and ServerChannelManager::processMessage().
| void ServerChannelManager::DestinationEntry::addChannel | ( | const std::string & | channel, | |
| unsigned int | localId, | |||
| bool | current | |||
| ) |
Definition at line 67 of file ServerChannelManager.cpp.
References hasLocalId(), localEntries_, and updateChannels().
Referenced by ServerChannelManager::joinClient(), and ServerChannelManager::refreshDestination().
| void ServerChannelManager::DestinationEntry::removeChannel | ( | const std::string & | channel, | |
| unsigned int | localId | |||
| ) |
Definition at line 85 of file ServerChannelManager.cpp.
References hasLocalId(), localEntries_, and updateChannels().
Referenced by ServerChannelManager::joinClient(), and ServerChannelManager::refreshDestination().
| bool ServerChannelManager::DestinationEntry::hasLocalId | ( | unsigned int | localId | ) |
Definition at line 108 of file ServerChannelManager.cpp.
References localEntries_.
Referenced by addChannel(), addLocalId(), ServerChannelManager::deregisterClient(), ServerChannelManager::joinClient(), ServerChannelManager::registerClient(), removeChannel(), and removeLocalId().
| void ServerChannelManager::DestinationEntry::addLocalId | ( | unsigned int | localId | ) |
Definition at line 113 of file ServerChannelManager.cpp.
References hasLocalId(), localEntries_, and updateChannels().
Referenced by ServerChannelManager::registerClient().
| void ServerChannelManager::DestinationEntry::removeLocalId | ( | unsigned int | localId | ) |
Definition at line 120 of file ServerChannelManager.cpp.
References hasLocalId(), localEntries_, and updateChannels().
Referenced by ServerChannelManager::deregisterClient().
| void ServerChannelManager::DestinationEntry::setMessageCount | ( | unsigned int | count | ) | [inline] |
Definition at line 92 of file ServerChannelManager.h.
References messageCount_.
Referenced by ServerChannelManager::processMessage(), and ServerChannelManager::simulate().
| unsigned int ServerChannelManager::DestinationEntry::getMessageCount | ( | ) | [inline] |
Definition at line 93 of file ServerChannelManager.h.
References messageCount_.
Referenced by ServerChannelManager::processMessage(), and ServerChannelManager::simulate().
| time_t ServerChannelManager::DestinationEntry::getMuteTime | ( | ) | [inline] |
Definition at line 95 of file ServerChannelManager.h.
References muteTime_.
Referenced by ServerChannelManager::processMessage(), and ServerChannelManager::simulate().
| void ServerChannelManager::DestinationEntry::setMuteTime | ( | time_t | t | ) | [inline] |
Definition at line 96 of file ServerChannelManager.h.
References muteTime_.
Referenced by ServerChannelManager::simulate().
| void ServerChannelManager::DestinationEntry::getLocalIds | ( | const std::string & | channel, | |
| std::list< unsigned int > & | ids | |||
| ) |
Definition at line 93 of file ServerChannelManager.cpp.
References ServerChannelManager::DestinationLocalEntry::getChannels(), and localEntries_.
Referenced by ServerChannelManager::actualSend().
| std::map<unsigned int, DestinationLocalEntry>& ServerChannelManager::DestinationEntry::getLocalEntries | ( | ) | [inline] |
Definition at line 99 of file ServerChannelManager.h.
References localEntries_.
Referenced by ServerChannelManager::refreshDestination().
| void ServerChannelManager::DestinationEntry::updateChannels | ( | ) | [protected] |
Definition at line 127 of file ServerChannelManager.cpp.
References channels_, ServerChannelManager::DestinationLocalEntry::getChannels(), and localEntries_.
Referenced by addChannel(), addLocalId(), removeChannel(), and removeLocalId().
time_t ServerChannelManager::DestinationEntry::muteTime_ [protected] |
Definition at line 102 of file ServerChannelManager.h.
Referenced by getMuteTime(), and setMuteTime().
unsigned int ServerChannelManager::DestinationEntry::messageCount_ [protected] |
Definition at line 103 of file ServerChannelManager.h.
Referenced by getMessageCount(), and setMessageCount().
unsigned int ServerChannelManager::DestinationEntry::destinationId_ [protected] |
std::set<std::string> ServerChannelManager::DestinationEntry::channels_ [protected] |
Definition at line 105 of file ServerChannelManager.h.
Referenced by hasChannel(), and updateChannels().
std::map<unsigned int, DestinationLocalEntry> ServerChannelManager::DestinationEntry::localEntries_ [protected] |
Definition at line 106 of file ServerChannelManager.h.
Referenced by addChannel(), addLocalId(), getLocalEntries(), getLocalIds(), hasLocalId(), removeChannel(), removeLocalId(), and updateChannels().
1.5.3