|
Enroute Flight Navigation
A navigation app for VFR pilots
|
Implementation of FileExchange for Android devices. More...
#include <FileExchange_Android.h>
Public Slots | |
| void | onGUISetupCompleted () override |
| Implements pure virtual method from FileExchange_Abstract. | |
| void | processFileOpenRequest (const QString &path, const QString &unmingledFilename) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| void | onGUISetupCompleted () override |
| Implements pure virtual method from FileExchange_Abstract. | |
| void | onGUISetupCompleted () override |
| Implements pure virtual method from FileExchange_Abstract. | |
| void | onGUISetupCompleted () override |
| Implements pure virtual method from FileExchange_Abstract. | |
| Public Slots inherited from Platform::FileExchange_Abstract | |
| virtual void | onGUISetupCompleted ()=0 |
| GUI setup completed. | |
| virtual void | processFileOpenRequest (const QString &path, const QString &unmingledFilename) |
| Determine file function and emit openFileRequest() | |
| void | processFileOpenRequest (const QByteArray &path) |
| Determine file function and emit openFileRequest() | |
| void | processText (const QString &text) |
| Process text. | |
Public Member Functions | |
| FileExchange (QObject *parent=nullptr) | |
| Standard constructor. | |
| void | importContent () override |
| Implements pure virtual method from FileExchange_Abstract. | |
| QString | shareContent (const QByteArray &content, const QString &mimeType, const QString &fileNameTemplate) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| QString | viewContent (const QByteArray &content, const QString &mimeType, const QString &fileNameTemplate) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| FileExchange (QObject *parent=nullptr) | |
| Standard constructor. | |
| void | importContent () override |
| Implements pure virtual method from FileExchange_Abstract. | |
| QString | shareContent (const QByteArray &content, const QString &mimeType, const QString &fileNameTemplate) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| QString | viewContent (const QByteArray &content, const QString &mimeType, const QString &fileNameTemplate) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| FileExchange (QObject *parent=nullptr) | |
| Standard constructor. | |
| void | importContent () override |
| Implements pure virtual method from FileExchange_Abstract. | |
| QString | shareContent (const QByteArray &content, const QString &mimeType, const QString &fileNameTemplate) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| QString | viewContent (const QByteArray &content, const QString &mimeType, const QString &fileNameTemplate) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| FileExchange (QObject *parent=nullptr) | |
| Standard constructor. | |
| void | importContent () override |
| Implements pure virtual method from FileExchange_Abstract. | |
| QString | shareContent (const QByteArray &content, const QString &mimeType, const QString &fileNameTemplate) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| QString | viewContent (const QByteArray &content, const QString &mimeType, const QString &fileNameTemplate) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| FileExchange (QObject *parent=nullptr) | |
| Standard constructor. | |
| void | importContent () override |
| Implements pure virtual method from FileExchange_Abstract. | |
| QString | shareContent (const QByteArray &content, const QString &mimeType, const QString &fileNameTemplate) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| QString | viewContent (const QByteArray &content, const QString &mimeType, const QString &fileNameTemplate) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| FileExchange (QObject *parent=nullptr) | |
| Standard constructor. | |
| void | importContent () override |
| Implements pure virtual method from FileExchange_Abstract. | |
| QString | shareContent (const QByteArray &content, const QString &mimeType, const QString &fileNameTemplate) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| QString | viewContent (const QByteArray &content, const QString &mimeType, const QString &fileNameTemplate) override |
| Implements pure virtual method from FileExchange_Abstract. | |
| Public Member Functions inherited from Platform::FileExchange_Abstract | |
| FileExchange_Abstract (QObject *parent=nullptr) | |
| Standard constructor. | |
| Public Member Functions inherited from GlobalObject | |
| GlobalObject (QObject *parent=nullptr) | |
| Standard constructor. | |
| ~GlobalObject () override=default | |
| Standard deconstructor. | |
Static Public Member Functions | |
| static Q_INVOKABLE void | openFilePicker (const QString &mimeType) |
| Opens the native Android file picker. | |
| 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::Clock * | clock () |
| Pointer to appplication-wide static Navigation::Clock instance. | |
| static Q_INVOKABLE DataManagement::DataManager * | dataManager () |
| Pointer to appplication-wide static GeoMaps::DataManager instance. | |
| static Q_INVOKABLE DemoRunner * | demoRunner () |
| Pointer to appplication-wide static DemoRunner instance. | |
| static Q_INVOKABLE Traffic::FlarmnetDB * | flarmnetDB () |
| Pointer to appplication-wide static FlarmnetDB instance. | |
| static Q_INVOKABLE Platform::FileExchange * | fileExchange () |
| Pointer to appplication-wide static FileExchange instance. | |
| static Q_INVOKABLE GeoMaps::GeoMapProvider * | geoMapProvider () |
| Pointer to appplication-wide static GeoMaps::GeoMapProvider instance. | |
| static Q_INVOKABLE GlobalSettings * | globalSettings () |
| Pointer to appplication-wide static Settings instance. | |
| static Q_INVOKABLE Librarian * | librarian () |
| Pointer to appplication-wide static librarian instance. | |
| static Q_INVOKABLE Platform::PlatformAdaptor_Abstract * | platformAdaptor () |
| Pointer to appplication-wide static PlatformAdaptor instance. | |
| static Q_INVOKABLE Sensors * | sensors () |
| Pointer to appplication-wide static Navigation::Clock instance. | |
| static Q_INVOKABLE Navigation::Navigator * | navigator () |
| Pointer to appplication-wide static Navigation::Navigator instance. | |
| static Q_INVOKABLE Traffic::PasswordDB * | passwordDB () |
| Pointer to appplication-wide static PasswordDB instance. | |
| static Q_INVOKABLE Positioning::PositionProvider * | positionProvider () |
| Pointer to appplication-wide static PositionProvider instance. | |
| static Q_INVOKABLE NOTAM::NOTAMProvider * | notamProvider () |
| Pointer to appplication-wide static notification manager instance. | |
| static Q_INVOKABLE Notifications::NotificationManager * | notificationManager () |
| Pointer to appplication-wide static notification manager instance. | |
| static Q_INVOKABLE QNetworkAccessManager * | networkAccessManager () |
| Pointer to appplication-wide static QNetworkAccessManager instance. | |
| static Q_INVOKABLE DataManagement::SSLErrorHandler * | sslErrorHandler () |
| Pointer to appplication-wide static QNetworkAccessManager instance. | |
| static Q_INVOKABLE Traffic::TrafficDataProvider * | trafficDataProvider () |
| Pointer to appplication-wide static TrafficDataProvider instance. | |
| static Q_INVOKABLE GeoMaps::WaypointLibrary * | waypointLibrary () |
| Pointer to appplication-wide static WaypointLibrary instance. | |
| static Q_INVOKABLE Weather::WeatherDataProvider * | weatherDataProvider () |
| Pointer to appplication-wide static WeatherDataProvider instance. | |
Protected Member Functions | |
| void | deferredInitialization () override |
| Implements virtual method from FileExchange_Abstract. | |
| void | deferredInitialization () override |
| Implements virtual method from GlobalObject. | |
| void | deferredInitialization () override |
| Implements virtual method from GlobalObject. | |
| virtual void | deferredInitialization () override |
| Implements virtual method from GlobalObject. | |
| virtual void | deferredInitialization () override |
| Implements virtual method from GlobalObject. | |
Additional Inherited Members | |
| Public Types inherited from Platform::FileExchange_Abstract | |
| enum | FileFunction : quint8 |
| Functions and types of a file that this app handles. | |
| Signals inherited from Platform::FileExchange_Abstract | |
| void | openFileRequest (QString fileName, QString info, Platform::FileExchange_Abstract::FileFunction fileFunction) |
| Emitted when platform asks this app to open a file. | |
| void | openVACRequest (GeoMaps::VAC vac) |
| Emitted when platform asks this app to open a VAC. | |
| void | openWaypointRequest (GeoMaps::Waypoint waypoint) |
| Emitted when platform asks this app to show a waypoint. | |
| void | resolveURL (QString url, QString site) |
| Emitted when Google Maps URL needs to be resolved. | |
| void | unableToProcessText (QString text) |
| Emitted when processText was unable to parse a text item. | |
Implementation of FileExchange for Android devices.
Implementation of FileExchange for Linux desktop devices.
Template implementation of FileExchange.
Definition at line 30 of file FileExchange_Android.h.
|
explicit |
Standard constructor.
| parent | Standard QObject parent pointer |
|
explicit |
Standard constructor.
| parent | Standard QObject parent pointer |
|
explicit |
Standard constructor.
| parent | Standard QObject parent pointer |
|
explicit |
Standard constructor.
| parent | Standard QObject parent pointer |
|
explicit |
Standard constructor.
| parent | Standard QObject parent pointer |
|
explicit |
Standard constructor.
| parent | Standard QObject parent pointer |
|
static |
Opens the native Android file picker.
This method facilitates a workaround against https://bugreports.qt.io/browse/QTBUG-118154 which renders the file dialog effectively unusable under Android. This method returns immediately. It display the file picker on top of the app. Once a file is chosen, the standart import mechanism is invoked.
| mimeType | A space-separated list of mime types for that that should be selectable |
|
overridevirtual |
Implements pure virtual method from FileExchange_Abstract.
| content | see documentation for FileExchange_Abstract |
| mimeType | see documentation for FileExchange_Abstract |
| fileNameTemplate | see documentation for FileExchange_Abstract |
Implements Platform::FileExchange_Abstract.
|
overridevirtual |
Implements pure virtual method from FileExchange_Abstract.
| content | see documentation for FileExchange_Abstract |
| mimeType | see documentation for FileExchange_Abstract |
| fileNameTemplate | see documentation for FileExchange_Abstract |
Implements Platform::FileExchange_Abstract.
|
overridevirtual |
Implements pure virtual method from FileExchange_Abstract.
| content | see documentation for FileExchange_Abstract |
| mimeType | see documentation for FileExchange_Abstract |
| fileNameTemplate | see documentation for FileExchange_Abstract |
Implements Platform::FileExchange_Abstract.
|
overridevirtual |
Implements pure virtual method from FileExchange_Abstract.
| content | see documentation for FileExchange_Abstract |
| mimeType | see documentation for FileExchange_Abstract |
| fileNameTemplate | see documentation for FileExchange_Abstract |
Implements Platform::FileExchange_Abstract.
|
overridevirtual |
Implements pure virtual method from FileExchange_Abstract.
| content | see documentation for FileExchange_Abstract |
| mimeType | see documentation for FileExchange_Abstract |
| fileNameTemplate | see documentation for FileExchange_Abstract |
Implements Platform::FileExchange_Abstract.
|
overridevirtual |
Implements pure virtual method from FileExchange_Abstract.
| content | see documentation for FileExchange_Abstract |
| mimeType | see documentation for FileExchange_Abstract |
| fileNameTemplate | see documentation for FileExchange_Abstract |
Implements Platform::FileExchange_Abstract.
|
overridevirtual |
Implements pure virtual method from FileExchange_Abstract.
| content | see documentation for FileExchange_Abstract |
| mimeType | see documentation for FileExchange_Abstract |
| fileNameTemplate | see documentation for FileExchange_Abstract |
Implements Platform::FileExchange_Abstract.
|
overridevirtual |
Implements pure virtual method from FileExchange_Abstract.
| content | see documentation for FileExchange_Abstract |
| mimeType | see documentation for FileExchange_Abstract |
| fileNameTemplate | see documentation for FileExchange_Abstract |
Implements Platform::FileExchange_Abstract.
|
overridevirtual |
Implements pure virtual method from FileExchange_Abstract.
| content | see documentation for FileExchange_Abstract |
| mimeType | see documentation for FileExchange_Abstract |
| fileNameTemplate | see documentation for FileExchange_Abstract |
Implements Platform::FileExchange_Abstract.
|
overridevirtual |
Implements pure virtual method from FileExchange_Abstract.
| content | see documentation for FileExchange_Abstract |
| mimeType | see documentation for FileExchange_Abstract |
| fileNameTemplate | see documentation for FileExchange_Abstract |
Implements Platform::FileExchange_Abstract.
|
overridevirtual |
Implements pure virtual method from FileExchange_Abstract.
| content | see documentation for FileExchange_Abstract |
| mimeType | see documentation for FileExchange_Abstract |
| fileNameTemplate | see documentation for FileExchange_Abstract |
Implements Platform::FileExchange_Abstract.
|
overridevirtual |
Implements pure virtual method from FileExchange_Abstract.
| content | see documentation for FileExchange_Abstract |
| mimeType | see documentation for FileExchange_Abstract |
| fileNameTemplate | see documentation for FileExchange_Abstract |
Implements Platform::FileExchange_Abstract.