
Public Member Functions | |
| void | insert (const QString &fileName, const ConfigGroupMap &cfg, const ConfigPrivate *priv) |
| bool | find (const QString &fileName, ConfigGroupMap &cfg, ConfigPrivate **priv) |
Static Public Member Functions | |
| static ConfigCache * | instance () |
Protected Member Functions | |
| void | timerEvent (QTimerEvent *) |
Private Member Functions | |
| ConfigCache () | |
| void | remove (const QString &fileName) |
| void | removeLru () |
Private Attributes | |
| QMap< QString, ConfigData > | m_cached |
| unsigned int | m_totalSize |
| int | m_tid |
Static Private Attributes | |
| static ConfigCache * | m_inst = 0 |
| static const unsigned int | CONFIG_CACHE_SIZE = 8192 |
| static const unsigned int | CONFIG_CACHE_TIMEOUT = 1000 |
|
|
Definition at line 122 of file config.cpp. References qApp. Referenced by instance(). |
|
||||||||||||||||
|
Definition at line 190 of file config.cpp. References ConfigData::cfg, data, QFile::encodeName(), QMap< Key, T >::end(), QMap< Key, T >::find(), m_cached, ConfigData::mtime, ConfigData::priv, ConfigData::size, and ConfigData::used. |
|
||||||||||||||||
|
Definition at line 162 of file config.cpp. References CONFIG_CACHE_SIZE, CONFIG_CACHE_TIMEOUT, data, QFile::encodeName(), QMap< Key, T >::insert(), m_cached, m_tid, m_totalSize, remove(), and ConfigData::size. |
|
|
Definition at line 123 of file config.cpp. References ConfigCache(), and m_inst. Referenced by Config::read(), and Config::write(). |
|
|
Definition at line 130 of file config.cpp. References QMap< Key, T >::end(), QMap< Key, T >::find(), m_cached, m_totalSize, and QMap< Key, T >::remove(). Referenced by insert(). |
|
|
Definition at line 140 of file config.cpp. References QMap< Key, T >::begin(), QMap< Key, T >::end(), m_cached, m_totalSize, and QMap< Key, T >::remove(). Referenced by timerEvent(). |
|
|
Definition at line 154 of file config.cpp. References CONFIG_CACHE_SIZE, m_tid, m_totalSize, and removeLru(). |
|
|
Definition at line 114 of file config.cpp. Referenced by insert(), and timerEvent(). |
|
|
Definition at line 115 of file config.cpp. Referenced by insert(). |
|
|
Definition at line 109 of file config.cpp. Referenced by find(), insert(), remove(), and removeLru(). |
|
|
Definition at line 118 of file config.cpp. Referenced by instance(). |
|
|
Definition at line 111 of file config.cpp. Referenced by insert(), and timerEvent(). |
|
|
Definition at line 110 of file config.cpp. Referenced by insert(), remove(), removeLru(), and timerEvent(). |
1.4.2