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

Public Types | |
| typedef OTemplateBase< T > | Frontend |
Public Member Functions | |
| OPimAccessBackend (int access=0) | |
| virtual | ~OPimAccessBackend () |
| virtual bool | load ()=0 |
| virtual bool | reload ()=0 |
| virtual bool | save ()=0 |
| virtual QArray< int > | allRecords () const =0 |
| virtual QArray< int > | matchRegexp (const QRegExp &r) const =0 |
| virtual QArray< int > | queryByExample (const T &t, int settings, const QDateTime &d=QDateTime())=0 |
| virtual T | find (int uid) const =0 |
| virtual T | find (int uid, const QArray< int > &items, uint current, typename Frontend::CacheDirection) const |
| virtual void | clear ()=0 |
| virtual bool | add (const T &t)=0 |
| Add the record to the internal database. | |
| virtual bool | remove (int uid)=0 |
| virtual bool | replace (const T &t)=0 |
| Take this Record and replace the old version. | |
| void | setFrontend (Frontend *front) |
| void | setReadAhead (uint count) |
| Set the number of items to Read-Ahead/Read-Behind. | |
Protected Member Functions | |
| int | access () const |
| void | cache (const T &t) const |
| Add the Record to the PIM Cache. | |
| void | setSaneCacheSize (int) |
| Give a hint on the number of too cached items. | |
| uint | readAhead () const |
| Return the number of Items to be ReadAhead. | |
Private Attributes | |
| OPimAccessBackendPrivate * | d |
| Frontend * | m_front |
| uint | m_read |
| int | m_acc |
Definition at line 21 of file opimaccessbackend.h.
|
|||||
|
Definition at line 23 of file opimaccessbackend.h. |
|
||||||||||
|
The access hint from the frontend Definition at line 120 of file opimaccessbackend.h. References l, and OPimAccessBackend< T >::m_front. |
|
|||||||||
|
Definition at line 126 of file opimaccessbackend.h. |
|
|||||||||
|
Definition at line 157 of file opimaccessbackend.h. References OPimAccessBackend< T >::m_acc. |
|
||||||||||
|
Add the record to the internal database. add T Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, OContactAccessBackend_XML, ODateBookAccessBackend_SQL, ODateBookAccessBackend_XML, OTodoAccessBackendSQL, OTodoAccessVCal, and OTodoAccessXML. Referenced by OPimAccessTemplate< T >::add(). |
|
|||||||||
|
return an array of all available uids Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, OContactAccessBackend_XML, ODateBookAccessBackend_SQL, ODateBookAccessBackend_XML, OTodoAccessBackendSQL, OTodoAccessVCal, and OTodoAccessXML. Referenced by OPimAccessTemplate< T >::allRecords(), and OPimAccessTemplate< T >::records(). |
|
||||||||||
|
Add the Record to the PIM Cache. This will add the Record to the PIM cache, which is owned by the FrontEnd. If no FrontEnd is available the item will not be cached.
Definition at line 134 of file opimaccessbackend.h. References OTemplateBase< T >::cache(), and OPimAccessBackend< T >::m_front. |
|
|||||||||
|
clear the back end Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, OContactAccessBackend_XML, ODateBookAccessBackend_SQL, ODateBookAccessBackend_XML, OTodoAccessBackendSQL, OTodoAccessVCal, and OTodoAccessXML. Referenced by OPimAccessTemplate< T >::clear(). |
|
||||||||||||||||||||||||
|
Reimplemented in OTodoAccessBackendSQL. Definition at line 144 of file opimaccessbackend.h. References OPimAccessBackend< T >::find(). |
|
||||||||||
|
find the OPimRecord with uid
Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, OContactAccessBackend_XML, ODateBookAccessBackend_SQL, ODateBookAccessBackend_XML, OTodoAccessBackendSQL, OTodoAccessVCal, and OTodoAccessXML. Referenced by OPimAccessTemplate< T >::find(), and OPimAccessBackend< T >::find(). |
|
|||||||||
|
load the resource Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, OContactAccessBackend_XML, ODateBookAccessBackend_SQL, ODateBookAccessBackend_XML, OTodoAccessBackendSQL, OTodoAccessVCal, and OTodoAccessXML. Referenced by OPimAccessTemplate< T >::load(). |
|
||||||||||
|
return a List of records that match the regex Implemented in OContactAccessBackend, OContactAccessBackend_SQL, OContactAccessBackend_VCard, OContactAccessBackend_XML, ODateBookAccessBackend_SQL, ODateBookAccessBackend_XML, OTodoAccessBackendSQL, OTodoAccessVCal, and OTodoAccessXML. Referenced by OPimAccessTemplate< T >::matchRegexp(). |
|
||||||||||||||||||||
|
queryByExample for T with the given Settings Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, OContactAccessBackend_XML, ODateBookAccessBackend_SQL, ODateBookAccessBackend_XML, OTodoAccessBackendSQL, OTodoAccessVCal, and OTodoAccessXML. Referenced by OPimAccessTemplate< T >::queryByExample(). |
|
|||||||||
|
Return the number of Items to be ReadAhead.
Definition at line 153 of file opimaccessbackend.h. References OPimAccessBackend< T >::m_read. |
|
|||||||||
|
reload the resource Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, OContactAccessBackend_XML, ODateBookAccessBackend_SQL, ODateBookAccessBackend_XML, OTodoAccessBackendSQL, OTodoAccessVCal, and OTodoAccessXML. Referenced by OPimAccessTemplate< T >::reload(). |
|
||||||||||
|
remove Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, OContactAccessBackend_XML, ODateBookAccessBackend_SQL, ODateBookAccessBackend_XML, OTodoAccessBackendSQL, OTodoAccessVCal, and OTodoAccessXML. Referenced by OPimAccessTemplate< T >::remove(). |
|
||||||||||
|
Take this Record and replace the old version. replace a record with T.uid() Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, OContactAccessBackend_XML, ODateBookAccessBackend_SQL, ODateBookAccessBackend_XML, OTodoAccessBackendSQL, OTodoAccessVCal, and OTodoAccessXML. Referenced by OPimAccessTemplate< T >::replace(). |
|
|||||||||
|
save the resource and all it's changes Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, OContactAccessBackend_XML, ODateBookAccessBackend_SQL, ODateBookAccessBackend_XML, OTodoAccessBackendSQL, OTodoAccessVCal, and OTodoAccessXML. Referenced by OPimAccessTemplate< T >::save(). |
|
||||||||||
|
@aram fron The Frontend that uses this backend This function is called by the frontend and is used Definition at line 130 of file opimaccessbackend.h. References OPimAccessBackend< T >::m_front. Referenced by OPimAccessTemplate< T >::OPimAccessTemplate(), and OPimAccessTemplate< T >::setBackEnd(). |
|
||||||||||
|
Set the number of items to Read-Ahead/Read-Behind. set the read ahead count Definition at line 149 of file opimaccessbackend.h. References OPimAccessBackend< T >::m_read. Referenced by OPimAccessTemplate< T >::setReadAhead(). |
|
||||||||||
|
Give a hint on the number of too cached items. use a prime number here! Definition at line 139 of file opimaccessbackend.h. References OPimAccessBackend< T >::m_front, and OTemplateBase< T >::setSaneCacheSize(). |
|
|||||
|
Reimplemented in OContactAccessBackend, ODateBookAccessBackend, ODateBookAccessBackend_SQL, ODateBookAccessBackend_XML, OTodoAccessBackend, and OTodoAccessXML. Definition at line 112 of file opimaccessbackend.h. |
|
|||||
|
Definition at line 115 of file opimaccessbackend.h. Referenced by OPimAccessBackend< T >::access(). |
|
|||||
|
Definition at line 113 of file opimaccessbackend.h. Referenced by OPimAccessBackend< T >::cache(), OPimAccessBackend< T >::OPimAccessBackend(), OPimAccessBackend< T >::setFrontend(), and OPimAccessBackend< T >::setSaneCacheSize(). |
|
|||||
|
Definition at line 114 of file opimaccessbackend.h. Referenced by OPimAccessBackend< T >::readAhead(), and OPimAccessBackend< T >::setReadAhead(). |
1.4.2