Enroute Flight Navigation
A navigation app for VFR pilots
FileFormats::PLN Class Reference

PLN file support classq. More...

#include <PLN.h>

Inheritance diagram for FileFormats::PLN:
FileFormats::DataFileAbstract

Public Member Functions

 PLN (const QString &fileName)
 Constructor.
 
QVector< GeoMaps::Waypointwaypoints () const
 Waypoints specified in the PLN file.
 
- Public Member Functions inherited from FileFormats::DataFileAbstract
bool isValid () const
 Validity check.
 
QString error () const
 Error string.
 
QStringList warnings () const
 Warnings.
 

Static Public Member Functions

static QStringList mimeTypes ()
 Mime type for files that can be opened by this class.
 
- Static Public Member Functions inherited from FileFormats::DataFileAbstract
static QSharedPointer< QFile > openFileURL (const QString &fileName)
 Open file, file URL or Android content URL.
 

Detailed Description

PLN file support classq.

The methods of this class read PLN files, as specified here: https://docs.flightsimulator.com/html/Content_Configuration/qFlights_And_Missions/Flight_Plan_Definitions.htm

Definition at line 40 of file PLN.h.

Constructor & Destructor Documentation

◆ PLN()

FileFormats::PLN::PLN ( const QString & fileName)

Constructor.

This method reads a PLN file.

Parameters
fileNameName of a PLN file

Member Function Documentation

◆ mimeTypes()

static QStringList FileFormats::PLN::mimeTypes ( )
inlinestaticnodiscard

Mime type for files that can be opened by this class.

Returns
Name of mime type

Definition at line 74 of file PLN.h.

◆ waypoints()

QVector< GeoMaps::Waypoint > FileFormats::PLN::waypoints ( ) const
inlinenodiscard

Waypoints specified in the PLN file.

The QGeoCoordinates returned here are guaranteed to be valid.

Returns
Waypoints specified in the PLN file

Definition at line 63 of file PLN.h.


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