File indexing completed on 2024-04-14 15:49:36

0001 // SPDX-FileCopyrightText: 2020 Simon Persson <simon.persson@mykolab.com>
0002 //
0003 // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004 
0005 #ifndef BUPREPAIRJOB_H
0006 #define BUPREPAIRJOB_H
0007 
0008 #include "backupjob.h"
0009 
0010 #include <KProcess>
0011 
0012 class KupDaemon;
0013 
0014 class BupRepairJob : public BackupJob
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     BupRepairJob(BackupPlan &pBackupPlan, const QString &pDestinationPath, const QString &pLogFilePath, KupDaemon *pKupDaemon);
0020 
0021 protected slots:
0022     void performJob() override;
0023     void slotRepairStarted();
0024     void slotRepairDone(int pExitCode, QProcess::ExitStatus pExitStatus);
0025 
0026 protected:
0027     KProcess mFsckProcess;
0028 
0029 };
0030 
0031 #endif // BUPREPAIRJOB_H