QGeoPositionInfoSourceFactory

Since: 1.2

#include <QtLocationSubset/QGeoPositionInfoSourceFactory>

The QGeoPositionInfoSourceFactory class is a factory class used as the plugin interface for external providers of positioning data.

Implementers must provide a unique combination of sourceName() and sourceVersion() per plugin.

The other functions must be overridden by all plugins, other than sourcePriority() which defaults to returning 0. Higher values of priority will be preferred to lower ones.


Overview

Public Functions Index

Public Functions

virtual~QGeoPositionInfoSourceFactory ()

Destructor.

QGeoPositionInfoSource * positionInfoSource (

Returns a new QGeoPositionInfoSource associated with this plugin with parent parent .

Can also return 0, in which case the factory with the next highest priority will be used instead.

QGeoSatelliteInfoSource * satelliteInfoSource (

Returns a new QGeoSatelliteInfoSource associated with this plugin with parent parent.

Can also return 0, in which case the factory with the next highest priority will be used instead.

QString sourceName ()

Returns the string used to identify the position provider behind this implementation.

The combination of sourceName() and sourceVersion() should be unique amongst the plugins.

virtual int sourcePriority ()

Returns the priority of this factory in the list of available factories.

Factories with higher values of priority will be preferred to those with lower values.

int sourceVersion ()

Returns the version of the plugin.

The combination of sourceName() and sourceVersion() should be unique amongst the plugins.

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus