OContactAccessBackend Class Reference
This class represents the interface of all Contact Backends. More...
#include <ocontactaccessbackend.h>
Inheritance diagram for OContactAccessBackend:


Public Member Functions | |
| OContactAccessBackend () | |
| virtual | ~OContactAccessBackend () |
| virtual bool | wasChangedExternally ()=0 |
| Return if database was changed externally. | |
| virtual QArray< int > | matchRegexp (const QRegExp &r) const=0 |
| return a List of records that match the regex | |
| virtual const uint | querySettings ()=0 |
| Return all possible settings. | |
| virtual bool | hasQuerySettings (uint querySettings) const=0 |
| Check whether settings are correct. | |
| virtual QArray< int > | sorted (bool ascending, int sortOrder, int sortFilter, int cat)=0 |
| FIXME!!! Returns a sorted list of records either ascendinf or descending for a giving criteria and category. | |
Detailed Description
This class represents the interface of all Contact Backends.Derivates of this class will be used to access the contacts. As implementation currently XML and vCard exist. This class needs to be implemented if you want to provide your own storage. In all queries a list of uids is passed on instead of loading the actual record!
Definition at line 72 of file ocontactaccessbackend.h.
Constructor & Destructor Documentation
|
|
Definition at line 74 of file ocontactaccessbackend.h. |
|
|
Definition at line 75 of file ocontactaccessbackend.h. |
Member Function Documentation
|
|
Return if database was changed externally. This may just make sense on file based databases like a XML-File. It is used to prevent to overwrite the current database content if the file was already changed by something else ! If this happens, we have to reload before save our data. If we use real databases, this should be handled by the database management system themselve, therefore this function should always return false in this case. It is not our problem to handle this conflict ...
Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, and OContactAccessBackend_XML. |
|
|
return a List of records that match the regex
Implements OPimAccessBackend< OContact >. Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, and OContactAccessBackend_XML. |
|
|
Return all possible settings.
Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, and OContactAccessBackend_XML. Referenced by OContactAccess::querySettings(). |
|
|
Check whether settings are correct.
Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, and OContactAccessBackend_XML. Referenced by OContactAccess::hasQuerySettings(). |
|
||||||||||||||||||||
|
FIXME!!! Returns a sorted list of records either ascendinf or descending for a giving criteria and category.
Implemented in OContactAccessBackend_SQL, OContactAccessBackend_VCard, and OContactAccessBackend_XML. |
The documentation for this class was generated from the following file:
