1 #ifndef _KVI_IRCCONNECTIONSERVERINFO_H_
2 #define _KVI_IRCCONNECTIONSERVERINFO_H_
31 #include <QStringList>
47 virtual const QString & getChannelModeDescription(
char mode);
48 virtual const QString & getUserModeDescription(QChar mode);
49 virtual QChar getUserModeRequirement(QChar mode);
334 const char *
software() {
return m_pServInfo ? m_pServInfo->getSoftware() : 0; };
337 const QString &
name() {
return m_szName; };
357 void setServerVersion(
const QString &
version);
364 QChar
getUserModeRequirement(QChar mode) {
return m_pServInfo ? m_pServInfo->getUserModeRequirement(mode) : QChar::Null; };
366 bool isSupportedChannelType(QChar
c);
367 bool isSupportedModePrefix(QChar
c);
368 bool isSupportedModeFlag(QChar
c);
369 QChar modePrefixChar(kvi_u32_t flag);
370 QChar modeFlagChar(kvi_u32_t flag);
371 kvi_u32_t modeFlagFromPrefixChar(QChar
c);
372 kvi_u32_t modeFlagFromModeChar(QChar
c);
376 void setName(
const QString & szName) { m_szName = szName; };
377 void setSupportedUserModes(
const QString & szSupportedUserModes) { m_szSupportedUserModes = szSupportedUserModes; };
378 void setSupportedChannelModes(
const QString & szSupportedChannelModes);
379 void setSupportedModePrefixes(
const QString & szSupportedModePrefixes,
const QString & szSupportedModeFlags);
383 void addSupportedCaps(
const QString & szCapList);
388 void buildModePrefixTable();
const QString & supportedChannelTypes()
Definition: KviIrcConnectionServerInfo.h:341
QString m_szSupportedModeFlags
Definition: KviIrcConnectionServerInfo.h:315
virtual bool getNeedsOperToSetS()
Definition: KviIrcConnectionServerInfo.h:197
virtual char getRegisterModeChar()
Definition: KviIrcConnectionServerInfo.h:263
KviNemesisIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:240
virtual bool getNeedsOpToListModeseI()
Definition: KviIrcConnectionServerInfo.h:84
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:291
KviPlexusIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:115
virtual bool getNeedsOpToListModeseI()
Definition: KviIrcConnectionServerInfo.h:135
Definition: KviIrcConnectionServerInfo.h:60
virtual bool getNeedsOperToSetS()
Definition: KviIrcConnectionServerInfo.h:167
virtual const QString & getChannelModeDescription(char mode)
Definition: KviIrcConnectionServerInfo.cpp:1917
void setNetworkName(const QString &szName)
Definition: KviIrcConnectionServerInfo.h:375
virtual bool getNeedsOpToListModeseI()
Definition: KviIrcConnectionServerInfo.h:265
bool supportsCodePages()
Definition: KviIrcConnectionServerInfo.h:351
Definition: KviConsoleWindow.h:75
Definition: KviIrcConnectionServerInfo.h:200
QString m_szParameterWhenSetModes
Definition: KviIrcConnectionServerInfo.h:326
Definition: KviIrcConnectionServerInfo.h:222
#define KVIRC_API
Definition: kvi_settings.h:128
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
KviBahamutIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:258
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:70
virtual bool getNeedsOperToSetS()
Definition: KviIrcConnectionServerInfo.h:154
QString m_szSupportedChannelModes
Definition: KviIrcConnectionServerInfo.h:311
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:120
KviHyperionIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:272
virtual bool getNeedsOpToListModeseI()
Definition: KviIrcConnectionServerInfo.h:233
Definition: KviIrcConnectionServerInfo.h:254
QString m_szParameterModes
Definition: KviIrcConnectionServerInfo.h:324
const QString & networkName()
Definition: KviIrcConnectionServerInfo.h:338
const QString & supportedChannelModes()
Definition: KviIrcConnectionServerInfo.h:340
QString m_szListModes
Definition: KviIrcConnectionServerInfo.h:322
An abstraction of a connection to an IRC server.
Definition: KviIrcConnection.h:95
char registerModeChar()
Definition: KviIrcConnectionServerInfo.h:333
const QString & supportedParameterWhenSetModes()
Definition: KviIrcConnectionServerInfo.h:346
int m_iMaxModeChanges
Definition: KviIrcConnectionServerInfo.h:320
KviOftcIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:128
int maxModeChanges()
Definition: KviIrcConnectionServerInfo.h:355
virtual QChar getUserModeRequirement(QChar mode)
Definition: KviIrcConnectionServerInfo.cpp:1283
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:180
Definition: KviIrcConnectionServerInfo.h:188
virtual bool getNeedsOperToSetS()
Definition: KviIrcConnectionServerInfo.h:96
KviUnreal40IrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:216
Definition: KviIrcConnectionServerInfo.h:87
bool m_bSupportsCap
Definition: KviIrcConnectionServerInfo.h:329
void setSupportsWhox(bool bSupportsWhox)
Definition: KviIrcConnectionServerInfo.h:386
void setMaxModeChanges(int iModes)
Definition: KviIrcConnectionServerInfo.h:385
KviBasicIrcServerInfo * m_pServInfo
Definition: KviIrcConnectionServerInfo.h:307
bool supportsCap()
Definition: KviIrcConnectionServerInfo.h:348
virtual char getRegisterModeChar()
Definition: KviIrcConnectionServerInfo.h:69
KviIrcuIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:146
Definition: KviIrcConnectionServerInfo.h:236
bool m_bSupportsWatchList
Definition: KviIrcConnectionServerInfo.h:317
virtual bool getNeedsOpToListModeseI()
Definition: KviIrcConnectionServerInfo.h:292
virtual bool getNeedsOperToSetS()
Definition: KviIrcConnectionServerInfo.h:53
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:166
virtual const QString & getUserModeDescription(QChar mode)
Definition: KviIrcConnectionServerInfo.cpp:565
virtual char getRegisterModeChar()
Definition: KviIrcConnectionServerInfo.h:107
void setSupportsWatchList(bool bSupportsWatchList)
Definition: KviIrcConnectionServerInfo.h:381
Definition: KviIrcConnectionServerInfo.h:124
bool supportsWatchList()
Definition: KviIrcConnectionServerInfo.h:350
virtual char getRegisterModeChar()
Definition: KviIrcConnectionServerInfo.h:82
void setSupportedChannelTypes(const QString &szSupportedChannelTypes)
Definition: KviIrcConnectionServerInfo.h:380
virtual char getRegisterModeChar()
Definition: KviIrcConnectionServerInfo.h:179
QString m_szSupportedChannelTypes
Definition: KviIrcConnectionServerInfo.h:316
Definition: KviIrcConnectionServerInfo.h:245
QChar getUserModeRequirement(QChar mode)
Definition: KviIrcConnectionServerInfo.h:364
virtual bool getNeedsOpToListModeseI()
Definition: KviIrcConnectionServerInfo.h:153
const QString & name()
Definition: KviIrcConnectionServerInfo.h:337
virtual QChar getUserModeRequirement(QChar mode)
Definition: KviIrcConnectionServerInfo.cpp:1086
kvi_u32_t * m_pModePrefixTable
Definition: KviIrcConnectionServerInfo.h:313
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:277
const QString & supportedPlainModes()
Definition: KviIrcConnectionServerInfo.h:347
const QString & getUserModeDescription(QChar mode)
Definition: KviIrcConnectionServerInfo.h:360
KviCharybdisServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:90
KviUnreal32IrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:205
Definition: KviIrcConnectionServerInfo.h:281
bool supportsWhox()
Definition: KviIrcConnectionServerInfo.h:352
const char * software()
Definition: KviIrcConnectionServerInfo.h:334
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:83
virtual QChar getUserModeRequirement(QChar mode)
Definition: KviIrcConnectionServerInfo.cpp:1173
virtual bool getNeedsOpToListModeseI()
Definition: KviIrcConnectionServerInfo.h:196
const QString Empty
A global empty string (note that this is ALSO NULL under Qt 3.x)
Definition: KviQString.cpp:49
const QString & supportedModeFlags()
Definition: KviIrcConnectionServerInfo.h:343
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:51
virtual const QString & getUserModeDescription(QChar mode)
Definition: KviIrcConnectionServerInfo.cpp:467
Definition: KviIrcConnectionServerInfo.h:35
virtual const QString & getUserModeDescription(QChar mode)
Definition: KviIrcConnectionServerInfo.cpp:305
KviDarenetIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:174
int maxTopicLen()
Definition: KviIrcConnectionServerInfo.h:354
QString m_szSupportedModePrefixes
Definition: KviIrcConnectionServerInfo.h:312
virtual bool getNeedsOpToListModeseI()
Definition: KviIrcConnectionServerInfo.h:278
void setMaxTopicLen(int iTopLen)
Definition: KviIrcConnectionServerInfo.h:384
Definition: KviIrcConnectionServerInfo.h:296
void setSupportsCodePages(bool bSupportsCodePages)
Definition: KviIrcConnectionServerInfo.h:382
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:152
KviInspIRCdIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:285
virtual const QString & getChannelModeDescription(char mode)
Definition: KviIrcConnectionServerInfo.cpp:1619
Definition: KviIrcConnectionServerInfo.h:213
QString m_szServerVersion
Definition: KviIrcConnectionServerInfo.h:39
KviIrcdRatboxIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:77
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:108
bool getNeedsOpToListModeseI()
Definition: KviIrcConnectionServerInfo.h:335
KviNemesis20IrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:248
Definition: KviIrcConnectionServerInfo.h:157
Definition: KviIrcConnectionServerInfo.h:99
QString m_szPlainModes
Definition: KviIrcConnectionServerInfo.h:328
void setSupportedUserModes(const QString &szSupportedUserModes)
Definition: KviIrcConnectionServerInfo.h:377
KviIrcdSevenIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:103
virtual bool getNeedsOperToSetS()
Definition: KviIrcConnectionServerInfo.h:293
KviUnrealIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:191
virtual const QString & getChannelModeDescription(char mode)
Definition: KviIrcConnectionServerInfo.cpp:1852
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:250
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:242
QString m_szSupportedUserModes
Definition: KviIrcConnectionServerInfo.h:310
KviSnircdIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:161
Definition: KviIrcConnectionServerInfo.h:170
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:264
bool m_bSupportsCodePages
Definition: KviIrcConnectionServerInfo.h:318
bool m_bSupportsWhox
Definition: KviIrcConnectionServerInfo.h:331
virtual char getRegisterModeChar()
Definition: KviIrcConnectionServerInfo.h:133
KviIrcConnectionServerInfo * m_pParent
Definition: KviIrcConnectionServerInfo.h:40
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:195
bool getNeedsOperToSetS()
Definition: KviIrcConnectionServerInfo.h:336
virtual bool getNeedsOperToSetS()
Definition: KviIrcConnectionServerInfo.h:251
const QStringList & supportedCaps()
Definition: KviIrcConnectionServerInfo.h:349
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:219
KviCritenIrcServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:226
virtual const QString & getChannelModeDescription(char mode)
Definition: KviIrcConnectionServerInfo.cpp:1765
virtual char getRegisterModeChar()
Definition: KviIrcConnectionServerInfo.h:151
QStringList m_lSupportedCaps
Definition: KviIrcConnectionServerInfo.h:330
QString version()
Definition: KviRuntimeInfo.cpp:671
virtual char getRegisterModeChar()
Definition: KviIrcConnectionServerInfo.h:194
virtual const QString & getChannelModeDescription(char mode)
Definition: KviIrcConnectionServerInfo.cpp:1654
virtual const QString & getUserModeDescription(QChar mode)
Definition: KviIrcConnectionServerInfo.cpp:355
Definition: KviIrcConnectionServerInfo.h:268
Definition: KviIrcConnectionServerInfo.h:142
Definition: KviIrcServerParser.h:115
virtual QChar getUserModeRequirement(QChar mode)
Definition: KviIrcConnectionServerInfo.cpp:1147
const QString & supportedModePrefixes()
Definition: KviIrcConnectionServerInfo.h:342
void setName(const QString &szName)
Definition: KviIrcConnectionServerInfo.h:376
const QString & supportedListModes()
Definition: KviIrcConnectionServerInfo.h:344
virtual char getRegisterModeChar()
Definition: KviIrcConnectionServerInfo.h:276
const QString & getChannelModeDescription(char mode)
Definition: KviIrcConnectionServerInfo.h:359
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:232
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:134
virtual const QString & getUserModeDescription(QChar mode)
Definition: KviIrcConnectionServerInfo.cpp:423
virtual char getRegisterModeChar()
Definition: KviIrcConnectionServerInfo.h:231
QString m_szNetworkName
Definition: KviIrcConnectionServerInfo.h:308
const QString & supportedParameterModes()
Definition: KviIrcConnectionServerInfo.h:345
This file contains compile time settings.
Definition: KviIrcConnectionServerInfo.h:111
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:210
virtual const QString & getChannelModeDescription(char mode)
Definition: KviIrcConnectionServerInfo.cpp:1560
virtual bool getNeedsOpToListModeseI()
Definition: KviIrcConnectionServerInfo.h:52
virtual const char * getSoftware()
Definition: KviIrcConnectionServerInfo.h:95
int m_iMaxTopicLen
Definition: KviIrcConnectionServerInfo.h:319
virtual char getRegisterModeChar()
Definition: KviIrcConnectionServerInfo.h:290
virtual QChar getUserModeRequirement(QChar mode)
Definition: KviIrcConnectionServerInfo.cpp:1115
virtual bool getNeedsOpToListModeseI()
Definition: KviIrcConnectionServerInfo.h:121
Helper functions for the QString class.
QString m_szName
Definition: KviIrcConnectionServerInfo.h:309
const QString & supportedUserModes()
Definition: KviIrcConnectionServerInfo.h:339
virtual char getRegisterModeChar()
Definition: KviIrcConnectionServerInfo.h:50
KviHybridServerInfo(KviIrcConnectionServerInfo *pParent=0, const QString &version=KviQString::Empty)
Definition: KviIrcConnectionServerInfo.h:64
unsigned int m_uPrefixes
Definition: KviIrcConnectionServerInfo.h:314
Definition: KviIrcConnectionServerInfo.h:73
virtual bool getNeedsOpToListModeseI()
Definition: KviIrcConnectionServerInfo.h:181