KVIrc
4.9.2
DeveloperAPIs
|
#include <KviRegisteredUserDataBase.h>
Signals | |
void | databaseCleared () |
void | userAdded (const QString &) |
void | userChanged (const QString &) |
void | userRemoved (const QString &) |
Private Attributes | |
KviPointerHashTable< QString, KviRegisteredUserGroup > * | m_pGroupDict |
KviPointerHashTable< QString, KviRegisteredUserMaskList > * | m_pMaskDict |
KviPointerHashTable< QString, KviRegisteredUser > * | m_pUserDict |
KviRegisteredUserMaskList * | m_pWildMaskList |
KviRegisteredUserDataBase::KviRegisteredUserDataBase | ( | ) |
KviRegisteredUserDataBase::~KviRegisteredUserDataBase | ( | ) |
References databaseCleared(), m_pGroupDict, m_pMaskDict, m_pUserDict, and m_pWildMaskList.
KviRegisteredUserGroup * KviRegisteredUserDataBase::addGroup | ( | const QString & | name | ) |
KviRegisteredUser * KviRegisteredUserDataBase::addMask | ( | KviRegisteredUser * | u, |
KviIrcMask * | mask | ||
) |
References KviRegisteredUser::addMask(), append_mask_to_list(), KviPointerHashTable< Key, T >::find(), KviPointerList< T >::first(), KviIrcMask::hasWildNick(), KVI_ASSERT, l, m, m_pMaskDict, m_pUserDict, m_pWildMaskList, KviRegisteredUser::name(), KviPointerList< T >::next(), KviIrcMask::nick(), and KviPointerList< T >::setAutoDelete().
Referenced by RegistrationWizard::accept(), copyFrom(), RegisteredUsersDialog::importClicked(), load(), RegisteredUserEntryDialog::okClicked(), reguser_kvs_cmd_add(), and reguser_kvs_cmd_addmask().
KviRegisteredUser * KviRegisteredUserDataBase::addUser | ( | const QString & | name | ) |
void KviRegisteredUserDataBase::copyFrom | ( | KviRegisteredUserDataBase * | db | ) |
References addGroup(), addMask(), KviPointerHashTable< Key, T >::clear(), KviPointerList< T >::clear(), KviPointerHashTableIterator< Key, T >::current(), KviPointerHashTableIterator< Key, T >::currentKey(), databaseCleared(), getUser(), l, m, KviRegisteredUser::m_bIgnoreEnabled, KviRegisteredUser::m_iIgnoreFlags, m_pGroupDict, m_pMaskDict, m_pUserDict, m_pWildMaskList, KviRegisteredUser::setGroup(), KviRegisteredUser::setProperty(), and u.
Referenced by RegisteredUsersDialog::okClicked(), and RegisteredUsersDialog::RegisteredUsersDialog().
|
signal |
Referenced by copyFrom(), and ~KviRegisteredUserDataBase().
KviRegisteredUserMask * KviRegisteredUserDataBase::findExactMask | ( | const KviIrcMask & | mask | ) |
References KviPointerList< T >::first(), l, m, m_pMaskDict, m_pWildMaskList, KviPointerList< T >::next(), and KviIrcMask::nick().
Referenced by findUserWithMask(), and removeMask().
KviRegisteredUserMask * KviRegisteredUserDataBase::findMatchingMask | ( | const QString & | nick, |
const QString & | user, | ||
const QString & | host | ||
) |
References KviPointerList< T >::first(), l, m, m_pMaskDict, m_pWildMaskList, and KviPointerList< T >::next().
Referenced by findMatchingUser(), and KviConsoleWindow::getUserTipText().
KviRegisteredUser * KviRegisteredUserDataBase::findMatchingUser | ( | const QString & | nick, |
const QString & | user, | ||
const QString & | host | ||
) |
References findMatchingMask(), m, and KviRegisteredUserMask::user().
Referenced by KviIrcUserDataBase::registeredUser(), reguser_kvs_fnc_match(), and reguser_kvs_fnc_matchProperty().
|
inline |
Referenced by RegistrationWizard::accept(), KviIsOnNotifyListManager::doMatchUser(), KviWatchNotifyListManager::doMatchUser(), RegisteredUserEntryDialog::okClicked(), reguser_kvs_cmd_add(), reguser_kvs_cmd_addmask(), reguser_kvs_cmd_setIgnoreEnabled(), reguser_kvs_cmd_setIgnoreFlags(), reguser_kvs_cmd_setproperty(), reguser_kvs_fnc_getIgnoreFlags(), reguser_kvs_fnc_isIgnoreEnabled(), reguser_kvs_fnc_mask(), and reguser_kvs_fnc_property().
KviRegisteredUser * KviRegisteredUserDataBase::findUserWithMask | ( | const KviIrcMask & | mask | ) |
References findExactMask(), m, and KviRegisteredUserMask::user().
Referenced by reguser_kvs_fnc_exactMatch().
KviRegisteredUser * KviRegisteredUserDataBase::getUser | ( | const QString & | name | ) |
|
inline |
void KviRegisteredUserDataBase::load | ( | const QString & | filename | ) |
References __tr, addGroup(), addMask(), addUser(), KviPointerHashTableIterator< Key, T >::current(), KviPointerHashTableIterator< Key, T >::currentKey(), KviConfigurationFile::dict(), KviQString::equalCI(), KviQString::equalCSN(), KviPointerHashTable< Key, T >::find(), m_pGroupDict, KviConfigurationFile::Read, KviConfigurationFile::readBoolEntry(), KviConfigurationFile::readIntEntry(), KviRegisteredUser::setGroup(), KviConfigurationFile::setGroup(), KviRegisteredUser::setIgnoreEnabled(), KviRegisteredUser::setIgnoreFlags(), KviRegisteredUser::setProperty(), and u.
Referenced by KviApplication::setup().
bool KviRegisteredUserDataBase::removeGroup | ( | const QString & | name | ) |
References m_pGroupDict, and KviPointerHashTable< Key, T >::remove().
Referenced by RegisteredUsersDialog::removeClicked().
bool KviRegisteredUserDataBase::removeMask | ( | const KviIrcMask & | mask | ) |
References findExactMask(), m, KviRegisteredUserMask::mask(), and removeMaskByPointer().
Referenced by RegistrationWizard::accept(), RegisteredUserEntryDialog::okClicked(), reguser_kvs_cmd_addmask(), and reguser_kvs_cmd_delmask().
bool KviRegisteredUserDataBase::removeMaskByPointer | ( | KviIrcMask * | mask | ) |
References KviPointerList< T >::count(), KviPointerList< T >::first(), KviIrcMask::hasWildNick(), l, m, m_pMaskDict, m_pWildMaskList, KviPointerList< T >::next(), KviIrcMask::nick(), KviPointerList< T >::removeRef(), and userChanged().
Referenced by removeMask(), and removeUser().
bool KviRegisteredUserDataBase::removeUser | ( | const QString & | name | ) |
References KviPointerHashTable< Key, T >::find(), KviPointerList< T >::first(), m_pUserDict, KviRegisteredUser::maskList(), KviPointerHashTable< Key, T >::remove(), removeMaskByPointer(), u, and userRemoved().
Referenced by RegisteredUserEntryDialog::okClicked(), reguser_kvs_cmd_add(), reguser_kvs_cmd_remove(), and RegisteredUsersDialog::removeClicked().
void KviRegisteredUserDataBase::save | ( | const QString & | filename | ) |
References KviConfigurationFile::clear(), KviPointerHashTableIterator< Key, T >::current(), KviPointerHashTableIterator< Key, T >::currentKey(), KviPointerList< T >::first(), KviRegisteredUser::group(), i, KviRegisteredUser::ignoreEnabled(), KviRegisteredUser::ignoreFlags(), m_pGroupDict, m_pUserDict, KviRegisteredUser::maskList(), KviRegisteredUserGroup::name(), KviRegisteredUser::name(), KviPointerList< T >::next(), KviIrcMask::NickUserHost, KviConfigurationFile::preserveEmptyGroups(), KviRegisteredUser::propertyDict(), KviConfigurationFile::setGroup(), KviConfigurationFile::Write, and KviConfigurationFile::writeEntry().
Referenced by KviApplication::saveRegisteredUsers().
|
signal |
Referenced by addUser().
|
signal |
Referenced by removeMaskByPointer().
|
inline |
Referenced by KviStupidNotifyListManager::buildNickList(), KviIsOnNotifyListManager::buildRegUserDict(), KviWatchNotifyListManager::buildRegUserDict(), RegisteredUsersDialog::editGroup(), RegisteredUsersDialog::fillList(), KviNotifyListManager::notifyOffLine(), KviNotifyListManager::notifyOnLine(), reguser_kvs_cmd_showlist(), and reguser_kvs_fnc_list().
|
signal |
Referenced by removeUser().
|
private |
Referenced by addGroup(), copyFrom(), KviRegisteredUserDataBase(), load(), removeGroup(), save(), and ~KviRegisteredUserDataBase().
|
private |
|
private |
Referenced by addMask(), addUser(), copyFrom(), getUser(), KviRegisteredUserDataBase(), removeUser(), save(), and ~KviRegisteredUserDataBase().
|
private |