1 #ifndef _KVI_CONSOLE_H_
2 #define _KVI_CONSOLE_H_
41 #include <QToolButton>
57 #ifdef COMPILE_ON_WINDOWS
72 #define KVI_CONSOLE_FLAG_FIRSTINAPP 1
73 #define KVI_CONSOLE_FLAG_FIRSTINFRAME 2
105 virtual void resizeEvent(QResizeEvent *
e);
109 virtual QSize sizeHint()
const;
112 void fillStatusString();
122 int triggerOnHighlight(
KviWindow * wnd,
int type,
const QString & nick,
const QString & user,
const QString & host,
const QString & szMsg,
const QString & trigger);
124 void showNotifyList(
bool bShow,
bool bIgnoreSizeChange =
false);
125 static int getSmartColorHashForNick(QString * szNick);
132 inline int selectedCount();
141 inline bool isIPv6Connection();
142 inline bool isNotConnected();
143 bool connectionInProgress();
147 inline QString currentNetworkName();
152 void getUserTipText(
const QString & nick,
KviIrcUserEntry *
e, QString & buffer);
155 NoWindowFlashing = 1,
160 void outputPrivmsg(
KviWindow * wnd,
int type,
const QString & nick,
161 const QString & user,
const QString & host,
const QString & msg,
int iFlags = 0,
const QString & prefix = QString(),
const QString & suffix = QString(),
const QDateTime & datetime = QDateTime());
167 int applyHighlighting(
KviWindow * wnd,
int type,
const QString & nick,
const QString & user,
const QString & host,
const QString & szMsg);
171 void avatarChangedUpdateWindows(
const QString & nick,
const QString & textLine);
172 void avatarChanged(
KviAvatar * avatar,
const QString & nick,
const QString & user,
const QString & host,
const QString & textLine);
173 KviAvatar * setAvatar(
const QString & nick,
const QString & user,
const QString & host,
const QString & szLocalPath,
const QString & szName);
174 void checkDefaultAvatar(
KviIrcUserEntry *
e,
const QString & nick,
const QString & user,
const QString & host);
175 void setAvatarFromOptions();
193 void connectionAttached();
194 void connectionDetached();
201 void addHighlightedChannel(
const QString & szChan);
208 void removeHighlightedChannel(
const QString & szChan);
215 bool isHighlightedChannel(
const QString & szChan) {
return m_pTmpHighLightedChannels->contains(szChan, Qt::CaseInsensitive); };
219 void executeInternalCommand(
int index);
220 void recentUrlsChanged();
222 void ircUriChanged(
const QString &);
223 void toggleNotifyView();
224 void textViewRightClicked();
248 #endif //_KVI_CONSOLE_H_
KviIrcContext * context()
Definition: KviWindow.cpp:1372
bool isHighlightedChannel(const QString &szChan)
Returns true if the channel is highlighted.
Definition: KviConsoleWindow.h:215
bool isIPv6() const
Returns true if the server uses IPv6.
Definition: KviIrcServer.h:277
KviIrcConnection * connection()
Returns the current IRC connection (if any)
Definition: KviWindow.cpp:1365
Definition: KviMainWindow.h:60
Definition: KviConsoleWindow.h:75
virtual void saveProperties(KviConfigurationFile *pCfg)
Definition: KviWindow.cpp:562
The class which manages the irc servers.
Definition: KviIrcServer.h:51
bool isNotConnected()
Definition: KviConsoleWindow.h:238
#define KVIRC_API
Definition: kvi_settings.h:128
virtual void closeEvent(QCloseEvent *pEvent)
Definition: KviWindow.cpp:858
User list view management.
void destroyConnection()
Definition: KviIrcContext.cpp:343
Query widget: abstraction of an IRC query.
int selectedCount()
Returns the number of selected entries in the userlist.
Definition: KviUserListView.h:349
virtual void loadProperties(KviConfigurationFile *pCfg)
Definition: KviWindow.cpp:588
QString currentNetworkName()
Definition: KviConsoleWindow.h:243
bool isConnected()
Definition: KviIrcContext.h:119
KviIrcContext * m_pContext
Definition: KviConsoleWindow.h:98
Definition: KviConfigurationFile.h:48
Definition: KviRegisteredUser.h:35
Definition: KviNotifyList.h:41
KviThemedComboBox * m_pAddressEdit
Definition: KviConsoleWindow.h:94
Definition: KviProxy.h:37
KviUserListView * notifyListView()
Definition: KviConsoleWindow.h:131
QString type()
Definition: KviRuntimeInfo.cpp:646
#define e
Definition: detector.cpp:69
OutputPrivmsgFlags
Definition: KviConsoleWindow.h:153
The class which manages a query.
Definition: KviQueryWindow.h:49
Network handling class.
Definition: KviIrcNetwork.h:47
virtual QPixmap * myIconPtr()
Definition: KviWindow.cpp:619
An abstraction of a connection to an IRC server.
Definition: KviThemedComboBox.h:33
Avatar class.
Definition: KviAvatar.h:52
virtual void applyOptions()
Definition: KviWindow.cpp:1129
State
Definition: KviIrcContext.h:74
QList< int > m_SplitterSizesList
Definition: KviConsoleWindow.h:99
virtual void fillCaptionBuffers()
Definition: KviWindow.cpp:624
Definition: KviWindowToolWidget.h:47
virtual void triggerCreationEvents()
Definition: KviWindow.h:437
The KviDnsResolver class.
Definition: KviDnsResolver.h:93
#define KVI_ASSERT(__condition__)
GNUC
Definition: kvi_debug.h:138
KviIrcConnectionTarget * target()
Returns the target of this connection.
Definition: KviIrcConnection.h:209
virtual void getWindowListTipText(QString &szBuffer)
Definition: KviWindow.h:348
QString m_szStatusString
Definition: KviConsoleWindow.h:95
KviWindowToolPageButton * m_pNotifyViewButton
Definition: KviConsoleWindow.h:93
C++ Template based double linked pointer list class.
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
Lower stack protocol for IRC connection.
KviIrcServer * server()
Definition: KviIrcConnectionTarget.h:56
A class to handle the entries of the user database.
Definition: KviIrcUserEntry.h:45
const QString & statusString()
Definition: KviConsoleWindow.h:187
The class which manages the user database.
Definition: KviIrcUserDataBase.h:45
QStringList * m_pTmpHighLightedChannels
Definition: KviConsoleWindow.h:97
Contains the KviWindow class.
#define u
Definition: detector.cpp:85
virtual void getBaseLogFileName(QString &szBuffer)
Definition: KviWindow.cpp:557
KviIrcContext * context()
Definition: KviConsoleWindow.h:128
Definition: KviIrcContext.h:76
Channel widget: abstraction of an IRC channel.
QString m_szOwnSmartColor
Definition: KviConsoleWindow.h:96
bool isConnected()
Definition: KviConsoleWindow.h:140
void terminateConnectionRequest(bool bForce, const QString &szQuitMessage=QString(), bool bSimulateUnexpectedDisconnect=false)
Definition: KviIrcContext.cpp:859
This file contains compile time settings.
KviUserListView * m_pNotifyListView
Definition: KviConsoleWindow.h:92
User list view management class.
Definition: KviUserListView.h:226
Definition: KviIrcContext.h:58
This class is the lowest level of the KVIrc networking stack.
Definition: KviIrcSocket.h:71
friend class KviConsoleWindow
Definition: KviIrcContext.h:60
int selectedCount()
Definition: KviConsoleWindow.h:227
KviIrcContext::State state()
Definition: KviConsoleWindow.h:137
int m_iFlags
Definition: KviConsoleWindow.h:90
State state()
Definition: KviIrcContext.h:118
bool isIPv6Connection()
Definition: KviConsoleWindow.h:232
The class which manages a channel.
Definition: KviChannelWindow.h:113