#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/opimaccesstemplate.h>
Inheritance diagram for OPimAccessTemplate< T >:


Public Types | |
| typedef ORecordList< T > | List |
| typedef OPimAccessBackend< T > | BackEnd |
| typedef OPimCache< T > | Cache |
| enum | Access { Random = 0, SortedAccess } |
Public Member Functions | |
| OPimAccessTemplate (BackEnd *end) | |
| virtual | ~OPimAccessTemplate () |
| bool | load () |
| virtual bool | reload () |
| bool | save () |
| bool | wasChangedExternally () const |
| virtual List | allRecords () const |
| virtual List | matchRegexp (const QRegExp &r) const |
| virtual List | queryByExample (const T &t, int querySettings, const QDateTime &d=QDateTime()) |
| virtual T | find (int uid) const |
| virtual T | find (int uid, const QArray< int > &, uint current, typename OTemplateBase< T >::CacheDirection dir=OTemplateBase< T >::Forward) const |
| void | clear () |
| virtual bool | add (const T &t) |
| bool | add (const OPimRecord &) |
| virtual bool | remove (const T &t) |
| bool | remove (int uid) |
| bool | remove (const OPimRecord &) |
| virtual bool | replace (const T &t) |
| void | setReadAhead (uint count) |
| void | cache (const T &) const |
| void | setSaneCacheSize (int) |
| QArray< int > | records () const |
Protected Member Functions | |
| void | invalidateCache () |
| void | setBackEnd (BackEnd *end) |
| BackEnd * | backEnd () |
Protected Attributes | |
| BackEnd * | m_backEnd |
| Cache | m_cache |
Private Attributes | |
| OPimAccessTemplatePrivate * | d |
Definition at line 24 of file opimaccesstemplate.h.
|
|||||
|
Definition at line 31 of file opimaccesstemplate.h. |
|
|||||
|
Definition at line 32 of file opimaccesstemplate.h. |
|
|||||
|
Definition at line 30 of file opimaccesstemplate.h. |
|
|||||
|
Definition at line 26 of file opimaccesstemplate.h. |
|
||||||||||
|
c'tor BackEnd enum Access a small hint on how to handle the backend Definition at line 162 of file opimaccesstemplate.h. References OPimAccessBackend< T >::setFrontend(). |
|
|||||||||
|
Definition at line 169 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::m_backEnd, and qWarning(). |
|
||||||||||
|
Implements OPimBase. Definition at line 245 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::add(), and t. |
|
||||||||||
|
add T to the backend
Definition at line 240 of file opimaccesstemplate.h. References OPimAccessBackend< T >::add(), OPimAccessTemplate< T >::cache(), and OPimAccessTemplate< T >::m_backEnd. Referenced by OPimAccessTemplate< T >::add(), and Datebook::BookManager::add(). |
|
|||||||||
|
return a List of records you can iterate over them Definition at line 188 of file opimaccesstemplate.h. References OPimAccessBackend< T >::allRecords(), and OPimAccessTemplate< T >::m_backEnd. |
|
|||||||||
|
returns the backend Definition at line 276 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::m_backEnd. |
|
||||||||||
|
For internal use only.
Implements OTemplateBase< T >. Definition at line 290 of file opimaccesstemplate.h. Referenced by OPimAccessTemplate< T >::add(), and OPimAccessTemplate< T >::find(). |
|
|||||||||
|
clears the backend and invalidates the backend Implements OPimBase. Definition at line 235 of file opimaccesstemplate.h. References OPimAccessBackend< T >::clear(), OPimAccessTemplate< T >::invalidateCache(), and OPimAccessTemplate< T >::m_backEnd. |
|
||||||||||||||||||||||||
|
read ahead cache find method ;) Definition at line 218 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::cache(), OPimCache< T >::contains(), OPimAccessBackend< T >::find(), OPimCache< T >::find(), OPimAccessTemplate< T >::m_backEnd, OPimAccessTemplate< T >::m_cache, and t. |
|
||||||||||
|
find the OPimRecord uid Implements OTemplateBase< T >. Definition at line 212 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::cache(), OPimAccessBackend< T >::find(), OPimAccessTemplate< T >::m_backEnd, and t. Referenced by Datebook::BookManager::event(). |
|
|||||||||
|
invalidate the cache Definition at line 272 of file opimaccesstemplate.h. References OPimCache< T >::invalidate(), and OPimAccessTemplate< T >::m_cache. Referenced by OPimAccessTemplate< T >::clear(), OPimAccessTemplate< T >::load(), and OPimAccessTemplate< T >::reload(). |
|
|||||||||
|
load from the backend Implements OPimBase. Definition at line 174 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::invalidateCache(), OPimAccessBackend< T >::load(), and OPimAccessTemplate< T >::m_backEnd. Referenced by Datebook::BookManager::load(). |
|
||||||||||
|
return a List of records that match the regex Definition at line 194 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::m_backEnd, and OPimAccessBackend< T >::matchRegexp(). |
|
||||||||||||||||||||
|
queryByExample.
Definition at line 205 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::m_backEnd, and OPimAccessBackend< T >::queryByExample(). |
|
|||||||||
|
Implements OPimBase. Definition at line 200 of file opimaccesstemplate.h. References OPimAccessBackend< T >::allRecords(), and OPimAccessTemplate< T >::m_backEnd. |
|
|||||||||
|
Reload database. You should execute this function if the external database was changed. This function will load the external database and afterwards rejoin the local changes. Therefore the local database will be set consistent. Definition at line 179 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::invalidateCache(), OPimAccessTemplate< T >::m_backEnd, and OPimAccessBackend< T >::reload(). Referenced by Datebook::BookManager::reload(). |
|
||||||||||
|
Implements OPimBase. Definition at line 263 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::remove(). |
|
||||||||||
|
remove the OPimRecord with uid
Implements OPimBase. Definition at line 258 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::m_backEnd, OPimAccessTemplate< T >::m_cache, OPimAccessBackend< T >::remove(), and OPimCache< T >::remove(). |
|
||||||||||
|
remove T from the backend
Definition at line 254 of file opimaccesstemplate.h. Referenced by OPimAccessTemplate< T >::remove(), and Datebook::BookManager::remove(). |
|
||||||||||
|
replace T from backend
Definition at line 267 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::m_backEnd, OPimAccessTemplate< T >::m_cache, OPimAccessBackend< T >::replace(), and OPimCache< T >::replace(). Referenced by Datebook::BookManager::update(). |
|
|||||||||
|
Save contacts database. Save is more a "commit". After calling this function, all changes are public available.
Implements OPimBase. Reimplemented in OContactAccess. Definition at line 184 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::m_backEnd, and OPimAccessBackend< T >::save(). Referenced by OContactAccess::save(), Opie::OPimContactAccess::save(), and Datebook::BookManager::save(). |
|
||||||||||
|
Definition at line 284 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::m_backEnd, and OPimAccessBackend< T >::setFrontend(). Referenced by OContactAccess::OContactAccess(), and Opie::OPimContactAccess::OPimContactAccess(). |
|
||||||||||
|
Definition at line 299 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::m_backEnd, and OPimAccessBackend< T >::setReadAhead(). |
|
||||||||||
|
Implements OTemplateBase< T >. Definition at line 295 of file opimaccesstemplate.h. References OPimAccessTemplate< T >::m_cache, and OPimCache< T >::setSize(). |
|
|||||||||
|
if the resource was changed externally You should use the signal handling instead of polling possible changes ! zecke: Do you implement a signal for otodoaccess ? Reimplemented in OContactAccess. Definition at line 280 of file opimaccesstemplate.h. |
|
|||||
|
Reimplemented from OTemplateBase< T >. Reimplemented in OContactAccess, ODateBookAccess, and OTodoAccess. Definition at line 157 of file opimaccesstemplate.h. |
|
|||||
|
|||||
|
Definition at line 154 of file opimaccesstemplate.h. Referenced by OPimAccessTemplate< T >::find(), OPimAccessTemplate< T >::invalidateCache(), OPimAccessTemplate< T >::remove(), OPimAccessTemplate< T >::replace(), and OPimAccessTemplate< T >::setSaneCacheSize(). |
1.4.2