File indexing completed on 2025-01-26 05:08:06

0001 #pragma once
0002 
0003 /*
0004  * SPDX-FileCopyrightText: 2003-2010 Craig Drummond <craig@kde.org>
0005  * SPDX-License-Identifier: GPL-2.0-or-later
0006  */
0007 
0008 #include <KAuth/ActionReply>
0009 #include <QObject>
0010 #include <QSet>
0011 
0012 using namespace KAuth;
0013 
0014 namespace KFI
0015 {
0016 class Helper : public QObject
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     Helper();
0022     ~Helper() override;
0023 
0024 public Q_SLOTS:
0025 
0026     ActionReply manage(const QVariantMap &args);
0027 
0028 private:
0029     int install(const QVariantMap &args);
0030     int uninstall(const QVariantMap &args);
0031     int move(const QVariantMap &args);
0032     int toggle(const QVariantMap &args);
0033     int removeFile(const QVariantMap &args);
0034     int reconfigure();
0035     int saveDisabled();
0036     int checkWriteAction(const QStringList &files);
0037 };
0038 
0039 }