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  · 

QLandmarkExportRequest Class Reference

The QLandmarkExportRequest class allows a client to asynchronously request that a landmark manager export a set of landmarks. More...

 #include <QLandmarkExportRequest>

Inherits: QLandmarkAbstractRequest.

This class was introduced in Qt Mobility 1.1.

Public Functions

QLandmarkExportRequest ( QLandmarkManager * manager, QObject * parent = 0 )
~QLandmarkExportRequest ()
QIODevice * device () const
QString fileName () const
QString format () const
QList<QLandmarkId> landmarkIds () const
void setDevice ( QIODevice * device )
void setFileName ( const QString & fileName )
void setFormat ( const QString & format )
void setLandmarkIds ( const QList<QLandmarkId> & landmarkIds )
void setTransferOption ( QLandmarkManager::TransferOption option )
QLandmarkManager::TransferOption transferOption () const

Additional Inherited Members

Detailed Description

The QLandmarkExportRequest class allows a client to asynchronously request that a landmark manager export a set of landmarks.

For a QLandmarkExportRequest, the QLandmarkAbstractRequest::stateChanged() signal will be emitted when the request is complete. The resultsAvailable() signal will be emitted if an overall operational error occurs.

If no landmarks identifiers are set using setLandmarkIds() or an empty list is passed in, then all the landmarks will be exported.

Please see the class documentation for QLandmarkAbstractRequest for more information about the usage of request classes and ownership semantics.

Member Function Documentation

QLandmarkExportRequest::QLandmarkExportRequest ( QLandmarkManager * manager, QObject * parent = 0 )

Constructs a landmark export request with the given manager and parent.

QLandmarkExportRequest::~QLandmarkExportRequest ()

Destroys the request object.

QIODevice * QLandmarkExportRequest::device () const

Returns the device to which landmarks are written.

This function was introduced in Qt Mobility 1.1.

See also setDevice().

QString QLandmarkExportRequest::fileName () const

If the currently assigned device is a QFile, or if setFileName() has been called, this function returns the name of the file to be written to. In all other cases, it returns an empty string.

This function was introduced in Qt Mobility 1.1.

See also setFileName() and setDevice().

QString QLandmarkExportRequest::format () const

Returns the data format for the export operation.

This function was introduced in Qt Mobility 1.1.

See also setFormat().

QList<QLandmarkId> QLandmarkExportRequest::landmarkIds () const

Returns the list of identifiers of landmarks that will be exported. By default the list of identifiers is empty, indicating that all landmarks should be exported.

This function was introduced in Qt Mobility 1.1.

See also setLandmarkIds().

void QLandmarkExportRequest::setDevice ( QIODevice * device )

Sets the device to which landmarks are written.

This function was introduced in Qt Mobility 1.1.

See also device().

void QLandmarkExportRequest::setFileName ( const QString & fileName )

Sets the name of the file to be written to fileName. Internally, QLandmarkExportRequest will create a QFile use this as the device to export to.

This function was introduced in Qt Mobility 1.1.

See also fileName() and setDevice().

void QLandmarkExportRequest::setFormat ( const QString & format )

Sets the data format for the export operation.

This function was introduced in Qt Mobility 1.1.

See also format().

void QLandmarkExportRequest::setLandmarkIds ( const QList<QLandmarkId> & landmarkIds )

Sets the landmarks to be exported by specifying a list of landmarkIds.

This function was introduced in Qt Mobility 1.1.

See also landmarkIds().

void QLandmarkExportRequest::setTransferOption ( QLandmarkManager::TransferOption option )

Sets the transfer option of the export request. The transfer option defines how categories are treated during the export operation.

This function was introduced in Qt Mobility 1.1.

See also transferOption().

QLandmarkManager::TransferOption QLandmarkExportRequest::transferOption () const

Returns the transfer option of the export request. The transfer option defines how categories are treated during the export operation. The default option is QLandmarkManager::IncludeCategoryData.

This function was introduced in Qt Mobility 1.1.

See also setTransferOption().

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

Génération de bindings PySide avec Shiboken

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.2
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