| 1 |
/* |
| 2 |
* Copyright 2013 Canonical Ltd. |
| 3 |
* |
| 4 |
* This program is free software; you can redistribute it and/or modify |
| 5 |
* it under the terms of the GNU Lesser General Public License as published by |
| 6 |
* the Free Software Foundation; version 3. |
| 7 |
* |
| 8 |
* This program is distributed in the hope that it will be useful, |
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 |
* GNU Lesser General Public License for more details. |
| 12 |
* |
| 13 |
* You should have received a copy of the GNU Lesser General Public License |
| 14 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 |
* |
| 16 |
* Author: Thomas Voß <[email protected]> |
| 17 |
*/ |
| 18 |
|
| 19 |
#include "core_geo_position_info_source_factory.h" |
| 20 |
#include "core_geo_position_info_source.h" |
| 21 |
|
| 22 |
QGeoPositionInfoSource *core::GeoPositionInfoSourceFactory::positionInfoSource(QObject *parent |
| 23 |
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) |
| 24 |
, const QVariantMap ¶meters |
| 25 |
#endif |
| 26 |
) |
| 27 |
{ |
| 28 |
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) |
| 29 |
Q_UNUSED(parameters); |
| 30 |
#endif |
| 31 |
core::GeoPositionInfoSource *src = new core::GeoPositionInfoSource(parent); |
| 32 |
return src; |
| 33 |
} |
| 34 |
|
| 35 |
QGeoSatelliteInfoSource *core::GeoPositionInfoSourceFactory::satelliteInfoSource(QObject *parent |
| 36 |
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) |
| 37 |
, const QVariantMap ¶meters |
| 38 |
#endif |
| 39 |
) |
| 40 |
{ |
| 41 |
Q_UNUSED(parent); |
| 42 |
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) |
| 43 |
Q_UNUSED(parameters); |
| 44 |
#endif |
| 45 |
return 0; |
| 46 |
} |
| 47 |
|
| 48 |
QGeoAreaMonitorSource *core::GeoPositionInfoSourceFactory::areaMonitor(QObject *parent |
| 49 |
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) |
| 50 |
, const QVariantMap ¶meters |
| 51 |
#endif |
| 52 |
) |
| 53 |
{ |
| 54 |
Q_UNUSED(parent); |
| 55 |
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) |
| 56 |
Q_UNUSED(parameters); |
| 57 |
#endif |
| 58 |
return 0; |
| 59 |
} |
| 60 |
|