1 #ifndef _KVI_KVS_SWITCHLIST_H_
2 #define _KVI_KVS_SWITCHLIST_H_
45 void addShort(
unsigned short uShortKey,
KviKvsVariant * pVariant);
46 void addLong(
const QString & szLongKey,
KviKvsVariant * pVariant);
48 bool isEmpty() {
return ((m_pShortSwitchDict == 0) && (m_pLongSwitchDict == 0)); };
52 return m_pShortSwitchDict ? m_pShortSwitchDict->find(c.unicode()) : 0;
57 return m_pShortSwitchDict ? m_pShortSwitchDict->find((
int)uShortKey) : 0;
62 return m_pLongSwitchDict ? m_pLongSwitchDict->find(szLongKey) : 0;
70 t = m_pLongSwitchDict->find(szLongKey);
74 return m_pShortSwitchDict ? m_pShortSwitchDict->find((
int)uShortKey) : 0;
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
#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
Definition: KviKvsSwitchList.h:33
KviPointerHashTable< QString, KviKvsVariant > * m_pLongSwitchDict
Definition: KviKvsSwitchList.h:41
KviKvsVariant * find(const QString &szLongKey)
Definition: KviKvsSwitchList.h:60
bool isEmpty()
Definition: KviKvsSwitchList.h:48
KviKvsVariant * find(unsigned short uShortKey)
Definition: KviKvsSwitchList.h:55
KviKvsVariant * find(const QChar &c)
Definition: KviKvsSwitchList.h:50
QHashIterator< int, QFile * > t(getDict)
KviPointerHashTable< unsigned short, KviKvsVariant > * m_pShortSwitchDict
Definition: KviKvsSwitchList.h:40
void asString(QString &szBuffer) const
Evaluates anything to a string.
Definition: KviKvsVariant.cpp:846
bool getAsStringIfExisting(unsigned short uShortKey, const QString &szLongKey, QString &szBuffer)
Definition: KviKvsSwitchList.h:77
Handling of variant data type in KVS.
char szBuffer[4096]
Definition: winamp.cpp:77
KviKvsVariant * find(unsigned short uShortKey, const QString &szLongKey)
Definition: KviKvsSwitchList.h:65
This file contains compile time settings.
#define v
Definition: detector.cpp:86
Helper functions for the QString class.