KVIrc  4.9.2
DeveloperAPIs
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
KviUserListView Class Reference

User list view management class. More...

#include <KviUserListView.h>

+ Inheritance diagram for KviUserListView:

Public Slots

void animatedAvatarUpdated (KviUserListEntry *e)
 Called when an animated avatar is updated (every frame) More...
 

Public Member Functions

void appendSelectedNicknames (QString &szBuffer)
 Appends the selected nicknames to the buffer. More...
 
void applyOptions ()
 Applies the options. More...
 
bool avatarChanged (const QString &szNick)
 Returns true if the avatar of a user is changed. More...
 
int chanAdminCount ()
 Returns the number of chan admins. More...
 
int chanOwnerCount ()
 Returns the number of chan owners. More...
 
void completeNickBashLike (const QString &szBegin, KviPointerList< QString > *pList, bool bAppendMask)
 Completes the nick in Bash-like behaviour. More...
 
bool completeNickStandard (const QString &szBegin, const QString &szSkipAfter, QString &szBuffer, bool bAppendMask)
 Completes the nick in normal behaviour. More...
 
unsigned int count ()
 Returns the number of the entries in the userlist. More...
 
void emitDoubleClick ()
 Emits the double click signal. More...
 
void emitRightClick ()
 Emits the right click signal. More...
 
void enableUpdates (bool bEnable)
 Enables the updates on the view list area. More...
 
void ensureVisible (const QString &szNick)
 Ensures that a nickname is visible. More...
 
KviPointerHashTable< QString,
KviUserListEntry > * 
entryDict ()
 Returns the entry in the list. More...
 
KviUserListEntryfindEntry (const QString &szNick)
 Searches an entry in the userlist. More...
 
KviUserListEntryfirstItem ()
 Returns the first item of the user list. More...
 
QString * firstSelectedNickname ()
 Returns the first selected nickname in the list. More...
 
int flags (const QString &szNick)
 Returns the flags of a user. More...
 
char getUserFlag (KviUserListEntry *pEntry)
 Returns the flags of a user. More...
 
char getUserFlag (const QString &szNick)
 Returns the flags of a user. More...
 
kvi_time_t getUserJoinTime (const QString &szNick)
 Returns the join time of a user. More...
 
kvi_time_t getUserLastActionTime (const QString &szNick)
 Returns the time of the last action of a user. More...
 
int getUserModeLevel (const QString &szNick)
 Returns the level of the user mode. More...
 
int halfOpCount ()
 Returns the number of half operators. More...
 
int ircOpCount ()
 Returns the number of ircops. More...
 
bool isChanAdmin (const QString &szNick, bool bAtLeast=false)
 Returns true if the user is a chan admin. More...
 
bool isChanOwner (const QString &szNick, bool bAtLeast=false)
 Returns true if the user is a chan owner. More...
 
bool isHalfOp (const QString &szNick, bool bAtLeast=false)
 Returns true if the user is an half operator. More...
 
bool isOp (const QString &szNick, bool bAtLeast=false)
 Returns true if the user is an operator. More...
 
bool isUserOp (const QString &szNick, bool bAtLeast=false)
 Returns true if the user is a user operator. More...
 
bool isVoice (const QString &szNick, bool bAtLeast=false)
 Returns true if the user is a voice. More...
 
KviUserListEntryitemAt (const QPoint &pnt, QRect *pRect=0)
 Returns the item at the given position. More...
 
bool itemVisible (KviUserListEntry *pEntry)
 Returns true if the item in the entry is visible. More...
 
KviUserListEntryjoin (const QString &szNick, const QString &szUser=QString(), const QString &szHost=QString(), int iFlags=0)
 Called when a user joins the channel. More...
 
 KviUserListView (QWidget *pParent, KviWindowToolPageButton *pButton, KviIrcUserDataBase *pDb, KviWindow *pWnd, int iDictSize=5, const QString &szTextLabel=QString(), const char *pName="userslistview")
 Constructs the user list view object. More...
 
QString * nextSelectedNickname ()
 Returns the next selected nickname in the list. More...
 
bool nickChange (const QString &szOldNick, const QString &szNewNick)
 Changes a nickname. More...
 
int opCount ()
 Returns the number of operators. More...
 
bool part (const QString &szNick)
 Check if a user parts from a channel. More...
 
void partAll ()
 Parts from all channels. More...
 
void partAllButOne (const QString &szWhoNot)
 Parts from all channels but the given one. More...
 
void prependUserFlag (const QString &szNick, QString &szBuffer)
 Prepends the user flags before the nickname. More...
 
void select (const QString &szNick)
 Selects a nickname in the list. More...
 
int selectedCount ()
 Returns the number of selected entries in the userlist. More...
 
bool setChanAdmin (const QString &szNick, bool bChanAdmin)
 Sets the chan admin mode. More...
 
bool setChanOwner (const QString &szNick, bool bChanOwner)
 Sets the chan owner mode. More...
 
bool setHalfOp (const QString &szNick, bool bHalfOp)
 Sets the half operator mode. More...
 
void setMaskEntries (char cType, int iNum)
 Sets the mask entries number for a channel. More...
 
bool setOp (const QString &szNick, bool bOp)
 Sets the operator mode. More...
 
bool setUserOp (const QString &szNick, bool bUserOp)
 Sets the user operator mode. More...
 
bool setVoice (const QString &szNick, bool bVoice)
 Sets the voice mode. More...
 
void updateArea ()
 Updates the list view area. More...
 
void userAction (KviIrcMask *pUser, int iActionTemperature)
 Verifies a user action. More...
 
void userAction (const QString &szNick, const QString &szUser, const QString &szHost, int iActionTemperature)
 Verifies a user action. More...
 
void userAction (const QString &szNick, int iActionTemperature)
 Verifies a user action. More...
 
bool userActionVerifyMask (const QString &szNick, const QString &szUser, const QString &szHost, int iActionTemperature, QString &szOldUser, QString &szOldHost)
 Verifies the mask for a user action. More...
 
int userOpCount ()
 Returns the number of user operators. More...
 
void userStats (KviUserListViewUserStats *pStats)
 Gets the user statistics and store them in the user stats pointer. More...
 
int voiceCount ()
 Returns the number of voices. More...
 
KviWindowwindow ()
 Returns the window associated to the userlist. More...
 
 ~KviUserListView ()
 Destroys the user list view object. More...
 
- Public Member Functions inherited from KviWindowToolWidget
 KviWindowToolWidget (QWidget *pParent, KviWindowToolPageButton *pButton)
 
 ~KviWindowToolWidget ()
 

Protected Member Functions

void insertUserEntry (const QString &szNick, KviUserListEntry *pEntry)
 Inserts a user into the users list. More...
 
void maybeTip (KviUserListToolTip *pTip, const QPoint &pnt)
 Checks if user activated tooltips over the userlist. More...
 
bool partInternal (const QString &szNick, bool bRemove=true)
 Called when a user parts a channel. More...
 
void removeAllEntries ()
 Clears all channels entries. More...
 
virtual void resizeEvent (QResizeEvent *e)
 
void setUserDataBase (KviIrcUserDataBase *pDb)
 Sets the user database. More...
 
void triggerUpdate ()
 Updates the view list. More...
 
void updateScrollBarRange ()
 Updates the scrollbar range. More...
 
void updateUsersLabel ()
 Updates the users label. More...
 

Protected Attributes

int m_ibEntries
 
int m_iChanAdminCount
 
int m_iChanOwnerCount
 
int m_ieEntries
 
int m_iFontHeight
 
int m_iHalfOpCount
 
int m_iIEntries
 
int m_iIrcOpCount
 
int m_iOpCount
 
int m_iSelectedCount
 
int m_iTotalHeight
 
int m_iUserOpCount
 
int m_iVoiceCount
 
KviPointerHashTable< QString,
KviUserListEntry > * 
m_pEntryDict
 
KviUserListEntrym_pHeadItem
 
KviIrcUserDataBasem_pIrcUserDataBase
 
KviUserListEntrym_pIterator
 
KviWindowm_pKviWindow
 
KviUserListEntrym_pTailItem
 
KviUserListToolTipm_pToolTip
 
KviUserListEntrym_pTopItem
 
QLabel * m_pUsersLabel
 
KviUserListViewAream_pViewArea
 
- Protected Attributes inherited from KviWindowToolWidget
KviWindowToolPageButtonm_pButton
 

Friends

class KviChannelWindow
 
class KviConsoleWindow
 
class KviQueryWindow
 
class KviUserListEntry
 
class KviUserListToolTip
 
class KviUserListViewArea
 

Detailed Description

User list view management class.

Constructor & Destructor Documentation

KviUserListView::KviUserListView ( QWidget *  pParent,
KviWindowToolPageButton pButton,
KviIrcUserDataBase pDb,
KviWindow pWnd,
int  iDictSize = 5,
const QString &  szTextLabel = QString(),
const char *  pName = "userslistview" 
)

Constructs the user list view object.

Parameters
pParentThe parent widget
pButtonThe tool page button
pDbThe irc users database
pWndThe window associated to the userlist
iDictSizeThe size of the internal database
szTextLabelThe label for the tooltip
pNameThe name of the users list
Returns
KviUserListView

References KviTalToolTip::add(), applyOptions(), KviUserListToolTip, KviUserListViewArea, m_ibEntries, m_iChanAdminCount, m_iChanOwnerCount, m_ieEntries, m_iHalfOpCount, m_iIEntries, m_iOpCount, m_iSelectedCount, m_iTotalHeight, m_iUserOpCount, m_iVoiceCount, m_pEntryDict, m_pHeadItem, m_pIrcUserDataBase, m_pKviWindow, m_pTailItem, m_pToolTip, m_pTopItem, m_pUsersLabel, m_pViewArea, and KviPointerHashTable< Key, T >::setAutoDelete().

KviUserListView::~KviUserListView ( )

Destroys the user list view object.

References m_pEntryDict, m_pToolTip, m_pUsersLabel, m_pViewArea, and removeAllEntries().

Member Function Documentation

void KviUserListView::animatedAvatarUpdated ( KviUserListEntry e)
slot
void KviUserListView::appendSelectedNicknames ( QString &  szBuffer)

Appends the selected nicknames to the buffer.

Parameters
szBufferThe buffer to use
Returns
void

References KviUserListEntry::m_bSelected, m_pHeadItem, KviUserListEntry::m_pNext, and KviUserListEntry::m_szNick.

Referenced by emitDoubleClick(), and emitRightClick().

void KviUserListView::applyOptions ( )
bool KviUserListView::avatarChanged ( const QString &  szNick)
int KviUserListView::chanAdminCount ( )
inline

Returns the number of chan admins.

Returns
int

Referenced by KviChannelWindow::chanAdminCount().

int KviUserListView::chanOwnerCount ( )
inline

Returns the number of chan owners.

Returns
int

Referenced by KviChannelWindow::chanOwnerCount().

void KviUserListView::completeNickBashLike ( const QString &  szBegin,
KviPointerList< QString > *  pList,
bool  bAppendMask 
)

Completes the nick in Bash-like behaviour.

It looks for the letters typed, if it found only a result, it completes the nickname; if it found more than a result, it will wrap will all the possible results

Parameters
szBeginThe starting of the nick
pListThe list of nicknames
bAppendMaskWhether to append the complete mask
Returns
void

References KviPointerList< T >::append(), KviQString::equalCIN(), KviIrcUserEntry::host(), KviUserListEntry::m_pGlobalData, m_pHeadItem, KviUserListEntry::m_pNext, KviUserListEntry::m_szNick, and KviIrcUserEntry::user().

Referenced by KviInputEditor::completion().

bool KviUserListView::completeNickStandard ( const QString &  szBegin,
const QString &  szSkipAfter,
QString &  szBuffer,
bool  bAppendMask 
)

Completes the nick in normal behaviour.

It looks for the letters typed, if it found at least a result, it cycles through the completed nicknames

Parameters
szBeginThe starting of the nick
szSkipAfterThe string to skip after the nick is completed
szBufferThe buffer where to store the data
bAppendMaskWhether to append the complete mask
Returns
bool

References KviQString::cmpCIN(), KviQString::equalCI(), KviIrcUserEntry::host(), KviUserListEntry::m_pGlobalData, m_pHeadItem, KviUserListEntry::m_pNext, KviUserListEntry::m_szNick, and KviIrcUserEntry::user().

Referenced by KviInputEditor::standardNickCompletion().

unsigned int KviUserListView::count ( )
inline

Returns the number of the entries in the userlist.

Returns
unsigned int

Referenced by KviChannelWindow::count().

void KviUserListView::emitDoubleClick ( )
void KviUserListView::emitRightClick ( )
void KviUserListView::enableUpdates ( bool  bEnable)

Enables the updates on the view list area.

Parameters
bEnableWhether or not to enable updates
Returns
void

References m_pViewArea, and triggerUpdate().

Referenced by KviChannelWindow::enableUserListUpdates(), KviChannelWindow::setDeadChan(), KviQueryWindow::setDeadQuery(), and KviChannelWindow::~KviChannelWindow().

void KviUserListView::ensureVisible ( const QString &  szNick)
KviPointerHashTable<QString, KviUserListEntry>* KviUserListView::entryDict ( )
inline

Returns the entry in the list.

Returns
KviPointerHashTable<QString,KviUserListEntry> *
KviUserListEntry* KviUserListView::findEntry ( const QString &  szNick)
inline
KviUserListEntry* KviUserListView::firstItem ( )
inline

Returns the first item of the user list.

Returns
KviUserListEntry *

Referenced by chan_kvs_fnc_users().

QString * KviUserListView::firstSelectedNickname ( )

Returns the first selected nickname in the list.

Returns
QString *

Referenced by KviChannelWindow::firstSelectedNickname().

int KviUserListView::flags ( const QString &  szNick)

Returns the flags of a user.

Parameters
szNickThe nickname of the user
Returns
int

References KviPointerHashTable< Key, T >::find(), KviUserListEntry::m_iFlags, and m_pEntryDict.

char KviUserListView::getUserFlag ( KviUserListEntry pEntry)
char KviUserListView::getUserFlag ( const QString &  szNick)
inline

Returns the flags of a user.

Parameters
szNickThe nickname of the user
Returns
char

References getUserFlag().

Referenced by getUserFlag().

kvi_time_t KviUserListView::getUserJoinTime ( const QString &  szNick)

Returns the join time of a user.

Parameters
szNickThe nickname of the user
Returns
kvi_time_t

References KviPointerHashTable< Key, T >::find(), kvi_time_t, KviUserListEntry::m_joinTime, and m_pEntryDict.

Referenced by chan_kvs_fnc_userjointime().

kvi_time_t KviUserListView::getUserLastActionTime ( const QString &  szNick)

Returns the time of the last action of a user.

Parameters
szNickThe nickname of the user
Returns
kvi_time_t

References KviPointerHashTable< Key, T >::find(), kvi_time_t, KviUserListEntry::m_lastActionTime, and m_pEntryDict.

Referenced by chan_kvs_fnc_userlastactiontime().

int KviUserListView::getUserModeLevel ( const QString &  szNick)

Returns the level of the user mode.

Levels:

  • chanowner: 60
  • chanadmin: 50
  • op: 40
  • halfop: 30
  • voice: 20
  • userop: 10
    Parameters
    szNickThe nickname of the user to get level
    Returns
    int

References KviIrcUserEntry::ChanAdmin, KviIrcUserEntry::ChanOwner, KviPointerHashTable< Key, T >::find(), KviIrcUserEntry::HalfOp, KviUserListEntry::m_iFlags, m_pEntryDict, KviIrcUserEntry::ModeMask, KviIrcUserEntry::Op, KviIrcUserEntry::UserOp, and KviIrcUserEntry::Voice.

Referenced by chan_kvs_fnc_usermodelevel().

int KviUserListView::halfOpCount ( )
inline

Returns the number of half operators.

Returns
int

Referenced by KviChannelWindow::halfOpCount().

void KviUserListView::insertUserEntry ( const QString &  szNick,
KviUserListEntry pEntry 
)
protected
int KviUserListView::ircOpCount ( )
inline

Returns the number of ircops.

Returns
int
bool KviUserListView::isChanAdmin ( const QString &  szNick,
bool  bAtLeast = false 
)

Returns true if the user is a chan admin.

Parameters
szNickThe nick to moderate
bAtLeastWhether the user is at least a chan admin
Returns
bool

Referenced by KviChannelWindow::isChanAdmin().

bool KviUserListView::isChanOwner ( const QString &  szNick,
bool  bAtLeast = false 
)

Returns true if the user is a chan owner.

Parameters
szNickThe nick to moderate
bAtLeastWhether the user is at least a chan owner
Returns
bool

Referenced by KviChannelWindow::isChanOwner().

bool KviUserListView::isHalfOp ( const QString &  szNick,
bool  bAtLeast = false 
)

Returns true if the user is an half operator.

Parameters
szNickThe nick to moderate
bAtLeastWhether the user is at least an half operator
Returns
bool

Referenced by KviChannelWindow::isHalfOp().

bool KviUserListView::isOp ( const QString &  szNick,
bool  bAtLeast = false 
)

Returns true if the user is an operator.

Parameters
szNickThe nick to moderate
bAtLeastWhether the user is at least an operator
Returns
bool

Referenced by KviChannelWindow::isOp().

bool KviUserListView::isUserOp ( const QString &  szNick,
bool  bAtLeast = false 
)

Returns true if the user is a user operator.

Parameters
szNickThe nick to moderate
bAtLeastWhether the user is at least a user operator
Returns
bool

Referenced by KviChannelWindow::isUserOp().

bool KviUserListView::isVoice ( const QString &  szNick,
bool  bAtLeast = false 
)

Returns true if the user is a voice.

Parameters
szNickThe nick to moderate
bAtLeastWhether the user is at least a voice
Returns
bool

Referenced by KviChannelWindow::isVoice().

KviUserListEntry * KviUserListView::itemAt ( const QPoint &  pnt,
QRect *  pRect = 0 
)

Returns the item at the given position.

Parameters
pntThe point where to search
pRectThe rectangle where to search
Returns
KviUserListEntry *

References KVI_USERLIST_BORDER_WIDTH, KviUserListEntry::m_iHeight, KviUserListViewArea::m_iTopItemOffset, KviUserListEntry::m_pNext, m_pTopItem, and m_pViewArea.

Referenced by maybeTip(), KviUserListViewArea::mouseMoveEvent(), and KviUserListViewArea::mousePressEvent().

bool KviUserListView::itemVisible ( KviUserListEntry pEntry)

Returns true if the item in the entry is visible.

Parameters
pEntryThe entry in the user list
Returns
bool

References KVI_USERLIST_BORDER_WIDTH, KviUserListEntry::m_iHeight, KviUserListViewArea::m_iTopItemOffset, KviUserListEntry::m_pNext, m_pTopItem, and m_pViewArea.

Referenced by userAction(), and userActionVerifyMask().

KviUserListEntry * KviUserListView::join ( const QString &  szNick,
const QString &  szUser = QString(),
const QString &  szHost = QString(),
int  iFlags = 0 
)
void KviUserListView::maybeTip ( KviUserListToolTip pTip,
const QPoint &  pnt 
)
protected
QString * KviUserListView::nextSelectedNickname ( )

Returns the next selected nickname in the list.

Returns
QString *

References KviUserListEntry::m_bSelected, m_pIterator, KviUserListEntry::m_pNext, and KviUserListEntry::m_szNick.

Referenced by KviChannelWindow::nextSelectedNickname().

bool KviUserListView::nickChange ( const QString &  szOldNick,
const QString &  szNewNick 
)
int KviUserListView::opCount ( )
inline

Returns the number of operators.

Returns
int

Referenced by KviChannelWindow::opCount().

bool KviUserListView::part ( const QString &  szNick)
inline

Check if a user parts from a channel.

Parameters
szNickThe nickname to check
Returns
bool

Referenced by nickChange(), KviNotifyListManager::notifyOffLine(), KviChannelWindow::part(), and partAllButOne().

void KviUserListView::partAll ( )
void KviUserListView::partAllButOne ( const QString &  szWhoNot)
bool KviUserListView::partInternal ( const QString &  szNick,
bool  bRemove = true 
)
protected
void KviUserListView::prependUserFlag ( const QString &  szNick,
QString &  szBuffer 
)

Prepends the user flags before the nickname.

Parameters
szNickThe nickname of the user
szBufferThe buffer where to store the data
Returns
void

References getUserFlag().

Referenced by KviChannelWindow::prependUserFlag().

void KviUserListView::removeAllEntries ( )
protected
void KviUserListView::resizeEvent ( QResizeEvent *  e)
protectedvirtual
void KviUserListView::select ( const QString &  szNick)
int KviUserListView::selectedCount ( )
inline

Returns the number of selected entries in the userlist.

Returns
int

Referenced by KviUserListViewArea::keyPressEvent(), KviConsoleWindow::selectedCount(), and KviChannelWindow::selectedCount().

bool KviUserListView::setChanAdmin ( const QString &  szNick,
bool  bChanAdmin 
)

Sets the chan admin mode.

Parameters
szNickThe nick to moderate
bChanAdminWhether to moderate the user
Returns
bool

Referenced by join(), and KviChannelWindow::setChanAdmin().

bool KviUserListView::setChanOwner ( const QString &  szNick,
bool  bChanOwner 
)

Sets the chan owner mode.

Parameters
szNickThe nick to moderate
bChanOwnerWhether to moderate the user
Returns
bool

Referenced by join(), and KviChannelWindow::setChanOwner().

bool KviUserListView::setHalfOp ( const QString &  szNick,
bool  bHalfOp 
)

Sets the half operator mode.

Parameters
szNickThe nick to moderate
bHalfOpWhether to moderate the user
Returns
bool

Referenced by join(), and KviChannelWindow::setHalfOp().

void KviUserListView::setMaskEntries ( char  cType,
int  iNum 
)

Sets the mask entries number for a channel.

The mask types can be:

  • +b: ban
  • +e: exception; a user can join a +b channel (ban) if there's a +e exception on a mask which the user matches
  • +I: invite; a user can join a +i channel (invite) if there's a +I

exception on a mask which the user matches

Parameters
cTypeThe type of the mask
iNumThe number of the masks
Returns
void

References m_ibEntries, m_ieEntries, m_iIEntries, and updateUsersLabel().

Referenced by KviChannelWindow::setModeInList().

bool KviUserListView::setOp ( const QString &  szNick,
bool  bOp 
)

Sets the operator mode.

Parameters
szNickThe nick to moderate
bOpWhether to moderate the user
Returns
bool

Referenced by join(), and KviChannelWindow::setOp().

void KviUserListView::setUserDataBase ( KviIrcUserDataBase pDb)
inlineprotected
bool KviUserListView::setUserOp ( const QString &  szNick,
bool  bUserOp 
)

Sets the user operator mode.

Parameters
szNickThe nick to moderate
bUserOpWhether to moderate the user
Returns
bool

Referenced by join(), and KviChannelWindow::setUserOp().

bool KviUserListView::setVoice ( const QString &  szNick,
bool  bVoice 
)

Sets the voice mode.

Parameters
szNickThe nick to moderate
bVoiceWhether to moderate the user
Returns
bool

Referenced by join(), and KviChannelWindow::setVoice().

void KviUserListView::triggerUpdate ( )
protected

Updates the view list.

This function will updates the scrollbar range, the users label, and the view area

Returns
void

References m_pViewArea, updateScrollBarRange(), and updateUsersLabel().

Referenced by enableUpdates(), insertUserEntry(), partAll(), partInternal(), updateArea(), userAction(), and userActionVerifyMask().

void KviUserListView::updateArea ( )

Updates the list view area.

Returns
void

References m_pViewArea, and triggerUpdate().

Referenced by KviIrcServerParser::parseNumericEndOfWho().

void KviUserListView::updateScrollBarRange ( )
protected
void KviUserListView::updateUsersLabel ( )
protected
void KviUserListView::userAction ( KviIrcMask pUser,
int  iActionTemperature 
)

Verifies a user action.

This is called when a user "acts" in some visible way on the channel In this way we can keep track of his channeel idle time. This will also update the username and hostname if needed.

Parameters
pUserThe user by the irc mask
iActionTemperatureThe temperature of the action performed
Returns
void

References KviPointerHashTable< Key, T >::find(), KviIrcMask::hasHost(), KviIrcMask::hasUser(), KviIrcMask::host(), itemVisible(), kvi_unixTime, KviUserListEntry::m_iTemperature, KviUserListEntry::m_lastActionTime, m_pEntryDict, KviUserListEntry::m_pGlobalData, KviIrcMask::nick(), KviIrcUserEntry::setHost(), KviIrcUserEntry::setUser(), triggerUpdate(), and KviIrcMask::user().

Referenced by KviQueryWindow::ownAction(), KviQueryWindow::userAction(), and KviChannelWindow::userAction().

void KviUserListView::userAction ( const QString &  szNick,
const QString &  szUser,
const QString &  szHost,
int  iActionTemperature 
)

Verifies a user action.

This is called when a user "acts" in some visible way on the channel In this way we can keep track of his channeel idle time. This will also update the username and hostname if needed.

Parameters
szNickThe nickname of the user
szUserThe username of the user
szHostThe hostname of the user
iActionTemperatureThe temperature of the action performed
Returns
void

References KviQString::equalCS(), KviPointerHashTable< Key, T >::find(), itemVisible(), kvi_unixTime, KviUserListEntry::m_iTemperature, KviUserListEntry::m_lastActionTime, m_pEntryDict, KviUserListEntry::m_pGlobalData, KviIrcUserEntry::setHost(), KviIrcUserEntry::setUser(), and triggerUpdate().

void KviUserListView::userAction ( const QString &  szNick,
int  iActionTemperature 
)

Verifies a user action.

This is called when a user "acts" in some visible way on the channel In this way we can keep track of his channeel idle time. This will also update the username and hostname if needed.

Parameters
szNickThe nickname of the user
iActionTemperatureThe temperature of the action performed
Returns
void

References KviPointerHashTable< Key, T >::find(), itemVisible(), kvi_unixTime, KviUserListEntry::m_iTemperature, KviUserListEntry::m_lastActionTime, m_pEntryDict, and triggerUpdate().

bool KviUserListView::userActionVerifyMask ( const QString &  szNick,
const QString &  szUser,
const QString &  szHost,
int  iActionTemperature,
QString &  szOldUser,
QString &  szOldHost 
)

Verifies the mask for a user action.

This is called when a user "acts" in some visible way on the channel, so we can keep track of his channel idle time. This particular function version of userAction will return false if there was a user or hostname change (unless they were not known at all) This will also update the username and hostname if needed.

Parameters
szNickThe nickname of the user
szUserThe username of the user
szHostThe hostname of the user
iActionTemperatureThe temperature of the action performed
szOldUserThe old username of the user
szOldHostThe old hostname of the user
Returns
bool

References KviQString::equalCI(), KviQString::equalCS(), KviPointerHashTable< Key, T >::find(), KviIrcUserEntry::host(), itemVisible(), kvi_unixTime, KviUserListEntry::m_iTemperature, KviUserListEntry::m_lastActionTime, m_pEntryDict, KviUserListEntry::m_pGlobalData, KviIrcUserEntry::setHost(), KviIrcUserEntry::setUser(), szHost, triggerUpdate(), and KviIrcUserEntry::user().

Referenced by KviQueryWindow::userAction().

int KviUserListView::userOpCount ( )
inline

Returns the number of user operators.

Returns
int

Referenced by KviChannelWindow::userOpCount().

void KviUserListView::userStats ( KviUserListViewUserStats pStats)
int KviUserListView::voiceCount ( )
inline

Returns the number of voices.

Returns
int

Referenced by KviChannelWindow::voiceCount().

KviWindow* KviUserListView::window ( )
inline

Returns the window associated to the userlist.

Returns
KviWindow *

Referenced by KviUserListViewArea::paintEvent().

Friends And Related Function Documentation

friend class KviChannelWindow
friend
friend class KviConsoleWindow
friend
friend class KviQueryWindow
friend
friend class KviUserListEntry
friend

Referenced by join().

friend class KviUserListToolTip
friend

Referenced by KviUserListView().

friend class KviUserListViewArea
friend

Referenced by KviUserListView().

Member Data Documentation

int KviUserListView::m_ibEntries
protected
int KviUserListView::m_iChanAdminCount
protected
int KviUserListView::m_iChanOwnerCount
protected
int KviUserListView::m_ieEntries
protected
int KviUserListView::m_iFontHeight
protected
int KviUserListView::m_iHalfOpCount
protected
int KviUserListView::m_iIEntries
protected
int KviUserListView::m_iIrcOpCount
protected

Referenced by insertUserEntry(), and partInternal().

int KviUserListView::m_iOpCount
protected
int KviUserListView::m_iSelectedCount
protected
int KviUserListView::m_iTotalHeight
protected
int KviUserListView::m_iUserOpCount
protected
int KviUserListView::m_iVoiceCount
protected
KviPointerHashTable<QString, KviUserListEntry>* KviUserListView::m_pEntryDict
protected
KviUserListEntry* KviUserListView::m_pHeadItem
protected
KviIrcUserDataBase* KviUserListView::m_pIrcUserDataBase
protected
KviUserListEntry* KviUserListView::m_pIterator
protected

Referenced by nextSelectedNickname().

KviWindow* KviUserListView::m_pKviWindow
protected
KviUserListEntry* KviUserListView::m_pTailItem
protected
KviUserListToolTip* KviUserListView::m_pToolTip
protected
KviUserListEntry* KviUserListView::m_pTopItem
protected
QLabel* KviUserListView::m_pUsersLabel
protected
KviUserListViewArea* KviUserListView::m_pViewArea
protected

The documentation for this class was generated from the following files: