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
virtual | ~QGeoPositionInfoSourceFactory () |
QGeoPositionInfoSource * | positionInfoSource (QObject *parent)=0 |
QGeoSatelliteInfoSource * | satelliteInfoSource (QObject *parent)=0 |
QString | sourceName () const =0 |
virtual int | sourcePriority () const |
int | sourceVersion () const =0 |
Public Functions
virtual
Destructor.
QGeoPositionInfoSource *
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 *
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
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
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
Returns the version of the plugin.
The combination of sourceName() and sourceVersion() should be unique amongst the plugins.
© 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Documentation sources may be obtained from www.qt-project.org.
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy