Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QContactMemoryEngine Class Reference

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

    #include <QContactMemoryEngine>

Inherits QContactManagerEngine.


Reimplemented Public Functions

virtual bool cancelRequest ( QContactAbstractRequest * req )
virtual QContact contact ( const QContactLocalId & contactId, QContactManager::Error & error ) const
virtual QList<QContactLocalId> contacts ( const QList<QContactSortOrder> & sortOrders, QContactManager::Error & error ) const
virtual void deref ()
virtual QMap<QString, QContactDetailDefinition> detailDefinitions ( const QString & contactType, QContactManager::Error & error ) const
virtual bool filterSupported ( const QContactFilter & filter ) const
virtual bool hasFeature ( QContactManager::ManagerFeature feature, const QString & contactType ) const
virtual int implementationVersion () 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 QList<QContactManager::Error> removeContacts ( QList<QContactLocalId> * contactIds, 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 QList<QContactManager::Error> saveContacts ( QList<QContact> * contacts, 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 bool waitForRequestFinished ( QContactAbstractRequest * req, int msecs )
virtual bool waitForRequestProgress ( QContactAbstractRequest * req, int msecs )

Static Public Members

QContactMemoryEngine * createMemoryEngine ( const QMap<QString, QString> & parameters )

Protected Functions

QContactMemoryEngine ( const QMap<QString, QString> & parameters )
  • 7 protected functions inherited from QObject

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 ( const QMap<QString, QString> & parameters )   [protected]

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.

bool QContactMemoryEngine::cancelRequest ( QContactAbstractRequest * req )   [virtual]

Reimplemented from QContactManagerEngine::cancelRequest().

QContact QContactMemoryEngine::contact ( const QContactLocalId & contactId, QContactManager::Error & error ) const   [virtual]

Reimplemented from QContactManagerEngine::contact().

QList<QContactLocalId> QContactMemoryEngine::contacts ( const QList<QContactSortOrder> & sortOrders, QContactManager::Error & error ) const   [virtual]

Reimplemented from QContactManagerEngine::contacts().

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.

void QContactMemoryEngine::deref ()   [virtual]

Reimplemented from QContactManagerEngine::deref().

QMap<QString, QContactDetailDefinition> QContactMemoryEngine::detailDefinitions ( const QString & contactType, QContactManager::Error & error ) const   [virtual]

Reimplemented from QContactManagerEngine::detailDefinitions().

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

Reimplemented from QContactManagerEngine::filterSupported().

bool QContactMemoryEngine::hasFeature ( QContactManager::ManagerFeature feature, const QString & contactType ) const   [virtual]

Reimplemented from QContactManagerEngine::hasFeature().

int QContactMemoryEngine::implementationVersion () const   [virtual]

Reimplemented from QContactManagerEngine::implementationVersion().

QString QContactMemoryEngine::managerName () const   [virtual]

Reimplemented from QContactManagerEngine::managerName().

QMap<QString, QString> QContactMemoryEngine::managerParameters () const   [virtual]

Reimplemented from QContactManagerEngine::managerParameters().

QList<QContactRelationship> QContactMemoryEngine::relationships ( const QString & relationshipType, const QContactId & participantId, QContactRelationshipFilter::Role role, QContactManager::Error & error ) const   [virtual]

Reimplemented from QContactManagerEngine::relationships().

bool QContactMemoryEngine::removeContact ( const QContactLocalId & contactId, QContactManager::Error & error )   [virtual]

Reimplemented from QContactManagerEngine::removeContact().

QList<QContactManager::Error> QContactMemoryEngine::removeContacts ( QList<QContactLocalId> * contactIds, QContactManager::Error & error )   [virtual]

Reimplemented from QContactManagerEngine::removeContacts().

bool QContactMemoryEngine::removeDetailDefinition ( const QString & definitionId, const QString & contactType, QContactManager::Error & error )   [virtual]

Reimplemented from QContactManagerEngine::removeDetailDefinition().

bool QContactMemoryEngine::removeRelationship ( const QContactRelationship & relationship, QContactManager::Error & error )   [virtual]

Reimplemented from QContactManagerEngine::removeRelationship().

QList<QContactManager::Error> QContactMemoryEngine::removeRelationships ( const QList<QContactRelationship> & relationships, QContactManager::Error & error )   [virtual]

Reimplemented from QContactManagerEngine::removeRelationships().

void QContactMemoryEngine::requestDestroyed ( QContactAbstractRequest * req )   [virtual]

Reimplemented from QContactManagerEngine::requestDestroyed().

bool QContactMemoryEngine::saveContact ( QContact * contact, QContactManager::Error & error )   [virtual]

Reimplemented from QContactManagerEngine::saveContact().

QList<QContactManager::Error> QContactMemoryEngine::saveContacts ( QList<QContact> * contacts, QContactManager::Error & error )   [virtual]

Reimplemented from QContactManagerEngine::saveContacts().

bool QContactMemoryEngine::saveDetailDefinition ( const QContactDetailDefinition & def, const QString & contactType, QContactManager::Error & error )   [virtual]

Reimplemented from QContactManagerEngine::saveDetailDefinition().

bool QContactMemoryEngine::saveRelationship ( QContactRelationship * relationship, QContactManager::Error & error )   [virtual]

Reimplemented from QContactManagerEngine::saveRelationship().

QList<QContactManager::Error> QContactMemoryEngine::saveRelationships ( QList<QContactRelationship> * relationships, QContactManager::Error & error )   [virtual]

Reimplemented from QContactManagerEngine::saveRelationships().

QContactLocalId QContactMemoryEngine::selfContactId ( QContactManager::Error & error ) const   [virtual]

Reimplemented from QContactManagerEngine::selfContactId().

See also setSelfContactId().

bool QContactMemoryEngine::setSelfContactId ( const QContactLocalId & contactId, QContactManager::Error & error )   [virtual]

Reimplemented from QContactManagerEngine::setSelfContactId().

See also selfContactId().

bool QContactMemoryEngine::startRequest ( QContactAbstractRequest * req )   [virtual]

Reimplemented from QContactManagerEngine::startRequest().

QList<QVariant::Type> QContactMemoryEngine::supportedDataTypes () const   [virtual]

Reimplemented from QContactManagerEngine::supportedDataTypes().

bool QContactMemoryEngine::waitForRequestFinished ( QContactAbstractRequest * req, int msecs )   [virtual]

Reimplemented from QContactManagerEngine::waitForRequestFinished().

bool QContactMemoryEngine::waitForRequestProgress ( QContactAbstractRequest * req, int msecs )   [virtual]

Reimplemented from QContactManagerEngine::waitForRequestProgress().

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 48
  4. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  5. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 13
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
Page suivante

Le Qt Developer Network au hasard

Logo

Compiler l'add-in Qt de Visual Studio

Le Qt Developer Network est un réseau de développeurs Qt anglophone, où ils peuvent partager leur expérience sur le framework. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtmobility-1.0-tp
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web