File indexing completed on 2025-01-19 03:57:50
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2015 0007 * Description : a test for timestamp trigger for re-reading metadata from image 0008 * 0009 * SPDX-FileCopyrightText: 2015 by Kristian Karl <kristian dot hermann dot karl at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_TIME_STAMP_UPDATE_UTEST_H 0016 #define DIGIKAM_TIME_STAMP_UPDATE_UTEST_H 0017 0018 // Qt includes 0019 0020 #include <QTest> 0021 0022 class TimeStampUpdateTest : public QObject 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 0028 explicit TimeStampUpdateTest(QObject* const parent = nullptr) 0029 : QObject(parent) 0030 { 0031 } 0032 0033 private Q_SLOTS: 0034 0035 void initTestCase(); 0036 void cleanupTestCase(); 0037 void cleanup(); 0038 void testRescanImageIfModifiedSet2True(); 0039 void testRescanImageIfModifiedSet2False(); 0040 0041 private: 0042 0043 QString tempFileName(const QString& purpose) const; 0044 QString tempFilePath(const QString& purpose) const; 0045 0046 private: 0047 0048 QString dbFile; 0049 QList<qlonglong> ids; 0050 }; 0051 0052 #endif // DIGIKAM_TIME_STAMP_UPDATE_UTEST_H