File indexing completed on 2024-04-28 09:31:28

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 <KAuth/ActionReply>
0011 #include <KAuth/HelperSupport>
0012 #include <QObject>
0013 
0014 using namespace KAuth;
0015 
0016 class SddmAuthHelper : public QObject
0017 {
0018     Q_OBJECT
0019 
0020 public Q_SLOTS:
0021     ActionReply sync(const QVariantMap &args);
0022     ActionReply reset(const QVariantMap &args);
0023     ActionReply save(const QVariantMap &args);
0024     ActionReply installtheme(const QVariantMap &args);
0025     ActionReply uninstalltheme(const QVariantMap &args);
0026 
0027 public:
0028     static void copyFile(const QString &source, const QString &destination);
0029     static void copyDirectoryRecursively(const QString &source, const QString &destination, QSet<QString> &done);
0030 };
0031 
0032 #endif // SDDMAUTHHELPER_H