File indexing completed on 2024-04-28 05:45:53

0001 /*
0002     SPDX-FileCopyrightText: 2021 Tomaz Canabrava <tcanabrava@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-3.0-or-later
0005 */
0006 
0007 #ifndef KPMCORE_CHANGEPERMISSIONJOB_H
0008 #define KPMCORE_CHANGEPERMISSIONJOB_H
0009 
0010 #include "jobs/job.h"
0011 
0012 class Partition;
0013 class Report;
0014 
0015 class QString;
0016 
0017 /** Check a FileSystem.
0018     @author Volker Lanz <vl@fidra.de>
0019 */
0020 class ChangePermissionJob : public Job
0021 {
0022 public:
0023     /* Permission should be set in the partition. */
0024     explicit ChangePermissionJob(Partition& p);
0025 
0026 public:
0027     bool run(Report& parent) override;
0028     QString description() const override;
0029 
0030 protected:
0031     Partition& partition() {
0032         return m_Partition;
0033     }
0034     const Partition& partition() const {
0035         return m_Partition;
0036     }
0037 
0038 private:
0039     Partition& m_Partition;
0040     QString m_permissions;
0041 };
0042 
0043 #endif