dbflight.h 902 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef DBFLIGHT_H
  2. #define DBFLIGHT_H
  3. #include <QCoreApplication>
  4. /*!
  5. * \brief The dbFlight class provides a databank interface for actions related to the
  6. * flights, extras and scratchpad tables, i.e. all tables that are related to a flight entry.
  7. */
  8. class dbFlight
  9. {
  10. public:
  11. dbFlight();
  12. static QVector<QString> selectFlightById(QString flight_id);
  13. static bool deleteFlightById(QString flight_id);
  14. static QVector<QString> createFlightVectorFromInput(QString doft, QString dept, QTime tofb, QString dest,
  15. QTime tonb, QTime tblk, QString pic, QString acft);
  16. static void commitFlight(QVector<QString> flight);
  17. static void commitToScratchpad(QVector<QString> flight);
  18. static QVector<QString> retreiveScratchpad();
  19. static bool checkScratchpad();
  20. static void clearScratchpad();
  21. };
  22. #endif // DBFLIGHT_H