File indexing completed on 2024-04-14 15:42:26
0001 /* 0002 SPDX-FileCopyrightText: 2019 Filip Fila <filipfila.kde@gmail.com> 0003 SPDX-FileCopyrightText: 2013 Reza Fatahilah Shah <rshah0385@kireihana.com> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 #ifndef SDDMAUTHHELPER_H 0008 #define SDDMAUTHHELPER_H 0009 0010 #include <QObject> 0011 #include <kauth_version.h> 0012 #if KAUTH_VERSION >= QT_VERSION_CHECK(5, 92, 0) 0013 #include <KAuth/ActionReply> 0014 #include <KAuth/HelperSupport> 0015 #else 0016 #include <KAuth> 0017 #endif 0018 0019 using namespace KAuth; 0020 0021 class SddmAuthHelper : public QObject 0022 { 0023 Q_OBJECT 0024 0025 public Q_SLOTS: 0026 ActionReply sync(const QVariantMap &args); 0027 ActionReply reset(const QVariantMap &args); 0028 ActionReply save(const QVariantMap &args); 0029 ActionReply installtheme(const QVariantMap &args); 0030 ActionReply uninstalltheme(const QVariantMap &args); 0031 0032 public: 0033 static void copyFile(const QString &source, const QString &destination); 0034 static void copyDirectoryRecursively(const QString &source, const QString &destination, QSet<QString> &done); 0035 }; 0036 0037 #endif // SDDMAUTHHELPER_H