12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef DBFLIGHT_H
- #define DBFLIGHT_H
- #include <QCoreApplication>
- #include "flight.h"
- #include "calc.h"
- class dbFlight
- {
- public:
- static flight verifyInput(flight object);
- static flight retreiveFlight(QString flight_id);
- static bool commitFlight(flight object);
- static QVector<QString> selectFlightById(QString flight_id);
- static bool deleteFlightById(QString flight_id);
- static QVector<QString> createFlightVectorFromInput(QString doft, QString dept, QTime tofb, QString dest,
- QTime tonb, QTime tblk, QString pic, QString acft);
- static void commitToScratchpad(QVector<QString> flight);
- static QVector<QString> retreiveScratchpad();
- static bool checkScratchpad();
- static void clearScratchpad();
- };
- #endif
|