flightentry.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. *openPilotLog - A FOSS Pilot Logbook Application
  3. *Copyright (C) 2020-2023 Felix Turowsky
  4. *
  5. *This program is free software: you can redistribute it and/or modify
  6. *it under the terms of the GNU General Public License as published by
  7. *the Free Software Foundation, either version 3 of the License, or
  8. *(at your option) any later version.
  9. *
  10. *This program is distributed in the hope that it will be useful,
  11. *but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. *GNU General Public License for more details.
  14. *
  15. *You should have received a copy of the GNU General Public License
  16. *along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. */
  18. #ifndef FLIGHTENTRY_H
  19. #define FLIGHTENTRY_H
  20. #include "src/database/row.h"
  21. namespace OPL {
  22. /*!
  23. * \brief A Row representing a Flight entry. See Row class for details.
  24. */
  25. class FlightEntry : public Row
  26. {
  27. const static inline QString TABLE_NAME = QStringLiteral("flights");
  28. public:
  29. FlightEntry();
  30. FlightEntry(const RowData_T &row_data);
  31. FlightEntry(int row_id, const RowData_T &row_data);
  32. const QString getTableName() const override;
  33. /*!
  34. * \brief returns a String representation of the key data of this flight
  35. */
  36. const QString getFlightSummary() const;
  37. const static inline QString ROWID = QStringLiteral("flight_id");
  38. const static inline QString DOFT = QStringLiteral("doft");
  39. const static inline QString DEPT = QStringLiteral("dept");
  40. const static inline QString DEST = QStringLiteral("dest");
  41. const static inline QString TOFB = QStringLiteral("tofb");
  42. const static inline QString TONB = QStringLiteral("tonb");
  43. const static inline QString PIC = QStringLiteral("pic");
  44. const static inline QString ACFT = QStringLiteral("acft");
  45. const static inline QString TBLK = QStringLiteral("tblk");
  46. const static inline QString TSPSE = QStringLiteral("tSPSE");
  47. const static inline QString TSPME = QStringLiteral("tSPME");
  48. const static inline QString TMP = QStringLiteral("tMP");
  49. const static inline QString TNIGHT = QStringLiteral("tNIGHT");
  50. const static inline QString TIFR = QStringLiteral("tIFR");
  51. const static inline QString TPIC = QStringLiteral("tPIC");
  52. const static inline QString TPICUS = QStringLiteral("tPICUS");
  53. const static inline QString TSIC = QStringLiteral("tSIC");
  54. const static inline QString TDUAL = QStringLiteral("tDUAL");
  55. const static inline QString TFI = QStringLiteral("tFI");
  56. const static inline QString TSIM = QStringLiteral("tSIM");
  57. const static inline QString PILOTFLYING = QStringLiteral("pilotFlying");
  58. const static inline QString TODAY = QStringLiteral("toDay");
  59. const static inline QString TONIGHT = QStringLiteral("toNight");
  60. const static inline QString LDGDAY = QStringLiteral("ldgDay");
  61. const static inline QString LDGNIGHT = QStringLiteral("ldgNight");
  62. const static inline QString AUTOLAND = QStringLiteral("autoland");
  63. const static inline QString SECONDPILOT = QStringLiteral("secondPilot");
  64. const static inline QString THIRDPILOT = QStringLiteral("thirdPilot");
  65. const static inline QString APPROACHTYPE = QStringLiteral("approachType");
  66. const static inline QString FLIGHTNUMBER = QStringLiteral("flightNumber");
  67. const static inline QString REMARKS = QStringLiteral("remarks");
  68. };
  69. } // namespace OPL
  70. #endif // FLIGHTENTRY_H