KVIrc
4.9.2
DeveloperAPIs
|
Userlist entry management class. More...
#include <KviUserListView.h>
Public Member Functions | |
bool | color (QColor &color) |
Returns the color of the entry. More... | |
void | detachAvatarData () |
short int | flags () const |
Returns the flags of the user. More... | |
KviIrcUserEntry * | globalData () |
Returns the irc user db entry. More... | |
KviUserListEntry (KviUserListView *pParent, const QString &szNick, KviIrcUserEntry *pEntry, short int iFlags, bool bJoinTimeUnknown=true) | |
Constructs the user list entry object. More... | |
KviUserListEntry * | next () |
Returns the next entry in the list. More... | |
const QString & | nick () const |
Returns the nick of the entry. More... | |
void | updateAvatarData () |
Updates the avatar data. More... | |
~KviUserListEntry () | |
Destroys the user list entry object. More... | |
Protected Member Functions | |
void | recalcSize () |
Recalculates the size height for the entry. More... | |
Protected Attributes | |
bool | m_bSelected |
short int | m_iFlags |
int | m_iHeight |
short int | m_iTemperature |
kvi_time_t | m_joinTime |
kvi_time_t | m_lastActionTime |
KviAnimatedPixmap * | m_pAvatarPixmap |
KviIrcUserEntry * | m_pGlobalData |
KviUserListView * | m_pListView |
KviUserListEntry * | m_pNext |
KviUserListEntry * | m_pPrev |
QString | m_szNick |
Private Slots | |
void | avatarDestroyed () |
void | avatarFrameChanged () |
Friends | |
class | KviUserListView |
class | KviUserListViewArea |
Userlist entry management class.
KviUserListEntry::KviUserListEntry | ( | KviUserListView * | pParent, |
const QString & | szNick, | ||
KviIrcUserEntry * | pEntry, | ||
short int | iFlags, | ||
bool | bJoinTimeUnknown = true |
||
) |
Constructs the user list entry object.
pParent | The parent listview |
szNick | The nick of the entry |
pEntry | The entry in the irc user db |
iFlags | The flags of the user |
bJoinTimeUnknown | Whether the join time is unknown or not |
References kvi_time_t, kvi_unixTime, KVI_USERACTION_JOIN, m_bSelected, m_iFlags, m_iTemperature, m_joinTime, m_lastActionTime, m_pAvatarPixmap, m_pGlobalData, m_pListView, m_szNick, recalcSize(), and updateAvatarData().
KviUserListEntry::~KviUserListEntry | ( | ) |
Destroys the user list entry object.
References detachAvatarData(), and m_pAvatarPixmap.
|
privateslot |
References m_pAvatarPixmap.
Referenced by updateAvatarData().
|
privateslot |
References KviUserListView::animatedAvatarUpdated(), and m_pListView.
Referenced by updateAvatarData().
bool KviUserListEntry::color | ( | QColor & | color | ) |
Returns the color of the entry.
color | The color of the entry |
References KviIrcUserEntry::ChanAdmin, KviIrcUserEntry::ChanOwner, KviWindow::connection(), KviIrcConnection::currentNickName(), KviIrcUserDataBase::customColor(), globalData(), KviIrcUserEntry::HalfOp, KviIrcUserDataBase::haveCustomColor(), KVI_OPTION_BOOL, KVI_OPTION_COLOR, KviOption_boolUseDifferentColorForOwnNick, KviOption_colorUserListViewChanAdminForeground, KviOption_colorUserListViewChanOwnerForeground, KviOption_colorUserListViewHalfOpForeground, KviOption_colorUserListViewIrcOpForeground, KviOption_colorUserListViewNormalForeground, KviOption_colorUserListViewOpForeground, KviOption_colorUserListViewOwnForeground, KviOption_colorUserListViewUserOpForeground, KviOption_colorUserListViewVoiceForeground, m_iFlags, KviUserListView::m_pKviWindow, m_pListView, m_szNick, KviIrcUserEntry::Op, KviIrcUserDataBase::registeredUser(), KviIrcConnection::userDataBase(), and KviIrcUserEntry::Voice.
Referenced by KviIrcView::getTextLine().
void KviUserListEntry::detachAvatarData | ( | ) |
References m_pAvatarPixmap.
Referenced by KviUserListView::partInternal(), updateAvatarData(), and ~KviUserListEntry().
|
inline |
|
inline |
Returns the irc user db entry.
Referenced by chan_kvs_fnc_users(), color(), KviUserListView::insertUserEntry(), KviApplication::notifierMessage(), KviUserListViewArea::paintEvent(), KviIrcServerParser::parseLiteralJoin(), and KviQueryWindow::setTarget().
|
inline |
Returns the next entry in the list.
Referenced by chan_kvs_fnc_users(), and KviUserListViewArea::mouseMoveEvent().
|
inline |
Returns the nick of the entry.
Referenced by chan_kvs_fnc_users(), and KviUserListViewArea::keyPressEvent().
|
protected |
Recalculates the size height for the entry.
References KVI_OPTION_BOOL, KviOption_boolDrawGenderIcons, KviOption_boolShowUserChannelIcons, KviOption_boolShowUserChannelState, KviUserListView::m_iFontHeight, m_iHeight, m_pAvatarPixmap, m_pListView, and KviAnimatedPixmap::size().
Referenced by KviUserListView::applyOptions(), KviUserListView::avatarChanged(), and KviUserListEntry().
void KviUserListEntry::updateAvatarData | ( | ) |
Updates the avatar data.
References KviAvatar::animatedPixmap(), KviIrcUserEntry::avatar(), avatarDestroyed(), avatarFrameChanged(), connect(), detachAvatarData(), KviAvatar::forSize(), KVI_OPTION_BOOL, KVI_OPTION_UINT, KviOption_boolDoNotUpscaleAvatars, KviOption_boolEnableAnimatedAvatars, KviOption_boolScaleAvatars, KviOption_boolShowAvatarsInUserlist, KviOption_uintAvatarScaleHeight, KviOption_uintAvatarScaleWidth, m_pAvatarPixmap, m_pGlobalData, KviAvatar::size(), and KviAnimatedPixmap::start().
Referenced by KviUserListView::applyOptions(), KviUserListView::avatarChanged(), and KviUserListEntry().
|
friend |
|
friend |
|
protected |
Referenced by KviUserListView::animatedAvatarUpdated(), KviUserListView::appendSelectedNicknames(), KviUserListView::insertUserEntry(), KviUserListViewArea::keyPressEvent(), KviUserListEntry(), KviUserListViewArea::mouseMoveEvent(), KviUserListViewArea::mousePressEvent(), KviUserListView::nextSelectedNickname(), KviUserListView::nickChange(), KviUserListViewArea::paintEvent(), KviUserListView::partInternal(), and KviUserListView::select().
|
protected |
Referenced by color(), KviUserListView::flags(), KviUserListView::getUserFlag(), KviUserListView::getUserModeLevel(), KviUserListView::insertUserEntry(), KviUserListView::join(), KviUserListEntry(), KviUserListView::nickChange(), KviUserListViewArea::paintEvent(), KviUserListView::partInternal(), and KviUserListView::userStats().
|
protected |
Referenced by KviUserListView::animatedAvatarUpdated(), KviUserListView::applyOptions(), KviUserListView::avatarChanged(), KviUserListView::ensureVisible(), KviUserListView::insertUserEntry(), KviUserListView::itemAt(), KviUserListView::itemVisible(), KviUserListViewArea::mouseMoveEvent(), KviUserListViewArea::paintEvent(), KviUserListView::partInternal(), recalcSize(), and KviUserListViewArea::scrollBarMoved().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by KviUserListView::completeNickBashLike(), KviUserListView::completeNickStandard(), KviUserListEntry(), KviUserListView::maybeTip(), KviUserListView::nickChange(), KviUserListView::partInternal(), updateAvatarData(), KviUserListView::userAction(), KviUserListView::userActionVerifyMask(), and KviUserListView::userStats().
|
protected |
Referenced by avatarFrameChanged(), color(), KviUserListEntry(), and recalcSize().
|
protected |
Referenced by KviUserListView::animatedAvatarUpdated(), KviUserListView::appendSelectedNicknames(), KviUserListView::applyOptions(), KviUserListView::avatarChanged(), KviUserListView::completeNickBashLike(), KviUserListView::completeNickStandard(), KviUserListView::ensureVisible(), KviUserListView::insertUserEntry(), KviUserListView::itemAt(), KviUserListView::itemVisible(), KviUserListViewArea::keyPressEvent(), KviUserListViewArea::mouseMoveEvent(), KviUserListViewArea::mousePressEvent(), KviUserListView::nextSelectedNickname(), KviUserListViewArea::paintEvent(), KviUserListView::partInternal(), KviUserListViewArea::scrollBarMoved(), and KviUserListView::userStats().
|
protected |
|
protected |
Referenced by KviUserListView::appendSelectedNicknames(), color(), KviUserListView::completeNickBashLike(), KviUserListView::completeNickStandard(), KviUserListView::insertUserEntry(), KviUserListEntry(), KviUserListView::maybeTip(), KviUserListView::nextSelectedNickname(), and KviUserListViewArea::paintEvent().