File indexing completed on 2025-01-12 03:39:40

0001 /*
0002     SPDX-FileCopyrightText: 2017 Chinmoy Ranjan Pradhan <chinmoyrp65@gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef FILEHELPER_H
0008 #define FILEHELPER_H
0009 
0010 #include <KAuth/ActionReply>
0011 
0012 using namespace KAuth;
0013 
0014 /**
0015  * This KAuth helper is responsible for performing file operations with
0016  * root privileges.
0017  */
0018 class FileHelper : public QObject
0019 {
0020     Q_OBJECT
0021 
0022 public Q_SLOTS:
0023     /**
0024      * Execute action with root privileges.
0025      **/
0026     KAuth::ActionReply exec(const QVariantMap &args);
0027 };
0028 
0029 #endif