File indexing completed on 2024-07-07 14:59:48

0001 /*
0002    SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "libruqola_private_export.h"
0010 #include <QDateTime>
0011 #include <qglobal.h>
0012 
0013 class LIBRUQOLACORE_TESTS_EXPORT LoadRecentHistoryManager
0014 {
0015 public:
0016     LoadRecentHistoryManager();
0017     ~LoadRecentHistoryManager();
0018 
0019     [[nodiscard]] qint64 lastLoadingTimeStamp() const;
0020 
0021     [[nodiscard]] qint64 generateNewStartTimeStamp(qint64 lastTimeStamp);
0022 
0023 private:
0024     Q_DISABLE_COPY(LoadRecentHistoryManager)
0025     qint64 mLastLoadingTimeStamp = QDateTime::currentDateTime().toMSecsSinceEpoch();
0026 };