File indexing completed on 2024-05-05 12:09:06
0001 /* 0002 SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef BALOO_MIGRATOR_H 0008 #define BALOO_MIGRATOR_H 0009 0010 #include <QString> 0011 0012 namespace Baloo { 0013 0014 class FileIndexerConfig; 0015 0016 class Migrator 0017 { 0018 public: 0019 Migrator(const QString& dbPath, FileIndexerConfig* config); 0020 0021 bool migrationRequired() const; 0022 void migrate(); 0023 0024 private: 0025 QString m_dbPath; 0026 FileIndexerConfig* m_config; 0027 }; 0028 } 0029 0030 #endif // BALOO_MIGRATOR_H