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;
Handling of variant data type in KVS.
Helper functions for the QString class.
Definition KviKvsSwitchList.h:34
bool isEmpty()
Definition KviKvsSwitchList.h:48
KviKvsVariant * find(const QString &szLongKey)
Definition KviKvsSwitchList.h:60
KviPointerHashTable< QString, KviKvsVariant > * m_pLongSwitchDict
Definition KviKvsSwitchList.h:41
KviPointerHashTable< unsigned short, KviKvsVariant > * m_pShortSwitchDict
Definition KviKvsSwitchList.h:40
KviKvsVariant * find(unsigned short uShortKey, const QString &szLongKey)
Definition KviKvsSwitchList.h:65
KviKvsVariant * find(const QChar &c)
Definition KviKvsSwitchList.h:50
bool getAsStringIfExisting(unsigned short uShortKey, const QString &szLongKey, QString &szBuffer)
Definition KviKvsSwitchList.h:77
KviKvsVariant * find(unsigned short uShortKey)
Definition KviKvsSwitchList.h:55
This class defines a new data type which contains variant data.
Definition KviKvsVariant.h:352
A fast pointer hash table implementation.
Definition KviPointerHashTable.h:450
T * find(const Key &hKey)
Returns the item associated to the key.
Definition KviPointerHashTable.h:471
#define t
Definition detector.cpp:85
#define v
Definition detector.cpp:87
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127
char szBuffer[4096]
Definition winamp.cpp:77