aflightentry.h 952 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef AFLIGHTENTRY_H
  2. #define AFLIGHTENTRY_H
  3. #include "src/experimental/aentry.h"
  4. #include "src/functions/acalc.h"
  5. namespace experimental {
  6. class AFlightEntry : public AEntry {
  7. public:
  8. AFlightEntry();
  9. AFlightEntry(const AFlightEntry& pe) = default;
  10. AFlightEntry& operator=(const AFlightEntry& pe) = default;
  11. AFlightEntry(int row_id);
  12. AFlightEntry(TableData table_data);
  13. enum pilot {pic, sic, thirdPilot };
  14. /*!
  15. * \brief Returs a summary of the flight data
  16. * \return "doft, dept, tofb, dest, tonb"
  17. */
  18. QString summary();
  19. /*!
  20. * \brief Returns the tails' registration from the database.
  21. */
  22. QString registration();
  23. /*!
  24. * \brief Returns the pilots name from the Database
  25. *
  26. * \param pilot_number - 1=pic, 2=second Pilot, 3 = third Pilot
  27. * \return "Lastname, Firstname"
  28. */
  29. QString pilotName(pilot);
  30. };
  31. } // namespace experimental
  32. #endif // AFLIGHTENTRY_H