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  · 

QVersitOrganizerExporter Class

The QVersitOrganizerExporter class converts QOrganizerItems into QVersitDocuments. More...

 #include <QVersitOrganizerExporter>

Public Types

enum Error { NoError, EmptyOrganizerError, UnknownComponentTypeError, UnderspecifiedOccurrenceError }

Public Functions

QVersitOrganizerExporter()
QVersitOrganizerExporter(const QString & profile)
~QVersitOrganizerExporter()
QVersitDocument document() const
QMap<int, Error> errorMap() const
bool exportItems(const QList<QOrganizerItem> & items, QVersitDocument::VersitType versitType = QVersitDocument::ICalendar20Type)
void setDetailHandler(QVersitOrganizerExporterDetailHandler * handler)

Detailed Description

The QVersitOrganizerExporter class converts QOrganizerItems into QVersitDocuments.

This class is used to convert a list of QOrganizerItems (which may be stored in a QOrganizerManager) into a QVersitDocument (which may be written to an I/O device using QVersitReader. While multiple items are provided as input, a single QVersitDocument is produced as output. Unless there is an error, there is a one-to-one mapping between organizer items and sub-documents of the result.

Member Type Documentation

enum QVersitOrganizerExporter::Error

This enum specifies an error that occurred during the most recent call to exportItems()

ConstantValueDescription
QVersitOrganizerExporter::NoError0The most recent operation was successful
QVersitOrganizerExporter::EmptyOrganizerError1One of the organizer items was empty
QVersitOrganizerExporter::UnknownComponentTypeError2One of the components in the iCalendar file is not supported
QVersitOrganizerExporter::UnderspecifiedOccurrenceError3An event or todo exception was found which did not specify both its parent and a specifier for which instance to override

Member Function Documentation

QVersitOrganizerExporter::QVersitOrganizerExporter()

Constructs a new exporter

QVersitOrganizerExporter::QVersitOrganizerExporter(const QString & profile)

Constructs a new exporter for the given profile. The profile strings should be one of those defined by QVersitOrganizerHandlerFactory, or a value otherwise agreed to by a Versit plugin.

The profile determines which plugins will be loaded to supplement the exporter.

QVersitOrganizerExporter::~QVersitOrganizerExporter()

Frees the memory used by the exporter

QVersitDocument QVersitOrganizerExporter::document() const

Returns the document exported in the most recent call to exportItems().

See also exportItems().

QMap<int, Error> QVersitOrganizerExporter::errorMap() const

Returns the map of errors encountered in the most recent call to exportItems(). The key is the index into the input list of organizer items and the value is the error that occurred on that item. If errors occur, export does not generate EmptyContactError or NoNameError errors but just succeeds in creating the empty, albeit invalid, vCard. QVersitContactExporter never fails.

See also exportItems().

bool QVersitOrganizerExporter::exportItems(const QList<QOrganizerItem> & items, QVersitDocument::VersitType versitType = QVersitDocument::ICalendar20Type)

void QVersitOrganizerExporter::setDetailHandler(QVersitOrganizerExporterDetailHandler * handler)

Sets handler to be the handler for processing QOrganizerItemDetails, or 0 to have no handler.

Does not take ownership of the handler. The client should ensure the handler remains valid for the lifetime of the exporter.

Only one detail handler can be set. If another detail handler was previously set, it will no longer be associated with the exporter.

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