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  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QVersitOrganizerHandlerFactory Class

The QVersitOrganizerHandlerFactory class provides the interface for Versit plugins. More...

 #include <QVersitOrganizerHandlerFactory>

Public Functions

virtual ~QVersitOrganizerHandlerFactory()
virtual QVersitOrganizerHandler * createHandler() const = 0
virtual int index() const
virtual QString name() const = 0
virtual QSet<QString> profiles() const

Static Public Members

const QString ProfileBackup()
const QString ProfileSync()

Detailed Description

The QVersitOrganizerHandlerFactory class provides the interface for Versit plugins.

This class provides a simple interface for the creation of QVersitOrganizerHandler instances. Implement this interface to write a Versit plugin. For more details, see Versit Plugins.

Member Function Documentation

QVersitOrganizerHandlerFactory::~QVersitOrganizerHandlerFactory() [virtual]

This frees any memory used by the QVersitOrganizerHandlerFactory.

const QString QVersitOrganizerHandlerFactory::ProfileBackup() [static]

The constant string signifying a plugin that is relevant to import and export in a backup/restore context.

See also profiles(), QVersitOrganizerImporter::QVersitOrganizerImporter(), and QVersitOrganizerExporter::QVersitOrganizerExporter().

const QString QVersitOrganizerHandlerFactory::ProfileSync() [static]

The constant string signifying a plugin that is relevant to import and export in a synchronization context.

See also QVersitOrganizerHandlerFactory::profiles(), QVersitOrganizerImporter, and QVersitOrganizerExporter.

QVersitOrganizerHandler * QVersitOrganizerHandlerFactory::createHandler() const [pure virtual]

This function is called by the Versit importer or exporter class to create an instance of the handler provided by this factory.

int QVersitOrganizerHandlerFactory::index() const [virtual]

This function should return an index that helps with determining the order in which to run the plugins. Plugins are run in the following order:

  • Positively-indexed, ascending
  • Zero-indexed
  • Negatively-indexed, ascending

For example, plugins with an index of 1 are run first and plugins of index -1 are run last. If more than one plugin share an index, the order of execution between them is undefined.

By default, this returns 0, which is recommended for plugins with no special ordering requirements.

QString QVersitOrganizerHandlerFactory::name() const [pure virtual]

This function should return a unique string that identifies the handlers provided by this factory. Typically, this will be of the form "org.qt-project.Qt.SampleVersitOrganizerHandler" with the appropriate domain and handler name substituted.

QSet<QString> QVersitOrganizerHandlerFactory::profiles() const [virtual]

This function can be overridden to allow a plugin to report which profiles it is to be active under. If this (as in the default case) returns the empty set, it indicates that the plugin should be loaded under all profiles. If it returns a non-empty set, it will only be loaded for those profiles that are specified by the importer/exporter class.

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 5.0-snapshot
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