#include </home/clem/local/src/opie/libopie2/opiepim/backend/ocontactaccessbackend_sql.h>
Inheritance diagram for Opie::OPimContactAccessBackend_SQL:


Public Member Functions | |
| OPimContactAccessBackend_SQL (const QString &appname, const QString &filename=QString::null) | |
| ~OPimContactAccessBackend_SQL () | |
| bool | save () |
| bool | load () |
| void | clear () |
| bool | wasChangedExternally () |
| UIDArray | allRecords () const |
| OPimContact | find (int uid) const |
| OPimContact | find (int uid, const UIDArray &items, uint cur, Frontend::CacheDirection) const |
| UIDArray | queryByExample (const UIDArray &uidlist, const OPimContact &query, int settings, const QDateTime &d) const |
| UIDArray | matchRegexp (const QRegExp &r) const |
| const uint | querySettings () const |
| bool | hasQuerySettings (uint querySettings) const |
| UIDArray | sorted (const UIDArray &ar, bool asc, int sortOrder, int filter, const QArray< int > &categories) const |
| bool | add (const OPimContact &newcontact) |
| bool | replace (const OPimContact &contact) |
| bool | remove (int uid) |
| bool | reload () |
Protected Attributes | |
| bool | m_changed |
| QString | m_fileName |
| UIDArray | m_uids |
| Opie::DB::OSQLDriver * | m_driver |
Private Member Functions | |
| UIDArray | extractUids (Opie::DB::OSQLResult &res) const |
| QMap< int, QString > | requestNonCustom (int uid) const |
| QMap< QString, QString > | requestCustom (int uid) const |
| QMap< int, QString > | fillNonCustomMap (const Opie::DB::OSQLResultItem &resultItem) const |
| OPimContact | requestContactsAndCache (int uid, const QArray< int > &cachelist) const |
| void | update () |
Definition at line 59 of file ocontactaccessbackend_sql.h.
|
||||||||||||
|
Definition at line 356 of file ocontactaccessbackend_sql.cpp. References Global::applicationFileName(), QTime::elapsed(), QString::isEmpty(), load(), m_driver, m_fileName, odebug, oendl, Opie::DB::OSQLDriver::setUrl(), Opie::DB::OSQLManager::standard(), QTime::start(), and t. |
|
|
Definition at line 380 of file ocontactaccessbackend_sql.cpp. References m_driver. |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 438 of file ocontactaccessbackend_sql.cpp. References m_driver, m_uids, odebug, oendl, Opie::DB::OSQLDriver::query(), and Opie::DB::OSQLResult::state(). Referenced by replace(). |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 427 of file ocontactaccessbackend_sql.cpp. |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 414 of file ocontactaccessbackend_sql.cpp. References m_driver, Opie::DB::OSQLDriver::query(), and reload(). |
|
|
Referenced by matchRegexp(), queryByExample(), sorted(), and update(). |
|
|
Referenced by requestNonCustom(). |
|
||||||||||||||||||||
|
Definition at line 490 of file ocontactaccessbackend_sql.cpp. References QTime::elapsed(), i, odebug, oendl, Opie::OPimAccessBackend< OPimContact >::readAhead(), requestContactsAndCache(), size, QTime::start(), and t. |
|
|
Definition at line 477 of file ocontactaccessbackend_sql.cpp. References QTime::elapsed(), odebug, oendl, requestCustom(), requestNonCustom(), Opie::OPimRecord::setExtraMap(), QTime::start(), and t. |
|
|
Check whether settings are correct.
Reimplemented from Opie::OPimContactAccessBackend. Definition at line 730 of file ocontactaccessbackend_sql.cpp. References Opie::OPimBase::DateDay, Opie::OPimBase::DateDiff, Opie::OPimBase::DateMonth, Opie::OPimBase::DateYear, Opie::OPimBase::ExactMatch, Opie::OPimBase::IgnoreCase, Opie::OPimBase::RegExp, and Opie::OPimBase::WildCards. |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 386 of file ocontactaccessbackend_sql.cpp. References m_driver, Opie::DB::OSQLDriver::open(), Opie::DB::OSQLDriver::query(), and update(). Referenced by OPimContactAccessBackend_SQL(), and reload(). |
|
|
Reimplemented from Opie::OPimAccessBackend< OPimContact >. Definition at line 688 of file ocontactaccessbackend_sql.cpp. References QValueList< T >::begin(), QValueList< T >::end(), extractUids(), QString::isEmpty(), m_driver, odebug, oendl, QRegExp::pattern(), Opie::DB::OSQLDriver::query(), and Opie::OPimContactFields::untrfields(). |
|
||||||||||||||||||||
|
|
Return all possible settings.
Reimplemented from Opie::OPimContactAccessBackend. Definition at line 719 of file ocontactaccessbackend_sql.cpp. References Opie::OPimBase::DateDay, Opie::OPimBase::DateDiff, Opie::OPimBase::DateMonth, Opie::OPimBase::DateYear, Opie::OPimBase::IgnoreCase, and Opie::OPimBase::WildCards. |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 403 of file ocontactaccessbackend_sql.cpp. References load(). Referenced by clear(). |
|
|
Definition at line 455 of file ocontactaccessbackend_sql.cpp. References m_changed, m_driver, Opie::DB::OSQLDriver::query(), rem, and Opie::DB::OSQLResult::state(). Referenced by replace(). |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 468 of file ocontactaccessbackend_sql.cpp. |
|
||||||||||||
|
Referenced by find(). |
|
|
Definition at line 1067 of file ocontactaccessbackend_sql.cpp. References QValueList< T >::begin(), QTime::elapsed(), empty, QValueList< T >::end(), QMap< Key, T >::insert(), m_driver, odebug, owarn, Opie::DB::OSQLDriver::query(), Opie::DB::OSQLResult::results(), QTime::start(), and Opie::DB::OSQLResult::state(). Referenced by find(). |
|
|
Definition at line 948 of file ocontactaccessbackend_sql.cpp. References QTime::elapsed(), fillNonCustomMap(), Opie::DB::OSQLResult::first(), m_driver, odebug, Opie::DB::OSQLDriver::query(), and QTime::start(). Referenced by find(). |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 408 of file ocontactaccessbackend_sql.cpp. References Opie::DB::OSQLDriver::close(), and m_driver. |
|
||||||||||||||||||||||||
|
|
Definition at line 906 of file ocontactaccessbackend_sql.cpp. References QTime::elapsed(), extractUids(), m_changed, m_driver, m_uids, odebug, oendl, Opie::DB::OSQLDriver::query(), QTime::start(), Opie::DB::OSQLResult::state(), and t. Referenced by load(). |
|
|
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 ...
Implements Opie::OPimContactAccessBackend. Definition at line 422 of file ocontactaccessbackend_sql.cpp. |
|
|
Definition at line 106 of file ocontactaccessbackend_sql.h. Referenced by allRecords(), remove(), and update(). |
|
|
Definition at line 110 of file ocontactaccessbackend_sql.h. Referenced by add(), clear(), load(), matchRegexp(), OPimContactAccessBackend_SQL(), queryByExample(), remove(), requestCustom(), requestNonCustom(), save(), sorted(), update(), and ~OPimContactAccessBackend_SQL(). |
|
|
Definition at line 107 of file ocontactaccessbackend_sql.h. Referenced by OPimContactAccessBackend_SQL(). |
|
|
Definition at line 108 of file ocontactaccessbackend_sql.h. Referenced by add(), allRecords(), queryByExample(), and update(). |
1.4.2