![]() |
Home · All Classes · All Functions · | ![]() |
The QContactMemoryEngine class provides an in-memory implementation of a contacts backend. More...
#include <QContactMemoryEngine>
Inherits QContactManagerEngine.
bool | filterSupported ( const QContactFilter & filter ) const |
int | implementationVersion () const |
bool | waitForRequestProgress ( QContactAbstractRequest * req, int msecs ) |
virtual bool | cancelRequest ( QContactAbstractRequest * req ) |
virtual QContact | contact ( const QContactLocalId & contactId, const QStringList & definitionRestrictions, QContactManager::Error & error ) const |
virtual QList<QContactLocalId> | contactIds ( const QList<QContactSortOrder> & sortOrders, QContactManager::Error & error ) const |
virtual QList<QContact> | contacts ( const QList<QContactSortOrder> & sortOrders, const QStringList & definitionRestrictions, QContactManager::Error & error ) const |
virtual void | deref () |
virtual QMap<QString, QContactDetailDefinition> | detailDefinitions ( const QString & contactType, QContactManager::Error & error ) const |
virtual bool | hasFeature ( QContactManager::ManagerFeature feature, const QString & contactType ) const |
virtual QString | managerName () const |
virtual QMap<QString, QString> | managerParameters () const |
virtual QList<QContactRelationship> | relationships ( const QString & relationshipType, const QContactId & participantId, QContactRelationshipFilter::Role role, QContactManager::Error & error ) const |
virtual bool | removeContact ( const QContactLocalId & contactId, QContactManager::Error & error ) |
virtual bool | removeContacts ( QList<QContactLocalId> * contactIds, QMap<int, QContactManager::Error> * errorMap, QContactManager::Error & error ) |
virtual bool | removeDetailDefinition ( const QString & definitionId, const QString & contactType, QContactManager::Error & error ) |
virtual bool | removeRelationship ( const QContactRelationship & relationship, QContactManager::Error & error ) |
virtual QList<QContactManager::Error> | removeRelationships ( const QList<QContactRelationship> & relationships, QContactManager::Error & error ) |
virtual void | requestDestroyed ( QContactAbstractRequest * req ) |
virtual bool | saveContact ( QContact * contact, QContactManager::Error & error ) |
virtual bool | saveContacts ( QList<QContact> * contacts, QMap<int, QContactManager::Error> * errorMap, QContactManager::Error & error ) |
virtual bool | saveDetailDefinition ( const QContactDetailDefinition & def, const QString & contactType, QContactManager::Error & error ) |
virtual bool | saveRelationship ( QContactRelationship * relationship, QContactManager::Error & error ) |
virtual QList<QContactManager::Error> | saveRelationships ( QList<QContactRelationship> * relationships, QContactManager::Error & error ) |
virtual QContactLocalId | selfContactId ( QContactManager::Error & error ) const |
virtual bool | setSelfContactId ( const QContactLocalId & contactId, QContactManager::Error & error ) |
virtual bool | startRequest ( QContactAbstractRequest * req ) |
virtual QList<QVariant::Type> | supportedDataTypes () const |
virtual QStringList | supportedRelationshipTypes ( const QString & contactType ) const |
virtual bool | waitForRequestFinished ( QContactAbstractRequest * req, int msecs ) |
QContactMemoryEngine * | createMemoryEngine ( const QMap<QString, QString> & parameters ) |
QContactMemoryEngine ( const QMap<QString, QString> & parameters ) |
The QContactMemoryEngine class provides an in-memory implementation of a contacts backend.
It may be used as a reference implementation, or when persistent storage is not required.
During construction, it will load the in-memory data associated with the memory store identified by the "id" parameter from the given parameters if it exists, or a new, anonymous store if it does not.
Data stored in this engine is only available in the current process.
This engine supports sharing, so an internal reference count is increased whenever a manager uses this backend, and is decreased when the manager no longer requires this engine.
Constructs a new in-memory backend.
Loads the in-memory data associated with the memory store identified by the "id" parameter from the given parameters if it exists, or a new, anonymous store if it does not.
Reimplemented from QContactManagerEngine::cancelRequest().
Reimplemented from QContactManagerEngine::contact().
Reimplemented from QContactManagerEngine::contactIds().
Reimplemented from QContactManagerEngine::contacts().
Factory function for creating a new in-memory backend, based on the given parameters.
The same engine will be returned for multiple calls with the same value for the "id" parameter, while one of them is in scope.
Reimplemented from QContactManagerEngine::deref().
Reimplemented from QContactManagerEngine::detailDefinitions().
This function is deprecated. Use QContactManagerEngine::isFilterSupported() instead! The function returns true if the backend natively supports the given filter filter, otherwise false.
Reimplemented from QContactManagerEngine::hasFeature().
This function is deprecated and should not be used. Use QContactMemoryEngine::managerVersion() instead!
Reimplemented from QContactManagerEngine::managerName().
Reimplemented from QContactManagerEngine::managerParameters().
Reimplemented from QContactManagerEngine::relationships().
Reimplemented from QContactManagerEngine::removeContact().
Reimplemented from QContactManagerEngine::removeContacts().
Reimplemented from QContactManagerEngine::removeDetailDefinition().
Reimplemented from QContactManagerEngine::removeRelationship().
Reimplemented from QContactManagerEngine::removeRelationships().
Reimplemented from QContactManagerEngine::requestDestroyed().
Reimplemented from QContactManagerEngine::saveContact().
Reimplemented from QContactManagerEngine::saveContacts().
Reimplemented from QContactManagerEngine::saveDetailDefinition().
Reimplemented from QContactManagerEngine::saveRelationship().
Reimplemented from QContactManagerEngine::saveRelationships().
Reimplemented from QContactManagerEngine::selfContactId().
See also setSelfContactId().
Reimplemented from QContactManagerEngine::setSelfContactId().
See also selfContactId().
Reimplemented from QContactManagerEngine::startRequest().
Reimplemented from QContactManagerEngine::supportedDataTypes().
Reimplemented from QContactManagerEngine::supportedRelationshipTypes().
Reimplemented from QContactManagerEngine::waitForRequestFinished().
This function is deprecated! Use QContactMemoryEngine::waitForRequestFinished() instead! Waits up to msecs milliseconds for the request req to emit the progress() signal. Returns true if the progress() signal was emitted during the period, otherwise false.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 |