Enroute Flight Navigation
A navigation app for VFR pilots
Platform::PlatformAdaptor Class Reference

Implementation of PlatformAdaptor for Android devices. More...

#include <PlatformAdaptor_Android.h>

Inheritance diagram for Platform::PlatformAdaptor:
Platform::PlatformAdaptor_Abstract Platform::PlatformAdaptor_Abstract Platform::PlatformAdaptor_Abstract Platform::PlatformAdaptor_Abstract Platform::PlatformAdaptor_Abstract Platform::PlatformAdaptor_Abstract GlobalObject GlobalObject GlobalObject GlobalObject GlobalObject GlobalObject

Public Member Functions

 PlatformAdaptor (QObject *parent=nullptr)
 Standard constructor.
 
QString currentSSID () override
 Implements a pure virtual method from PlatformAdaptor_Abstract.
 
void disableScreenSaver () override
 Implements a pure virtual method from PlatformAdaptor_Abstract.
 
void lockWifi (bool lock) override
 Implements s pure virtual method from PlatformAdaptor_Abstract.
 
void openSatView (const QGeoCoordinate &coordinate) override
 Re-implements a virtual method from PlatformAdaptor_Abstract.
 
QString systemInfo () override
 Information about the system, in HTML format.
 
void vibrateBrief () override
 Implements a pure virtual method from PlatformAdaptor_Abstract.
 
void vibrateLong () override
 Implements a pure virtual method from PlatformAdaptor_Abstract.
 
void onGUISetupCompleted () override
 Implements a pure virtual method from PlatformAdaptor_Abstract.
 
 PlatformAdaptor (QObject *parent=nullptr)
 Standard constructor.
 
QString currentSSID () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void disableScreenSaver () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void setupInputMethodEventFilter (QQuickItem *item) override
 Implements virtual method from PlatformAdaptor_Abstract, workaround for QTBUG-80790.
 
void vibrateBrief () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void vibrateLong () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
QString language () override
 Reimplements virtual method from PlatformAdaptor_Abstract.
 
void onGUISetupCompleted () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
 PlatformAdaptor (QObject *parent=nullptr)
 Standard constructor.
 
QString currentSSID () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void disableScreenSaver () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void lockWifi (bool lock) override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void vibrateBrief () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void vibrateLong () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void onGUISetupCompleted () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
 PlatformAdaptor (QObject *parent=nullptr)
 Standard constructor.
 
 PlatformAdaptor (QObject *parent=nullptr)
 Standard constructor.
 
QString currentSSID () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void disableScreenSaver () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
bool hasRequiredPermissions () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void lockWifi (bool lock) override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void requestPermissionsSync () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void vibrateBrief () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void onGUISetupCompleted () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
 PlatformAdaptor (QObject *parent=nullptr)
 Standard constructor.
 
QString currentSSID () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void disableScreenSaver () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
bool hasRequiredPermissions () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void lockWifi (bool lock) override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void requestPermissionsSync () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void vibrateBrief () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
void onGUISetupCompleted () override
 Implements pure virtual method from PlatformAdaptor_Abstract.
 
- Public Member Functions inherited from Platform::PlatformAdaptor_Abstract
 PlatformAdaptor_Abstract (QObject *parent=nullptr)
 Standard constructor.
 
- Public Member Functions inherited from GlobalObject
 GlobalObject (QObject *parent=nullptr)
 Standard constructor.
 
 ~GlobalObject () override=default
 Standard deconstructor.
 

Protected Member Functions

void deferredInitialization () override
 Re-implements a virtual method from PlatformAdaptor_Abstract.
 

Additional Inherited Members

- Signals inherited from Platform::PlatformAdaptor_Abstract
void error (const QString &message)
 Emitted when an error occurs.
 
void languageChanged ()
 Emitted when the OS requests a language change.
 
void wifiConnected ()
 Emitted when a new WiFi connections becomes available.
 
- Static Public Member Functions inherited from Platform::PlatformAdaptor_Abstract
static Q_INVOKABLE QString clipboardText ()
 Content of ClipBoard.
 
static Q_INVOKABLE void saveScreenshot (const QImage &image, const QString &path)
 Save image as a raster graphic file in path.
 
- Static Public Member Functions inherited from GlobalObject
static void clear ()
 Deletes all globally defined objects.
 
static Q_INVOKABLE bool canConstruct ()
 Indicates if the static methods are ready to be used.
 
static Q_INVOKABLE Navigation::Clockclock ()
 Pointer to appplication-wide static Navigation::Clock instance.
 
static Q_INVOKABLE DataManagement::DataManagerdataManager ()
 Pointer to appplication-wide static GeoMaps::DataManager instance.
 
static Q_INVOKABLE DemoRunnerdemoRunner ()
 Pointer to appplication-wide static DemoRunner instance.
 
static Q_INVOKABLE Traffic::FlarmnetDBflarmnetDB ()
 Pointer to appplication-wide static FlarmnetDB instance.
 
static Q_INVOKABLE Platform::FileExchange_AbstractfileExchange ()
 Pointer to appplication-wide static FileExchange instance.
 
static Q_INVOKABLE GeoMaps::GeoMapProvidergeoMapProvider ()
 Pointer to appplication-wide static GeoMaps::GeoMapProvider instance.
 
static Q_INVOKABLE GlobalSettingsglobalSettings ()
 Pointer to appplication-wide static Settings instance.
 
static Q_INVOKABLE Librarianlibrarian ()
 Pointer to appplication-wide static librarian instance.
 
static Q_INVOKABLE Platform::PlatformAdaptor_AbstractplatformAdaptor ()
 Pointer to appplication-wide static PlatformAdaptor instance.
 
static Q_INVOKABLE Sensorssensors ()
 Pointer to appplication-wide static Navigation::Clock instance.
 
static Q_INVOKABLE Navigation::Navigatornavigator ()
 Pointer to appplication-wide static Navigation::Navigator instance.
 
static Q_INVOKABLE Traffic::PasswordDBpasswordDB ()
 Pointer to appplication-wide static PasswordDB instance.
 
static Q_INVOKABLE Positioning::PositionProviderpositionProvider ()
 Pointer to appplication-wide static PositionProvider instance.
 
static Q_INVOKABLE NOTAM::NOTAMProvidernotamProvider ()
 Pointer to appplication-wide static notification manager instance.
 
static Q_INVOKABLE Notifications::NotificationManagernotificationManager ()
 Pointer to appplication-wide static notification manager instance.
 
static Q_INVOKABLE QNetworkAccessManager * networkAccessManager ()
 Pointer to appplication-wide static QNetworkAccessManager instance.
 
static Q_INVOKABLE DataManagement::SSLErrorHandlersslErrorHandler ()
 Pointer to appplication-wide static QNetworkAccessManager instance.
 
static Q_INVOKABLE Traffic::TrafficDataProvidertrafficDataProvider ()
 Pointer to appplication-wide static TrafficDataProvider instance.
 
static Q_INVOKABLE GeoMaps::WaypointLibrarywaypointLibrary ()
 Pointer to appplication-wide static WaypointLibrary instance.
 
static Q_INVOKABLE Weather::WeatherDataProviderweatherDataProvider ()
 Pointer to appplication-wide static WeatherDataProvider instance.
 

Detailed Description

Implementation of PlatformAdaptor for Android devices.

Implementation of PlatformAdaptor for Linux desktop devices.

Template implementation of PlatformAdaptor.

Definition at line 34 of file PlatformAdaptor_Android.h.

Constructor & Destructor Documentation

◆ PlatformAdaptor() [1/6]

Platform::PlatformAdaptor::PlatformAdaptor ( QObject * parent = nullptr)
explicit

Standard constructor.

Parameters
parentStandard QObject parent pointer

◆ PlatformAdaptor() [2/6]

Platform::PlatformAdaptor::PlatformAdaptor ( QObject * parent = nullptr)
explicit

Standard constructor.

Parameters
parentStandard QObject parent pointer

◆ PlatformAdaptor() [3/6]

Platform::PlatformAdaptor::PlatformAdaptor ( QObject * parent = nullptr)
explicit

Standard constructor.

Parameters
parentStandard QObject parent pointer

◆ PlatformAdaptor() [4/6]

Platform::PlatformAdaptor::PlatformAdaptor ( QObject * parent = nullptr)
explicit

Standard constructor.

Parameters
parentStandard QObject parent pointer

◆ PlatformAdaptor() [5/6]

Platform::PlatformAdaptor::PlatformAdaptor ( QObject * parent = nullptr)
explicit

Standard constructor.

Parameters
parentStandard QObject parent pointer

◆ PlatformAdaptor() [6/6]

Platform::PlatformAdaptor::PlatformAdaptor ( QObject * parent = nullptr)
explicit

Standard constructor.

Parameters
parentStandard QObject parent pointer

Member Function Documentation

◆ currentSSID() [1/5]

QString Platform::PlatformAdaptor::currentSSID ( )
overridevirtual

Implements a pure virtual method from PlatformAdaptor_Abstract.

Returns
see PlatformAdaptor_Abstract

Reimplemented from Platform::PlatformAdaptor_Abstract.

◆ currentSSID() [2/5]

QString Platform::PlatformAdaptor::currentSSID ( )
overridevirtual

Implements pure virtual method from PlatformAdaptor_Abstract.

Returns
see PlatformAdaptor_Abstract

Reimplemented from Platform::PlatformAdaptor_Abstract.

◆ currentSSID() [3/5]

QString Platform::PlatformAdaptor::currentSSID ( )
overridevirtual

Implements pure virtual method from PlatformAdaptor_Abstract.

Returns
see PlatformAdaptor_Abstract

Reimplemented from Platform::PlatformAdaptor_Abstract.

◆ currentSSID() [4/5]

QString Platform::PlatformAdaptor::currentSSID ( )
overridevirtual

Implements pure virtual method from PlatformAdaptor_Abstract.

Returns
see PlatformAdaptor_Abstract

Reimplemented from Platform::PlatformAdaptor_Abstract.

◆ currentSSID() [5/5]

QString Platform::PlatformAdaptor::currentSSID ( )
overridevirtual

Implements pure virtual method from PlatformAdaptor_Abstract.

Returns
see PlatformAdaptor_Abstract

Reimplemented from Platform::PlatformAdaptor_Abstract.

◆ hasRequiredPermissions() [1/2]

bool Platform::PlatformAdaptor::hasRequiredPermissions ( )
override

Implements pure virtual method from PlatformAdaptor_Abstract.

Returns
see PlatformAdaptor_Abstract

◆ hasRequiredPermissions() [2/2]

bool Platform::PlatformAdaptor::hasRequiredPermissions ( )
override

Implements pure virtual method from PlatformAdaptor_Abstract.

Returns
see PlatformAdaptor_Abstract

◆ language()

QString Platform::PlatformAdaptor::language ( )
overridevirtual

Reimplements virtual method from PlatformAdaptor_Abstract.

Returns
A two-letter language code, as documented in PlatformAdaptor_Abstract

Reimplemented from Platform::PlatformAdaptor_Abstract.

◆ lockWifi() [1/4]

void Platform::PlatformAdaptor::lockWifi ( bool lock)
overridevirtual

Implements s pure virtual method from PlatformAdaptor_Abstract.

Parameters
locksee PlatformAdaptor_Abstract

Reimplemented from Platform::PlatformAdaptor_Abstract.

◆ lockWifi() [2/4]

void Platform::PlatformAdaptor::lockWifi ( bool lock)
overridevirtual

Implements pure virtual method from PlatformAdaptor_Abstract.

Parameters
locksee PlatformAdaptor_Abstract

Reimplemented from Platform::PlatformAdaptor_Abstract.

◆ lockWifi() [3/4]

void Platform::PlatformAdaptor::lockWifi ( bool lock)
overridevirtual

Implements pure virtual method from PlatformAdaptor_Abstract.

Parameters
locksee PlatformAdaptor_Abstract

Reimplemented from Platform::PlatformAdaptor_Abstract.

◆ lockWifi() [4/4]

void Platform::PlatformAdaptor::lockWifi ( bool lock)
overridevirtual

Implements pure virtual method from PlatformAdaptor_Abstract.

Parameters
locksee PlatformAdaptor_Abstract

Reimplemented from Platform::PlatformAdaptor_Abstract.

◆ openSatView()

void Platform::PlatformAdaptor::openSatView ( const QGeoCoordinate & coordinate)
overridevirtual

Re-implements a virtual method from PlatformAdaptor_Abstract.

Parameters
coordinateLocation whose sat view should be shown.

Reimplemented from Platform::PlatformAdaptor_Abstract.

◆ setupInputMethodEventFilter()

void Platform::PlatformAdaptor::setupInputMethodEventFilter ( QQuickItem * item)
inlineoverridevirtual

Implements virtual method from PlatformAdaptor_Abstract, workaround for QTBUG-80790.

Parameters
itemQQuickItem where the event filter is to be intalled.

Reimplemented from Platform::PlatformAdaptor_Abstract.

Definition at line 80 of file PlatformAdaptor_iOS.h.

◆ systemInfo()

QString Platform::PlatformAdaptor::systemInfo ( )
overridevirtual

Information about the system, in HTML format.

Returns
Info string

Reimplemented from Platform::PlatformAdaptor_Abstract.


The documentation for this class was generated from the following files: