dbflight.h 886 B

1234567891011121314151617181920212223242526272829303132
  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. static QVector<QString> selectFlightById(QString flight_id);
  12. static bool deleteFlightById(QString flight_id);
  13. static QVector<QString> createFlightVectorFromInput(QString doft, QString dept, QTime tofb, QString dest,
  14. QTime tonb, QTime tblk, QString pic, QString acft);
  15. static void commitFlight(QVector<QString> flight);
  16. static void commitToScratchpad(QVector<QString> flight);
  17. static QVector<QString> retreiveScratchpad();
  18. static bool checkScratchpad();
  19. static void clearScratchpad();
  20. };
  21. #endif // DBFLIGHT_H