Home · All Classes · All Functions ·

QContactMemoryEngine Class Reference

The QContactMemoryEngine class provides an in-memory implementation of a contacts backend. More...

    #include <QContactMemoryEngine>

Inherits QContactManagerEngine.

Public Functions

Static Public Members

Protected Functions

Additional Inherited Members


Detailed Description

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.


Member Function Documentation

QContactMemoryEngine::QContactMemoryEngine ( QContactMemoryEngineData * data )   [protected]

Constructs a new in-memory backend which shares the given data with other shared memory engines.

QContactMemoryEngine::~QContactMemoryEngine ()

Frees any memory used by this engine

QContactMemoryEngine * QContactMemoryEngine::createMemoryEngine ( const QMap<QString, QString> & parameters )   [static]

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.

bool QContactMemoryEngine::isFilterSupported ( const QContactFilter & filter ) const   [virtual]

The function returns true if the backend natively supports the given filter filter, otherwise false.

Reimplemented from QContactManagerEngine.


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.1