File indexing completed on 2024-06-02 04:17:06
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2010-06-21 0007 * Description : unit test program for digiKam sqlite database init 0008 * 0009 * SPDX-FileCopyrightText: 2013 by Michael G. Hansen <mike at mghansen dot de> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_DATABASE_SQLITE_INIT_UTEST_H 0016 #define DIGIKAM_DATABASE_SQLITE_INIT_UTEST_H 0017 0018 // Qt includes 0019 0020 #include <QTest> 0021 #include <QDir> 0022 #include <QString> 0023 0024 class DatabaseSqliteInitTest : public QObject 0025 { 0026 Q_OBJECT 0027 0028 public: 0029 0030 explicit DatabaseSqliteInitTest(QObject* const parent = nullptr) 0031 : QObject(parent) 0032 { 0033 } 0034 0035 private Q_SLOTS: 0036 0037 void testSqliteInit(); 0038 0039 void initTestCase(); 0040 void cleanupTestCase(); 0041 0042 private: 0043 0044 QString m_filesPath; ///< Path to image to import in database. 0045 QString m_tempPath; ///< The temporary path to store file to process unit test. 0046 QDir m_tempDir; ///< Same that previous as QDir object. 0047 }; 0048 0049 #endif // DIGIKAM_DATABASE_SQLITE_INIT_UTEST_H