Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qohosgeopositioninfosource.cpp File Reference

(511b67fd45b14ea17c21ed8daa2894a412d68f7a)

#include "qohosgeopositioninfosource.h"
#include "qohosjsutils.h"
#include "qohospositioncommon.h"
#include <QtCore/private/qcore_ohos_p.h>
#include <QtCore/private/qohoscommon_p.h>
#include <QtCore/private/qohoslogger_p.h>
#include <QtCore/qtimer.h>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <memory>
#include <optional>
#include <utility>
Include dependency graph for qohosgeopositioninfosource.cpp:

Go to the source code of this file.

Classes

class  QT_BEGIN_NAMESPACE::QOhosGeoPositionInfoSource
struct  QtOhos::OhosEnumMeta< UserActivityScenario >
struct  QtOhos::OhosEnumMeta< LocationError >

Namespaces

namespace  QT_BEGIN_NAMESPACE
 Combined button and popup list for selecting options.
namespace  QtOhos

Enumerations

enum class  QT_BEGIN_NAMESPACE::UserActivityScenario {
  QT_BEGIN_NAMESPACE::NAVIGATION , QT_BEGIN_NAMESPACE::SPORT , QT_BEGIN_NAMESPACE::TRANSPORT , QT_BEGIN_NAMESPACE::DAILY_LIFE_SERVICE ,
  QT_BEGIN_NAMESPACE::NAVIGATION , QT_BEGIN_NAMESPACE::SPORT , QT_BEGIN_NAMESPACE::TRANSPORT , QT_BEGIN_NAMESPACE::DAILY_LIFE_SERVICE
}
enum class  QT_BEGIN_NAMESPACE::LocationError {
  QT_BEGIN_NAMESPACE::LOCATING_FAILED_DEFAULT , QT_BEGIN_NAMESPACE::LOCATING_FAILED_LOCATION_PERMISSION_DENIED , QT_BEGIN_NAMESPACE::LOCATING_FAILED_BACKGROUND_PERMISSION_DENIED , QT_BEGIN_NAMESPACE::LOCATING_FAILED_LOCATION_SWITCH_OFF ,
  QT_BEGIN_NAMESPACE::LOCATING_FAILED_INTERNET_ACCESS_FAILURE , QT_BEGIN_NAMESPACE::LOCATING_FAILED_DEFAULT , QT_BEGIN_NAMESPACE::LOCATING_FAILED_LOCATION_PERMISSION_DENIED , QT_BEGIN_NAMESPACE::LOCATING_FAILED_BACKGROUND_PERMISSION_DENIED ,
  QT_BEGIN_NAMESPACE::LOCATING_FAILED_LOCATION_SWITCH_OFF , QT_BEGIN_NAMESPACE::LOCATING_FAILED_INTERNET_ACCESS_FAILURE
}
enum class  QT_BEGIN_NAMESPACE::UserActivityScenario {
  QT_BEGIN_NAMESPACE::NAVIGATION , QT_BEGIN_NAMESPACE::SPORT , QT_BEGIN_NAMESPACE::TRANSPORT , QT_BEGIN_NAMESPACE::DAILY_LIFE_SERVICE ,
  QT_BEGIN_NAMESPACE::NAVIGATION , QT_BEGIN_NAMESPACE::SPORT , QT_BEGIN_NAMESPACE::TRANSPORT , QT_BEGIN_NAMESPACE::DAILY_LIFE_SERVICE
}
enum class  QT_BEGIN_NAMESPACE::LocationError {
  QT_BEGIN_NAMESPACE::LOCATING_FAILED_DEFAULT , QT_BEGIN_NAMESPACE::LOCATING_FAILED_LOCATION_PERMISSION_DENIED , QT_BEGIN_NAMESPACE::LOCATING_FAILED_BACKGROUND_PERMISSION_DENIED , QT_BEGIN_NAMESPACE::LOCATING_FAILED_LOCATION_SWITCH_OFF ,
  QT_BEGIN_NAMESPACE::LOCATING_FAILED_INTERNET_ACCESS_FAILURE , QT_BEGIN_NAMESPACE::LOCATING_FAILED_DEFAULT , QT_BEGIN_NAMESPACE::LOCATING_FAILED_LOCATION_PERMISSION_DENIED , QT_BEGIN_NAMESPACE::LOCATING_FAILED_BACKGROUND_PERMISSION_DENIED ,
  QT_BEGIN_NAMESPACE::LOCATING_FAILED_LOCATION_SWITCH_OFF , QT_BEGIN_NAMESPACE::LOCATING_FAILED_INTERNET_ACCESS_FAILURE
}

Functions

const char * QT_BEGIN_NAMESPACE::toStaticString (UserActivityScenario scenario)
const char * QT_BEGIN_NAMESPACE::toStaticString (LocationError locationError)
std::optional< UserActivityScenarioQT_BEGIN_NAMESPACE::tryMapPositioningMethodsToUserActivityScenario (QGeoPositionInfoSource::PositioningMethods positioningMethods)
QGeoPositionInfo QT_BEGIN_NAMESPACE::convertLocationObjectToPositionInfo (const QNapi::Object &locationObject)
std::shared_ptr< voidQT_BEGIN_NAMESPACE::registerLocationChangeUpdateHandler (QObject *contextObject, long intervalSec, UserActivityScenario userActivityScenario, QOhosConsumer< const QGeoPositionInfo & > positionInfoUpdateConsumer)
std::shared_ptr< voidQT_BEGIN_NAMESPACE::makeContinuousPositionInfoUpdateProducer (QObject *contextObject, int intervalMs, QGeoPositionInfoSource::PositioningMethods positioningMethods, QOhosConsumer< const QGeoPositionInfo &, QGeoPositionInfoSource::PositioningMethods > positionInfoUpdateConsumer)
std::shared_ptr< voidQT_BEGIN_NAMESPACE::makeSinglePositionInfoUpdateProducer (QObject *contextObject, int timeoutMs, QGeoPositionInfoSource::PositioningMethods positioningMethods, QOhosConsumer< std::optional< QGeoPositionInfo >, QGeoPositionInfoSource::PositioningMethods > positionInfoUpdateConsumer)
std::shared_ptr< voidQT_BEGIN_NAMESPACE::registerLocationErrorHandler (QObject *contextObject, QOhosConsumer< LocationError > errorConsumer)
QGeoPositionInfoSource::Error QT_BEGIN_NAMESPACE::convertLocationErrorToQtError (LocationError error)
QGeoPositionInfoSourcetryMakeQOhosGeoPositionInfoSource (QObject *parent)

Function Documentation

◆ tryMakeQOhosGeoPositionInfoSource()

QGeoPositionInfoSource * tryMakeQOhosGeoPositionInfoSource ( QObject * parent)

Definition at line 511 of file qohosgeopositioninfosource.cpp.