KVIrc
4.9.2
DeveloperAPIs
|
The class which manages a query. More...
#include <KviQueryWindow.h>
Public Types | |
enum | Flag { Dead = 1 } |
Holds the flags of a query. More... | |
Public Types inherited from KviWindow | |
enum | ActivityTemperature { Ice = 0, VeryCold = 1, Cold = 2, Undefined = 3, Hot = 4, VeryHot = 5, Fire = 6 } |
Holds the activity meter in temperature scale. More... | |
enum | ActivityValue { None = 0, VeryLow = 1, Low = 2, Medium = 3, High = 4, VeryHigh = 5 } |
Holds the activity meter in value scale. More... | |
enum | AttentionLevel { VisibleAndActive = 0, MainWindowIsVisible = 1 } |
attention levels usable in hasAttention() More... | |
enum | Type { Console = 0, Channel = 1, Query = 2, DeadChannel = 3, DeadQuery = 4, Editor = 5, Help = 6, Terminal = 7, SocketSpy = 8, Links = 9, List = 10, DccChat = 11, DccTransfer = 12, DccCanvas = 13, DccVoice = 14, DccVideo = 15, UserWindow = 16, Tool = 17, IOGraph = 18, DirBrowser = 19, ScriptEditor = 20, ScriptObject = 21, LogView = 22, Offer = 23, Debug = 24, Unknown = 25, TypeCount = 26 } |
Holds the types of a window; these are used by the KVIrc core and distributed modules. More... | |
Public Member Functions | |
virtual void | applyOptions () |
Applies the options. More... | |
bool | avatarChanged (const QString &szNick) |
Called when the target changes the avatar. More... | |
QFrame * | buttonContainer () |
Returns the button container. More... | |
bool | isDeadQuery () |
Returns true if the query is dead. More... | |
KviQueryWindow (KviConsoleWindow *lpConsole, const QString &szNick) | |
Constructs the query object. More... | |
QByteArray | loadLogFile (const QString &szFileName, bool bGzip) |
Loads a log file. More... | |
void | mergeQuery (KviQueryWindow *pQuery) |
Merges a query into the one we're using. More... | |
bool | nickChange (const QString &szOldNick, const QString &szNewNick) |
Called when the target changes the nick. More... | |
void | notifyCommonChannels (const QString &szNick, const QString &szUser, const QString &szHost, int iChans, const QString &szChans) |
Notify us if we have common channels with the target. More... | |
void | ownAction (const QString &szBuffer) |
Called when we perform an action. More... | |
void | ownMessage (const QString &szBuffer, bool bUserFeedback=true) |
Called when we send a message to the query target. More... | |
void | pasteLastLog () |
Pastes the most recent channel log into the buffer. More... | |
int | selectedCount () |
Returns the number of selected users in the userlist. More... | |
void | setAliveQuery () |
Sets the status of the query as alive. More... | |
void | setDeadQuery () |
Sets the status of the query as dead. More... | |
KviUserListEntry * | setTarget (const QString &szNick, const QString &szUser, const QString &szHost) |
Sets the target of the query. More... | |
void | showListView (bool bShow, bool bIgnoreSizeChange=false) |
Shows the userlist view. More... | |
virtual QSize | sizeHint () const |
Returns the size of the query object. More... | |
virtual const QString & | target () |
Returns the name of the query target. More... | |
void | updateLabelText () |
Updates the text of the tooltip. More... | |
void | userAction (KviIrcMask *user, unsigned int uActionType) |
Called when a user performs an action. More... | |
void | userAction (const QString &szNick, unsigned int uActionType) |
Called when a user performs an action. More... | |
void | userAction (const QString &szNick, const QString &szUser, const QString &szHost, unsigned int uActionType) |
Called when a user performs an action. More... | |
KviUserListView * | userListView () |
Returns the userlist of the query (the remote peer) More... | |
~KviQueryWindow () | |
Destroys the query object. More... | |
Public Member Functions inherited from KviWindow | |
virtual bool | activityMeter (unsigned int *puActivityValue, unsigned int *puActivityTemperature) |
KviIrcConnection * | connection () |
Returns the current IRC connection (if any) More... | |
KviConsoleWindow * | console () |
Returns the console that this window belongs to. More... | |
KviIrcContext * | context () |
void | contextPopup () |
QString | decodeText (const char *pcText) |
virtual QTextCodec * | defaultTextCodec () |
void | delayedAutoRaise () |
void | delayedClose () |
void | demandAttention () |
Notify the window manager that this window demands attention. More... | |
QByteArray | encodeText (const QString &szText) |
void | forceTextCodec (QTextCodec *pCodec) |
virtual void | getConfigGroupName (QString &szBuffer) |
void | getDefaultLogFileName (QString &szBuffer) |
bool | hasAttention (AttentionLevel eLevel=VisibleAndActive) |
Returns whether this window is the active one. More... | |
virtual bool | highlightMe (unsigned int uValue) |
virtual bool | highlightMeter (unsigned int *puValue) |
QString | id () |
Returns the global ID of this window. More... | |
KviInput * | input () |
void | internalOutput (KviIrcView *pView, int iMsgType, const kvi_wchar_t *pwText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
bool | isChannel () const |
bool | isConsole () const |
bool | isDocked () |
bool | isQuery () const |
KviWindow (Type eType, const QString &szName, KviConsoleWindow *pConsole=0) | |
Constructs the window object. More... | |
const QString & | lastLineOfText () |
const QString & | lastMessageText () |
void | listWindowTypes () |
virtual const QString & | localNick () |
QTextEncoder * | makeEncoder () |
unsigned long int | numericId () |
Returns the global ID of this window. More... | |
virtual void | output (int iMsgType, const char *pcFormat,...) |
virtual void | output (int iMsgType, const kvi_wchar_t *pwFormat,...) |
virtual void | output (int iMsgType, QString szFmt,...) |
void | output (int iMsgType, const QDateTime &datetime, const char *pcFormat,...) |
void | output (int iMsgType, const QDateTime &datetime, const kvi_wchar_t *pwFormat,...) |
void | output (int iMsgType, const QDateTime &datetime, QString szFmt,...) |
virtual void | outputNoFmt (int iMsgType, const char *pcText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
virtual void | outputNoFmt (int iMsgType, const kvi_wchar_t *pwText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
virtual void | outputNoFmt (int iMsgType, const QString &szText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
virtual KviWindow * | outputProxy () |
virtual const QString & | plainTextCaption () |
void | setFixedCaption (const QString &szCaption) |
void | setProgress (int iProgress) |
Sets the progress for the WindowList item. More... | |
bool | setTextEncoding (const QString &szTextEncoding) |
void | setWindowName (const QString &szName) |
Sets the name of the window. More... | |
void | setWindowTitle (QString &szTitle) |
KviTalSplitter * | splitter () |
Returns the splitter of this window. More... | |
QTextCodec * | textCodec () |
const QString & | textEncoding () |
virtual void | toggleButtonContainer () |
Type | type () const |
Returns the type of the window. More... | |
virtual const char * | typeString () |
Returns a descriptive name of the window type. More... | |
void | unhighlight () |
void | updateBackgrounds (QObject *pObj=0) |
virtual void | updateCaption () |
virtual void | updateIcon () |
KviIrcView * | view () const |
Returns the KviIrcView of this window. More... | |
KviWindowListItem * | windowListItem () |
Returns the windowList item. More... | |
const QString & | windowName () |
Returns the name of this window. More... | |
virtual | ~KviWindow () |
Destroys the window object. More... | |
Protected Slots | |
void | slotDndEvents (const QString &szFile) |
Triggers the OnQueryFileDropped event. More... | |
void | textViewRightClicked () |
Triggers the OnQueryPopupRequest event. More... | |
void | toggleListView () |
Toggles the userlist view. More... | |
Protected Slots inherited from KviWindow | |
void | childDestroyed () |
void | cryptControllerFinished () |
void | cryptSessionInfoDestroyed () |
void | systemTextEncodingPopupActivated (QAction *pAction) |
void | textEncodingButtonClicked () |
void | toggleCryptController () |
Protected Member Functions | |
virtual void | fillCaptionBuffers () |
Fills in the caption buffers. More... | |
virtual void | getBaseLogFileName (QString &szBuffer) |
Gets the base of the log file name. More... | |
QString | getInfoLabelText () |
Gets the info of the text in the upper part of the query. More... | |
virtual void | getWindowListTipText (QString &szBuffer) |
Gets the window list and info label tooltip text. More... | |
virtual void | loadProperties (KviConfigurationFile *pCfg) |
Loads the properties from file. More... | |
virtual QPixmap * | myIconPtr () |
Returns the icon associated to the query. More... | |
void | notifyTargetChange (const QString &szOldNick, const QString &szOldUser, const QString &szOldHost, const QString &szNick, const QString &szUser, const QString &szHost) |
Called to notify us that the target of the query is changed. More... | |
virtual void | resizeEvent (QResizeEvent *) |
virtual void | saveProperties (KviConfigurationFile *pCfg) |
Saves the properties to file. More... | |
virtual void | triggerCreationEvents () |
Trigger the OnQueryWindowCreated event. More... | |
Protected Member Functions inherited from KviWindow | |
virtual void | childEvent (QChildEvent *pEvent) |
void | childInserted (QWidget *pObject) |
void | childRemoved (QWidget *pObject) |
virtual void | childrenTreeChanged (QWidget *pAdded) |
virtual void | closeEvent (QCloseEvent *pEvent) |
void | createCryptControllerButton (QWidget *pPar) |
void | createSystemTextEncodingPopup () |
void | createTextEncodingButton (QWidget *pPar) |
QToolButton * | createToolButton (QWidget *pPar, const char *pcName, KviIconManager::SmallIcon eIcon, const QString &szToolTip, bool bOn) |
virtual void | createWindowListItem () |
virtual void | destroyWindowListItem () |
bool | eventFilter (QObject *pObject, QEvent *pEvent) |
void | fillSingleColorCaptionBuffers (const QString &szName) |
virtual void | focusInEvent (QFocusEvent *) |
virtual bool | focusNextPrevChild (bool bNext) |
virtual void | inputMethodEvent (QInputMethodEvent *e) |
virtual void | lostUserFocus () |
virtual void | moveEvent (QMoveEvent *pEvent) |
virtual void | preprocessMessage (QString &szMessage) |
void | setType (Type eType) |
virtual void | triggerDestructionEvents () |
virtual void | youAreDocked () |
virtual void | youAreUndocked () |
Protected Attributes | |
int | m_iFlags |
QFrame * | m_pButtonGrid |
KviThemedLabel * | m_pLabel |
KviWindowToolPageButton * | m_pListViewButton |
KviUserListView * | m_pUserListView |
QList< int > | m_SplitterSizesList |
Protected Attributes inherited from KviWindow | |
bool | m_bIsDocked |
bool | m_bProcessingInputEvent |
Type | m_eType |
KviTalHBox * | m_pButtonBox |
KviConsoleWindow * | m_pConsole |
QWidget * | m_pFocusHandler |
QToolButton * | m_pHideToolsButton |
KviInput * | m_pInput |
KviIrcView * | m_pIrcView |
QWidget * | m_pLastFocusedChild |
KviTalSplitter * | m_pSplitter |
QTextCodec * | m_pTextCodec |
QToolButton * | m_pTextEncodingButton |
KviWindowListItem * | m_pWindowListItem |
QString | m_szName |
QString | m_szPlainTextCaption |
QString | m_szTextEncoding |
unsigned long int | m_uId |
Additional Inherited Members | |
Public Slots inherited from KviWindow | |
void | autoRaise () |
void | dock () |
void | reloadImages () |
void | savePropertiesAsDefault () |
void | undock () |
Signals inherited from KviWindow | |
void | windowNameChanged () |
Static Protected Attributes inherited from KviWindow | |
static const char * | m_typeTable [TypeCount] |
Properties inherited from KviWindow | |
int | KviProperty_ChildFocusOwner |
The class which manages a query.
enum KviQueryWindow::Flag |
KviQueryWindow::KviQueryWindow | ( | KviConsoleWindow * | lpConsole, |
const QString & | szNick | ||
) |
Constructs the query object.
lpConsole | The associated console |
szNick | The nickname with who we open a query |
References __tr2qs, buttonContainer(), connect(), KviWindow::connection(), KviWindow::createCryptControllerButton(), KviWindow::createTextEncodingButton(), KviIrcView::enableDnd(), KviIconManager::HideListView, KVI_OPTION_BOOL, KviWindow::KviInput, KviOption_boolAutoLogQueries, KviTalSplitter, m_iFlags, KviWindow::m_pButtonBox, m_pButtonGrid, KviWindow::m_pInput, KviWindow::m_pIrcView, m_pLabel, m_pListViewButton, KviWindow::m_pSplitter, m_pUserListView, KviIrcConnection::registerQuery(), KviTalHBox::setMargin(), KviTalHBox::setSpacing(), KviTalHBox::setStretchFactor(), KviIconManager::ShowListView, slotDndEvents(), KviIrcView::startLogging(), textViewRightClicked(), toggleListView(), KviWindow::updateCaption(), and updateLabelText().
KviQueryWindow::~KviQueryWindow | ( | ) |
Destroys the query object.
References KviWindow::connection(), KviWindow::context(), KviWindow::DeadQuery, m_pUserListView, KviUserListView::partAll(), KviWindow::type(), KviIrcContext::unregisterDeadQuery(), and KviIrcConnection::unregisterQuery().
|
virtual |
Applies the options.
Reimplemented from KviWindow.
References KviThemedLabel::applyOptions(), KviUserListView::applyOptions(), KviWindow::applyOptions(), m_pLabel, m_pUserListView, and updateLabelText().
|
inline |
Called when the target changes the avatar.
szNick | The nickname of the user |
|
inlinevirtual |
Returns the button container.
Reimplemented from KviWindow.
Referenced by KviQueryWindow().
|
protectedvirtual |
Fills in the caption buffers.
Reimplemented from KviWindow.
References __tr2qs, KviWindow::connection(), KviIrcConnection::currentNickName(), KviIrcConnection::currentServerName(), KviWindow::m_szPlainTextCaption, and KviWindow::windowName().
|
protectedvirtual |
Gets the base of the log file name.
szBuffer | The buffer where to save the info |
Reimplemented from KviWindow.
References KviWindow::connection(), KviWindow::console(), KviConsoleWindow::context(), KviWindow::context(), KviConsoleWindow::currentNetworkName(), KviIrcContext::id(), and KviWindow::windowName().
|
protected |
Gets the info of the text in the upper part of the query.
References __tr2qs, KviIrcUserEntry::accountName(), KviWindow::connection(), KviIrcUserDataBase::find(), KviIrcConnection::getCommonChannels(), KviIrcUserEntry::hasAccountName(), KviIrcUserEntry::hasHops(), KviIrcUserEntry::hasHost(), KviIrcUserEntry::hasRealName(), KviIrcUserEntry::hasServer(), KviIrcUserEntry::hasUser(), KviIrcUserEntry::hops(), KviIrcUserEntry::host(), KviIrcUserEntry::isAway(), KVI_OPTION_BOOL, KviOption_boolShowExtendedInfoInQueryLabel, KviWindow::m_szName, KviIrcUserEntry::realName(), KviIrcUserEntry::server(), KviControlCodes::stripControlBytes(), KviIrcUserEntry::user(), and KviIrcConnection::userDataBase().
Referenced by updateLabelText().
|
protectedvirtual |
Gets the window list and info label tooltip text.
Reimplemented from KviWindow.
References __tr2qs, KviWindow::connection(), KviWindow::console(), END_TABLE_BOLD_ROW, KviIrcUserDataBase::find(), KviConsoleWindow::getUserTipText(), KviWindow::m_szName, START_TABLE_BOLD_ROW, and KviIrcConnection::userDataBase().
Referenced by updateLabelText().
|
inline |
QByteArray KviQueryWindow::loadLogFile | ( | const QString & | szFileName, |
bool | bGzip | ||
) |
Loads a log file.
It opens a logfile, gzipped or not, and returns the content in a buffer
szFileName | The filename of the log file |
bGzip | Whether the log file is gzipped |
Referenced by pasteLastLog().
|
protectedvirtual |
Loads the properties from file.
pCfg | The configuration file |
Reimplemented from KviWindow.
References KviWindow::loadProperties(), KviWindow::m_pSplitter, m_SplitterSizesList, KviConfigurationFile::readBoolEntry(), KviConfigurationFile::readIntListEntry(), and showListView().
void KviQueryWindow::mergeQuery | ( | KviQueryWindow * | pQuery | ) |
Merges a query into the one we're using.
pQuery | The source query |
References KviIrcView::appendMessagesFrom(), KviWindow::m_pIrcView, and updateLabelText().
Referenced by KviIrcServerParser::parseLiteralNick().
|
protectedvirtual |
Returns the icon associated to the query.
Reimplemented from KviWindow.
References KviIconManager::DeadQuery, g_pIconManager, KviIconManager::getSmallIcon(), isDeadQuery(), and KviIconManager::Query.
bool KviQueryWindow::nickChange | ( | const QString & | szOldNick, |
const QString & | szNewNick | ||
) |
Called when the target changes the nick.
szOldNick | The old nickname of the user |
szNewNick | The new nickname of the user |
References m_pUserListView, KviUserListView::nickChange(), KviWindow::setWindowName(), KviWindow::updateCaption(), and updateLabelText().
Referenced by KviIrcServerParser::parseLiteralNick().
void KviQueryWindow::notifyCommonChannels | ( | const QString & | szNick, |
const QString & | szUser, | ||
const QString & | szHost, | ||
int | iChans, | ||
const QString & | szChans | ||
) |
Notify us if we have common channels with the target.
szNick | The nickname of the user |
szUser | The username of the user |
szHost | The hostname of the user |
iChans | The number of common channels |
szChans | The common channels |
References __tr2qs, KVI_OUT_QUERYTRACE, KviWindow::output(), szHost, and updateLabelText().
Referenced by KviIrcServerParser::parseLiteralJoin(), KviIrcServerParser::parseLiteralKick(), KviIrcServerParser::parseLiteralNick(), KviIrcServerParser::parseLiteralPart(), and setTarget().
|
protected |
Called to notify us that the target of the query is changed.
szOldNick | The old nickname of the target |
szOldUser | The old username of the target |
szOldHost | The old hostname of the target |
szNick | The new nickname of the target |
szUser | The new username of the target |
szHost | The new hostname of the target |
References __tr2qs, KVI_OUT_QUERYTRACE, KviWindow::output(), and updateLabelText().
Referenced by userAction().
|
virtual |
Called when we perform an action.
szBuffer | The buffer :) |
Reimplemented from KviWindow.
References __tr2qs, KviWindow::connection(), KviWindow::encodeText(), KVI_OPTION_BOOL, KVI_OUT_ACTION, KVI_OUT_SYSTEMWARNING, KVI_USERACTION_ACTION, KviEvent_OnMeAction, KviOption_boolStripMircColorsInUserMessages, KVS_TRIGGER_EVENT_2_HALTED, m_pUserListView, KviWindow::output(), KviWindow::outputNoFmt(), KviIrcConnection::sendFmtData(), KviControlCodes::stripControlBytes(), szBuffer, KviUserListView::userAction(), and KviWindow::windowName().
|
virtual |
Called when we send a message to the query target.
szBuffer | The buffer where to store the data |
bUserFeedback | Whether to display the echo feedback to the user |
Reimplemented from KviWindow.
References __tr2qs, KviWindow::connection(), KviControlCodes::CryptEscape, KviWindow::decodeText(), KviCryptEngine::Encoded, KviWindow::encodeText(), KviIrcConnection::encodeText(), KviCryptEngine::Encrypted, KviIrcConnectionUserInfo::hostName(), KVI_OUT_OWNPRIVMSG, KVI_OUT_OWNPRIVMSGCRYPTED, KVI_OUT_SYSTEMERROR, KVI_OUT_SYSTEMWARNING, KVI_USERACTION_PRIVMSG, KviWindow::m_pConsole, KviWindow::makeEncoder(), KviIrcConnectionUserInfo::nickName(), KviConsoleWindow::NoNotifications, KviWindow::output(), KviWindow::outputNoFmt(), KviConsoleWindow::outputPrivmsg(), KviCString::ptr(), KviIrcConnection::sendFmtData(), userAction(), KviIrcConnection::userInfo(), KviIrcConnectionUserInfo::userName(), and KviWindow::windowName().
void KviQueryWindow::pasteLastLog | ( | ) |
Pastes the most recent channel log into the buffer.
It searches for the most recent channel log of the channel we have just joined, and pastes into the buffer the last N lines, where N is get from the options
References __tr2qs, KviWindow::console(), KviConsoleWindow::currentNetworkName(), g_pApp, KviApplication::getLocalKvircDirectory(), i, KVI_OPTION_UINT, KVI_OUT_QUERYPRIVMSG, KviOption_uintDaysIntervalToPasteOnQueryJoin, KviOption_uintLinesToPasteOnQueryJoin, loadLogFile(), KviApplication::Log, KviWindow::output(), and target().
Referenced by KviIrcServerParser::parseLiteralNotice(), and KviIrcServerParser::parseLiteralPrivmsg().
|
protectedvirtual |
References KviInput::heightHint(), KviWindow::m_pButtonBox, KviWindow::m_pInput, and KviWindow::m_pSplitter.
|
protectedvirtual |
Saves the properties to file.
pCfg | The configuration file |
Reimplemented from KviWindow.
References KviWindow::m_pSplitter, m_pUserListView, m_SplitterSizesList, KviWindow::saveProperties(), and KviConfigurationFile::writeEntry().
|
inline |
Returns the number of selected users in the userlist.
void KviQueryWindow::setAliveQuery | ( | ) |
Sets the status of the query as alive.
References KviWindow::connection(), KviWindow::context(), Dead, KviIrcUserDataBase::find(), KviIrcUserEntry::host(), KviIrcView::isLogging(), m_iFlags, KviWindow::m_pIrcView, m_pUserListView, KviWindow::Query, KviIrcConnection::registerQuery(), setTarget(), KviWindow::setType(), KviUserListView::setUserDataBase(), KviIrcView::startLogging(), szHost, target(), KviIrcContext::unregisterDeadQuery(), KviWindow::updateIcon(), KviIrcUserEntry::user(), and KviIrcConnection::userDataBase().
Referenced by KviIrcConnection::createQuery().
void KviQueryWindow::setDeadQuery | ( | ) |
Sets the status of the query as dead.
References KviWindow::connection(), KviWindow::context(), Dead, KviWindow::DeadQuery, KviUserListView::enableUpdates(), m_iFlags, m_pUserListView, KviUserListView::partAll(), KviIrcContext::registerDeadQuery(), KviWindow::setType(), KviUserListView::setUserDataBase(), KviIrcConnection::unregisterQuery(), KviWindow::updateCaption(), KviWindow::updateIcon(), and updateLabelText().
KviUserListEntry * KviQueryWindow::setTarget | ( | const QString & | szNick, |
const QString & | szUser, | ||
const QString & | szHost | ||
) |
Sets the target of the query.
szNick | The nickname of the user |
szUser | The username of the user |
szHost | The hostname of the user |
References KviIrcUserEntry::avatar(), KviConsoleWindow::checkDefaultAvatar(), KviWindow::connection(), KviIrcConnection::getCommonChannels(), KviUserListEntry::globalData(), KviUserListView::join(), KVI_OPTION_BOOL, KviEvent_OnQueryTargetAdded, KviOption_boolEnableQueryTracing, KVS_TRIGGER_EVENT_3, KviWindow::m_pConsole, m_pUserListView, notifyCommonChannels(), KviWindow::setWindowName(), szHost, KviWindow::updateCaption(), and updateLabelText().
Referenced by KviIrcConnection::loginComplete(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), and setAliveQuery().
void KviQueryWindow::showListView | ( | bool | bShow, |
bool | bIgnoreSizeChange = false |
||
) |
Shows the userlist view.
bShow | Whether to show or hide the view |
bIgnoreSizeChange | Whether to ignore the size change |
References m_pListViewButton, KviWindow::m_pSplitter, m_pUserListView, and m_SplitterSizesList.
Referenced by loadProperties(), and toggleListView().
|
virtual |
Returns the size of the query object.
References KviInput::heightHint(), KviWindow::m_pInput, KviWindow::m_pIrcView, KviWindow::m_pSplitter, and KviIrcView::sizeHint().
|
protectedslot |
Triggers the OnQueryFileDropped event.
szFile | The file dropped in the query |
References KviEvent_OnQueryFileDropped, and KVS_TRIGGER_EVENT_1.
Referenced by KviQueryWindow().
|
inlinevirtual |
Returns the name of the query target.
Reimplemented from KviWindow.
References KviWindow::windowName().
Referenced by pasteLastLog(), and setAliveQuery().
|
protectedslot |
Triggers the OnQueryPopupRequest event.
References KviEvent_OnQueryPopupRequest, and KVS_TRIGGER_EVENT_0.
Referenced by KviQueryWindow().
|
protectedslot |
Toggles the userlist view.
References m_pUserListView, and showListView().
Referenced by KviQueryWindow().
|
protectedvirtual |
Trigger the OnQueryWindowCreated event.
Reimplemented from KviWindow.
References KviEvent_OnQueryWindowCreated, and KVS_TRIGGER_EVENT_0.
void KviQueryWindow::updateLabelText | ( | ) |
Updates the text of the tooltip.
References KviTalToolTip::add(), getInfoLabelText(), getWindowListTipText(), m_pLabel, and szBuffer.
Referenced by applyOptions(), KviQueryWindow(), mergeQuery(), nickChange(), notifyCommonChannels(), notifyTargetChange(), KviIrcServerParser::parseLiteralChghost(), KviIrcServerParser::parseLiteralJoin(), KviIrcServerParser::parseNumericWhoisAway(), KviIrcServerParser::parseNumericWhoisServer(), KviIrcServerParser::parseNumericWhoisUser(), KviIrcServerParser::parseNumericWhoReply(), KviIrcServerParser::parseNumericWhospcrpl(), setDeadQuery(), setTarget(), and userAction().
void KviQueryWindow::userAction | ( | KviIrcMask * | user, |
unsigned int | uActionType | ||
) |
Called when a user performs an action.
user | The source user |
uActionType | The type of the action |
References KviIrcMask::host(), kvi_getUserActionTemperature(), KVI_OPTION_BOOL, KviOption_boolEnableQueryTracing, m_pUserListView, KviIrcMask::nick(), notifyTargetChange(), updateLabelText(), KviIrcMask::user(), KviUserListView::userAction(), and KviUserListView::userActionVerifyMask().
Referenced by ownMessage(), KviIrcServerParser::parseLiteralNick(), KviIrcServerParser::parseLiteralNotice(), and KviIrcServerParser::parseLiteralPrivmsg().
void KviQueryWindow::userAction | ( | const QString & | szNick, |
unsigned int | uActionType | ||
) |
Called when a user performs an action.
szNick | The nickname of the user |
uActionType | The type of the action |
References kvi_getUserActionTemperature(), m_pUserListView, updateLabelText(), and KviUserListView::userAction().
void KviQueryWindow::userAction | ( | const QString & | szNick, |
const QString & | szUser, | ||
const QString & | szHost, | ||
unsigned int | uActionType | ||
) |
Called when a user performs an action.
szNick | The nickname of the user |
szUser | The username of the user |
szHost | The hostname of the user |
uActionType | The type of the action |
References kvi_getUserActionTemperature(), KVI_OPTION_BOOL, KviOption_boolEnableQueryTracing, m_pUserListView, notifyTargetChange(), updateLabelText(), KviUserListView::userAction(), and KviUserListView::userActionVerifyMask().
|
inline |
Returns the userlist of the query (the remote peer)
Referenced by KviApplication::notifierMessage().
|
protected |
Referenced by KviQueryWindow(), setAliveQuery(), and setDeadQuery().
|
protected |
Referenced by KviQueryWindow().
|
protected |
Referenced by applyOptions(), KviQueryWindow(), and updateLabelText().
|
protected |
Referenced by KviQueryWindow(), and showListView().
|
protected |
|
protected |
Referenced by loadProperties(), saveProperties(), and showListView().