hblastregrecorddao.h 552 B

123456789101112131415161718192021222324
  1. #ifndef HBLASTREGRECORDDAO_H
  2. #define HBLASTREGRECORDDAO_H
  3. #include "hblastregrecord.h"
  4. #include <QSqlDatabase>
  5. #include <QSqlQuery>
  6. #include <QSqlError>
  7. #include <QDebug>
  8. class HBlastRegRecordDao
  9. {
  10. public:
  11. HBlastRegRecordDao(QSqlDatabase db);
  12. bool addHBlastRegRecord(const HBlastRegRecord& record);
  13. bool updateHBlastRegRecord(const HBlastRegRecord& record);
  14. bool deleteHBlastRegRecord(qint64 id);
  15. // HBlastRegRecord getHBlastRegRecordById(qint64 id);
  16. private:
  17. QSqlDatabase database;
  18. };
  19. #endif // HBLASTREGRECORDDAO_H