Qt Mobility Reference Documentation

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.


Public Functions

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

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. Invalid landmark identifiers that do not refer to landmarks will be ignored.


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.

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.

See also setFileName() and setDevice().

QByteArray QLandmarkExportRequest::format () const

Returns the data format for the export operation.

See also setFormat().

QList<QLandmarkId> QLandmarkExportRequest::landmarkIds () const

Returns the list of identifiers of landmarks that will be exported.

See also setLandmarkIds().

void QLandmarkExportRequest::setDevice ( QIODevice * device )

Sets the device to which landmarks are written.

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 and open it in QIODevice::WriteOnly mode, and use this file to export to.

See also fileName() and setDevice().

void QLandmarkExportRequest::setFormat ( const QByteArray & format )

Sets the data format for the export operation.

See also format().

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

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

See also landmarkIds().


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