#ifndef DBFLIGHT_H #define DBFLIGHT_H #include /*! * \brief The dbFlight class provides a databank interface for actions related to the * flights, extras and scratchpad tables, i.e. all tables that are related to a flight entry. */ class dbFlight { public: dbFlight(); static QVector selectFlightById(QString flight_id); static bool deleteFlightById(QString flight_id); static QVector createFlightVectorFromInput(QString doft, QString dept, QTime tofb, QString dest, QTime tonb, QTime tblk, QString pic, QString acft); static void commitFlight(QVector flight); static void commitToScratchpad(QVector flight); static QVector retreiveScratchpad(); static bool checkScratchpad(); static void clearScratchpad(); }; #endif // DBFLIGHT_H