#include <UniqueIdStore.h>
Public Member Functions | |
| UniqueIdStore () | |
| virtual | ~UniqueIdStore () |
| bool | loadStore () |
| bool | saveStore () |
| const char * | getUniqueId (unsigned int ip) |
| bool | saveUniqueId (unsigned int ip, const char *id, const char *published) |
| std::list< Entry > & | getIds () |
Protected Attributes | |
| std::list< Entry > | ids_ |
Classes | |
| class | Entry |
Definition at line 27 of file UniqueIdStore.h.
| UniqueIdStore::UniqueIdStore | ( | ) |
Definition at line 29 of file UniqueIdStore.cpp.
| UniqueIdStore::~UniqueIdStore | ( | ) | [virtual] |
Definition at line 34 of file UniqueIdStore.cpp.
| bool UniqueIdStore::loadStore | ( | ) |
Definition at line 38 of file UniqueIdStore.cpp.
References S3D::dialogMessage(), XMLNode::failChildren(), file, S3D::formatStringBuffer(), XMLNode::getNamedChild(), XMLFile::getParserError(), XMLFile::getRootNode(), S3D::getSettingsFile(), UniqueIdStore::Entry::id, ids_, UniqueIdStore::Entry::ip, UniqueIdStore::Entry::published, and XMLFile::readFile().
Referenced by ConnectDialog::getIdStore(), and refreshIdentControls().
| bool UniqueIdStore::saveStore | ( | ) |
Definition at line 76 of file UniqueIdStore.cpp.
References XMLNode::addChild(), S3D::getSettingsFile(), UniqueIdStore::Entry::id, ids_, UniqueIdStore::Entry::published, and XMLNode::writeToFile().
Referenced by saveUniqueId().
| const char * UniqueIdStore::getUniqueId | ( | unsigned int | ip | ) |
Definition at line 98 of file UniqueIdStore.cpp.
References UniqueIdStore::Entry::id, ids_, and UniqueIdStore::Entry::ip.
Referenced by ClientConnectionAuthHandler::sendAuth().
| bool UniqueIdStore::saveUniqueId | ( | unsigned int | ip, | |
| const char * | id, | |||
| const char * | published | |||
| ) |
Definition at line 117 of file UniqueIdStore.cpp.
References S3D::formatStringBuffer(), NetInterface::getIpName(), UniqueIdStore::Entry::id, ids_, OptionsDisplay::instance(), UniqueIdStore::Entry::ip, Logger::log(), UniqueIdStore::Entry::published, saveStore(), and LangStringUtil::strcmp().
| std::list<Entry>& UniqueIdStore::getIds | ( | ) | [inline] |
Definition at line 48 of file UniqueIdStore.h.
References ids_.
Referenced by refreshIdentControls().
std::list<Entry> UniqueIdStore::ids_ [protected] |
Definition at line 51 of file UniqueIdStore.h.
Referenced by getIds(), getUniqueId(), loadStore(), saveStore(), and saveUniqueId().
1.5.3