openPilotLog

aflightentry.h
1 #ifndef AFLIGHTENTRY_H
2 #define AFLIGHTENTRY_H
3
4 #include "src/experimental/aentry.h"
5 #include "src/functions/acalc.h"
6
7 namespace experimental {
8
9 class AFlightEntry : public AEntry {
10 public:
11 AFlightEntry();
12 AFlightEntry(const AFlightEntry& pe) = default;
13 AFlightEntry& operator=(const AFlightEntry& pe) = default;
14 AFlightEntry(int row_id);
15 AFlightEntry(TableData table_data);
16
17 enum pilot { pic, sic, thirdPilot };
18
23 const QString summary();
27 const QString getRegistration();
34 const QString getPilotName(pilot);
35 };
36
37 } // namespace experimental
38
39 #endif // AFLIGHTENTRY_H
experimental
Temporary namespace for experimental features. Will be removed in later versions.
Definition: aaircraftentry.cpp:20
experimental::AEntry
The Entry class encapsulates table metadata(table name, row id) and data for new and existing entries...
Definition: aentry.h:42
experimental::AFlightEntry
Definition: aflightentry.h:9
experimental::AFlightEntry::summary
const QString summary()
Returs a summary of the flight data, if struct holds data.
Definition: aflightentry.cpp:18
experimental::AFlightEntry::getRegistration
const QString getRegistration()
Returns the tails' registration from the database.
Definition: aflightentry.cpp:33
experimental::AFlightEntry::getPilotName
const QString getPilotName(pilot)
Returns the pilots name from the Database.
Definition: aflightentry.cpp:52