1 | /* |
2 | SPDX-FileCopyrightText: 2017 Chinmoy Ranjan Pradhan <chinmoyrp65@gmail.com> |
3 | |
4 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
5 | */ |
6 | |
7 | #ifndef FILEHELPER_H |
8 | #define FILEHELPER_H |
9 | |
10 | #include <KAuth/ActionReply> |
11 | |
12 | using namespace KAuth; |
13 | |
14 | /** |
15 | * This KAuth helper is responsible for performing file operations with |
16 | * root privileges. |
17 | */ |
18 | class FileHelper : public QObject |
19 | { |
20 | Q_OBJECT |
21 | |
22 | public Q_SLOTS: |
23 | /** |
24 | * Execute action with root privileges. |
25 | **/ |
26 | KAuth::ActionReply exec(const QVariantMap &args); |
27 | }; |
28 | |
29 | #endif |
30 | |