123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef AFLIGHTENTRY_H
- #define AFLIGHTENTRY_H
- #include "src/experimental/aentry.h"
- #include "src/functions/acalc.h"
- namespace experimental {
- class AFlightEntry : public AEntry {
- public:
- AFlightEntry();
- AFlightEntry(const AFlightEntry& pe) = default;
- AFlightEntry& operator=(const AFlightEntry& pe) = default;
- AFlightEntry(int row_id);
- AFlightEntry(TableData table_data);
- enum pilot {pic, sic, thirdPilot };
- /*!
- * \brief Returs a summary of the flight data
- * \return "doft, dept, tofb, dest, tonb"
- */
- QString summary();
- /*!
- * \brief Returns the tails' registration from the database.
- */
- QString registration();
- /*!
- * \brief Returns the pilots name from the Database
- *
- * \param pilot_number - 1=pic, 2=second Pilot, 3 = third Pilot
- * \return "Lastname, Firstname"
- */
- QString pilotName(pilot);
- };
- } // namespace experimental
- #endif // AFLIGHTENTRY_H
|