qCTKDCMTK.h 790 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef __qCTKDCMTK_h
  2. #define __qCTKDCMTK_h
  3. // QT includes
  4. #include <QObject>
  5. #include <QSqlDatabase>
  6. // qCTK includes
  7. #include <qCTKPimpl.h>
  8. #include "CTKDICOMCoreExport.h"
  9. class qCTKDCMTKPrivate;
  10. class Q_CTK_DICOM_CORE_EXPORT qCTKDCMTK : public QObject
  11. {
  12. Q_OBJECT
  13. public:
  14. typedef QObject Superclass;
  15. explicit qCTKDCMTK(QObject* parent = 0);
  16. virtual ~qCTKDCMTK();
  17. ///
  18. ///
  19. void setDatabaseFileName(const QString& file);
  20. ///
  21. /// open the SQLite database in file
  22. virtual bool openDatabase(const QString& file);
  23. QSqlDatabase& database();
  24. const QString& GetLastError() const;
  25. ///
  26. /// delete all data and initialize the database with
  27. /// the default schema
  28. bool initializeDatabase();
  29. private:
  30. QCTK_DECLARE_PRIVATE(qCTKDCMTK);
  31. };
  32. #endif