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

Userlist entry management class. More...

#include <KviUserListView.h>

+ Inheritance diagram for KviUserListEntry:

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...
 
KviIrcUserEntryglobalData ()
 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...
 
KviUserListEntrynext ()
 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
 
KviAnimatedPixmapm_pAvatarPixmap
 
KviIrcUserEntrym_pGlobalData
 
KviUserListViewm_pListView
 
KviUserListEntrym_pNext
 
KviUserListEntrym_pPrev
 
QString m_szNick
 

Private Slots

void avatarDestroyed ()
 
void avatarFrameChanged ()
 

Friends

class KviUserListView
 
class KviUserListViewArea
 

Detailed Description

Userlist entry management class.

Constructor & Destructor Documentation

KviUserListEntry::KviUserListEntry ( KviUserListView pParent,
const QString &  szNick,
KviIrcUserEntry pEntry,
short int  iFlags,
bool  bJoinTimeUnknown = true 
)

Constructs the user list entry object.

Parameters
pParentThe parent listview
szNickThe nick of the entry
pEntryThe entry in the irc user db
iFlagsThe flags of the user
bJoinTimeUnknownWhether the join time is unknown or not
Returns
KviUserListEntry

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.

Member Function Documentation

void KviUserListEntry::avatarDestroyed ( )
privateslot

References m_pAvatarPixmap.

Referenced by updateAvatarData().

void KviUserListEntry::avatarFrameChanged ( )
privateslot
bool KviUserListEntry::color ( QColor &  color)
void KviUserListEntry::detachAvatarData ( )
short int KviUserListEntry::flags ( ) const
inline

Returns the flags of the user.

Returns
short int

Referenced by chan_kvs_fnc_users().

KviIrcUserEntry* KviUserListEntry::globalData ( )
inline
KviUserListEntry* KviUserListEntry::next ( )
inline

Returns the next entry in the list.

Returns
KviUserListEntry *

Referenced by chan_kvs_fnc_users(), and KviUserListViewArea::mouseMoveEvent().

const QString& KviUserListEntry::nick ( ) const
inline

Returns the nick of the entry.

Returns
const QString &

Referenced by chan_kvs_fnc_users(), and KviUserListViewArea::keyPressEvent().

void KviUserListEntry::recalcSize ( )
protected
void KviUserListEntry::updateAvatarData ( )

Friends And Related Function Documentation

friend class KviUserListView
friend
friend class KviUserListViewArea
friend

Member Data Documentation

bool KviUserListEntry::m_bSelected
protected
short int KviUserListEntry::m_iFlags
protected
int KviUserListEntry::m_iHeight
protected
short int KviUserListEntry::m_iTemperature
protected
kvi_time_t KviUserListEntry::m_joinTime
protected
kvi_time_t KviUserListEntry::m_lastActionTime
protected
KviAnimatedPixmap* KviUserListEntry::m_pAvatarPixmap
protected
KviIrcUserEntry* KviUserListEntry::m_pGlobalData
protected
KviUserListView* KviUserListEntry::m_pListView
protected
KviUserListEntry* KviUserListEntry::m_pNext
protected
KviUserListEntry* KviUserListEntry::m_pPrev
protected
QString KviUserListEntry::m_szNick
protected

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