1 #ifndef _KVI_USERLISTVIEW_H_
2 #define _KVI_USERLISTVIEW_H_
61 #define KVI_USERLISTVIEW_GRIDTYPE_3DGRID 0
62 #define KVI_USERLISTVIEW_GRIDTYPE_3DBUTTONS 1
63 #define KVI_USERLISTVIEW_GRIDTYPE_PLAINGRID 2
64 #define KVI_USERLISTVIEW_GRIDTYPE_DOTGRID 3
65 #define KVI_USERLISTVIEW_GRIDTYPE_MAXIMUM 3
66 #define KVI_USERLISTVIEW_GRIDTYPE_DEFAULT 0
119 virtual void maybeTip(
const QPoint & pnt);
127 void doTip(
const QRect & rect,
const QString & szStr) {
tip(rect, szStr); };
177 short int flags()
const {
return m_iFlags; };
189 const QString &
nick()
const {
return m_szNick; };
202 bool color(QColor & color);
208 void updateAvatarData();
209 void detachAvatarData();
218 void avatarFrameChanged();
219 void avatarDestroyed();
291 void select(
const QString & szNick);
298 void ensureVisible(
const QString & szNick);
343 unsigned int count() {
return m_pEntryDict->count(); };
407 void appendSelectedNicknames(QString &
szBuffer);
413 QString * firstSelectedNickname();
419 QString * nextSelectedNickname();
432 void partAllButOne(
const QString & szWhoNot);
454 int getUserModeLevel(
const QString & szNick);
461 kvi_time_t getUserJoinTime(
const QString & szNick);
468 kvi_time_t getUserLastActionTime(
const QString & szNick);
489 bool part(
const QString & szNick) {
return partInternal(szNick,
true); };
497 void prependUserFlag(
const QString & szNick, QString &
szBuffer);
504 int flags(
const QString & szNick);
512 bool isChanOwner(
const QString & szNick,
bool bAtLeast =
false);
520 bool isChanAdmin(
const QString & szNick,
bool bAtLeast =
false);
528 bool isOp(
const QString & szNick,
bool bAtLeast =
false);
536 bool isHalfOp(
const QString & szNick,
bool bAtLeast =
false);
544 bool isVoice(
const QString & szNick,
bool bAtLeast =
false);
552 bool isUserOp(
const QString & szNick,
bool bAtLeast =
false);
560 bool setChanOwner(
const QString & szNick,
bool bChanOwner);
568 bool setChanAdmin(
const QString & szNick,
bool bChanAdmin);
576 bool setOp(
const QString & szNick,
bool bOp);
584 bool setHalfOp(
const QString & szNick,
bool bHalfOp);
592 bool setVoice(
const QString & szNick,
bool bVoice);
600 bool setUserOp(
const QString & szNick,
bool bUserOp);
618 bool userActionVerifyMask(
const QString & szNick,
const QString & szUser,
const QString &
szHost,
int iActionTemperature, QString & szOldUser, QString & szOldHost);
644 void userAction(
const QString & szNick,
const QString & szUser,
const QString &
szHost,
int iActionTemperature);
656 void userAction(
const QString & szNick,
int iActionTemperature);
664 bool nickChange(
const QString & szOldNick,
const QString & szNewNick);
674 KviUserListEntry *
join(
const QString & szNick,
const QString & szUser = QString(),
const QString &
szHost = QString(),
int iFlags = 0);
688 void enableUpdates(
bool bEnable);
703 void setMaskEntries(
char cType,
int iNum);
709 void emitRightClick();
715 void emitDoubleClick();
728 bool completeNickStandard(
const QString & szBegin,
const QString & szSkipAfter, QString &
szBuffer,
bool bAppendMask);
759 void triggerUpdate();
765 void updateUsersLabel();
781 void removeAllEntries();
789 bool partInternal(
const QString & szNick,
bool bRemove =
true);
802 void updateScrollBarRange();
822 Q_PROPERTY(
int TransparencyCapable READ dummyRead)
841 int dummyRead()
const {
return 0; };
851 virtual void paintEvent(QPaintEvent *
e);
853 virtual void mousePressEvent(QMouseEvent *
e);
854 virtual void mouseMoveEvent(QMouseEvent *
e);
855 virtual void mouseReleaseEvent(QMouseEvent *
e);
856 virtual void mouseDoubleClickEvent(QMouseEvent *
e);
857 virtual void wheelEvent(QWheelEvent *
e);
858 virtual void keyPressEvent(QKeyEvent *
e);
865 void scrollBarMoved(
int iNewVal);
868 #endif //_KVI_USERLISTVIEW_H_
int m_iHeight
Definition: KviUserListView.h:166
KviUserListEntry * m_pNext
Definition: KviUserListView.h:168
int m_iTotalHeight
Definition: KviUserListView.h:271
int m_iFontHeight
Definition: KviUserListView.h:272
Definition: KviAnimatedPixmap.h:67
KviIrcUserEntry * globalData()
Returns the irc user db entry.
Definition: KviUserListView.h:183
int m_iIrcOpCount
Definition: KviUserListView.h:264
KviUserListView * m_pListView
Definition: KviUserListView.h:158
KviUserListEntry * m_pHeadItem
Definition: KviUserListView.h:257
KviUserListEntry * m_pLastEntryUnderMouse
Definition: KviUserListView.h:844
Irc user mask abstraction.
KviWindow * window()
Returns the window associated to the userlist.
Definition: KviUserListView.h:337
KviWindow * m_pKviWindow
Definition: KviUserListView.h:277
KviUserListViewArea * m_pViewArea
Definition: KviUserListView.h:261
virtual void applyOptions()
Applies the options.
Definition: KviQueryWindow.cpp:495
Definition: KviConsoleWindow.h:75
bool part(const QString &szNick)
Check if a user parts from a channel.
Definition: KviUserListView.h:489
#define KVIRC_API
Definition: kvi_settings.h:128
unsigned int uChanAdmin
Definition: KviUserListView.h:82
void userAction(KviIrcMask *user, unsigned int uActionType)
Called when a user performs an action.
Definition: KviQueryWindow.cpp:316
unsigned int uIrcOp
Definition: KviUserListView.h:80
A struct to hold user statistics.
Definition: KviUserListView.h:73
int iAvgTemperature
Definition: KviUserListView.h:87
int selectedCount()
Returns the number of selected entries in the userlist.
Definition: KviUserListView.h:349
int m_iChanOwnerCount
Definition: KviUserListView.h:265
KviIrcUserEntry * m_pGlobalData
Definition: KviUserListView.h:160
int opCount()
Returns the number of operators.
Definition: KviUserListView.h:373
unsigned int count()
Returns the number of the entries in the userlist.
Definition: KviUserListView.h:343
int m_iTopItemOffset
Definition: KviUserListView.h:847
unsigned int uHotOp
Definition: KviUserListView.h:79
virtual void resizeEvent(QResizeEvent *e)
Definition: KviUserListView.cpp:1430
char getUserFlag(const QString &szNick)
Returns the flags of a user.
Definition: KviUserListView.h:482
int m_ibEntries
Definition: KviUserListView.h:274
KVIRC_API void join(QString &url, KviIrcServer *server)
Definition: KviIrcUrl.cpp:147
KviUserListToolTip * m_pToolTip
Definition: KviUserListView.h:273
struct _KviUserListViewUserStats KviUserListViewUserStats
#define kvi_time_t
Definition: KviTimeUtils.h:43
KviIrcUserDataBase * m_pIrcUserDataBase
Definition: KviUserListView.h:262
#define e
Definition: detector.cpp:69
KviUserListEntry * m_pTopItem
Definition: KviUserListView.h:256
Irc user mask handling.
Definition: KviIrcMask.h:45
bool nickChange(const QString &szOldNick, const QString &szNewNick)
Called when the target changes the nick.
Definition: KviQueryWindow.cpp:396
The class which manages a query.
Definition: KviQueryWindow.h:49
QLabel * m_pUsersLabel
Definition: KviUserListView.h:260
kvi_time_t m_lastActionTime
Definition: KviUserListView.h:163
bool m_bIgnoreScrollBar
Definition: KviUserListView.h:848
KviPointerHashTable< QString, KviUserListEntry > * entryDict()
Returns the entry in the list.
Definition: KviUserListView.h:310
int userOpCount()
Returns the number of user operators.
Definition: KviUserListView.h:391
KviUserListEntry * findEntry(const QString &szNick)
Searches an entry in the userlist.
Definition: KviUserListView.h:400
int m_iHalfOpCount
Definition: KviUserListView.h:268
QString szHost
Definition: libkvisetup.cpp:45
unsigned int uVoiced
Definition: KviUserListView.h:85
int m_iOpCount
Definition: KviUserListView.h:267
virtual void resizeEvent(QResizeEvent *)
Definition: KviQueryWindow.cpp:509
int m_iChanAdminCount
Definition: KviUserListView.h:266
User list area management.
Definition: KviUserListView.h:817
unsigned int uHot
Definition: KviUserListView.h:78
Definition: KviWindowToolWidget.h:47
int m_iVoiceCount
Definition: KviUserListView.h:269
unsigned int uTotal
Definition: KviUserListView.h:75
KviUserListEntry * firstItem()
Returns the first item of the user list.
Definition: KviUserListView.h:316
KviPointerHashTable< QString, KviUserListEntry > * m_pEntryDict
Definition: KviUserListView.h:255
int m_iSelectedCount
Definition: KviUserListView.h:263
int m_iUserOpCount
Definition: KviUserListView.h:270
KviUserListEntry * m_pTailItem
Definition: KviUserListView.h:258
unsigned int uUserOp
Definition: KviUserListView.h:86
kvi_time_t m_joinTime
Definition: KviUserListView.h:164
void setUserDataBase(KviIrcUserDataBase *pDb)
Sets the user database.
Definition: KviUserListView.h:796
unsigned int uActive
Definition: KviUserListView.h:76
unsigned int uHalfOp
Definition: KviUserListView.h:84
C++ Template based double linked pointer list class.
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
A class to handle the entries of the user database.
Definition: KviIrcUserEntry.h:45
int ircOpCount()
Returns the number of ircops.
Definition: KviUserListView.h:355
QString m_szNick
Definition: KviUserListView.h:159
int halfOpCount()
Returns the number of half operators.
Definition: KviUserListView.h:379
KviAnimatedPixmap * m_pAvatarPixmap
Definition: KviUserListView.h:170
int chanAdminCount()
Returns the number of chan admins.
Definition: KviUserListView.h:367
int m_iIEntries
Definition: KviUserListView.h:276
friend class KviUserListViewArea
Definition: KviUserListView.h:229
KviUserListEntry * m_pIterator
Definition: KviUserListView.h:259
bool m_bSelected
Definition: KviUserListView.h:167
KviUserListEntry * m_pPrev
Definition: KviUserListView.h:169
unsigned int uChanOwner
Definition: KviUserListView.h:81
The class which manages the user database.
Definition: KviIrcUserDataBase.h:45
const QString & nick() const
Returns the nick of the entry.
Definition: KviUserListView.h:189
unsigned int uActiveOp
Definition: KviUserListView.h:77
char szBuffer[4096]
Definition: winamp.cpp:77
int m_ieEntries
Definition: KviUserListView.h:275
This file contains compile time settings.
int m_iLastScrollBarVal
Definition: KviUserListView.h:846
short int flags() const
Returns the flags of the user.
Definition: KviUserListView.h:177
int chanOwnerCount()
Returns the number of chan owners.
Definition: KviUserListView.h:361
short int m_iFlags
Definition: KviUserListView.h:161
User list view management class.
Definition: KviUserListView.h:226
QScrollBar * m_pScrollBar
Definition: KviUserListView.h:845
KviUserListEntry * next()
Returns the next entry in the list.
Definition: KviUserListView.h:195
int voiceCount()
Returns the number of voices.
Definition: KviUserListView.h:385
bool avatarChanged(const QString &szNick)
Called when the target changes the avatar.
Definition: KviQueryWindow.h:201
unsigned int uOp
Definition: KviUserListView.h:83
short int m_iTemperature
Definition: KviUserListView.h:162
Userlist entry management class.
Definition: KviUserListView.h:134
The class which manages a channel.
Definition: KviChannelWindow.h:113