Qt Mobility Reference Documentation

QLandmarkImportRequest Class Reference

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

 #include <QLandmarkImportRequest>

Inherits QLandmarkAbstractRequest.


Public Functions

QLandmarkImportRequest ( QLandmarkManager * manager, QObject * parent = 0 )
~QLandmarkImportRequest ()
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 )

Additional Inherited Members


Detailed Description

The QLandmarkImportRequest class allows a client to asynchronously request that a landmark manager import a set of landmarks.

For a QLandmarkImportRequest, the resultsAvailable() signal will be emitted when landmarks have been successfully added by the manager. The list of added landmarks may be retrieved by the ids() function. The resultsAvailable() signal may also be emitted if an overall operational error occurs.


Member Function Documentation

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

Constructs a landmark import request with the given manager parent.

QLandmarkImportRequest::~QLandmarkImportRequest ()

Destroys the request object.

QIODevice * QLandmarkImportRequest::device () const

Returns the device from which landmarks are read.

See also setDevice().

QString QLandmarkImportRequest::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 read from. In all other cases, it returns an empty string.

See also setFileName() and setDevice().

QByteArray QLandmarkImportRequest::format () const

Returns the expected data format for the import operation. If the format is an empty byte array or not set, then during the import, an attempt is made to auto detect the format.

By default no format is set.

See also setFormat().

QList<QLandmarkId> QLandmarkImportRequest::landmarkIds () const

Returns a list of identifiers of landmarks that have been imported.

void QLandmarkImportRequest::setDevice ( QIODevice * device )

Sets the device from which landmarks are read.

See also device().

void QLandmarkImportRequest::setFileName ( const QString & fileName )

Sets the name of the file to be read from 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 QLandmarkImportRequest::setFormat ( const QByteArray & format )

Sets the expected data format for the import operation. If an empty byte array is set, then during the import, an attempt is made to auto detect the format.

See also format().


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