File indexing completed on 2024-04-21 05:48:33
0001 /* 0002 SPDX-FileCopyrightText: 2017 Jonathan Riddell <jr@jriddell.org> 0003 0004 SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #ifndef IMAGEWRITER_HELPER_H 0008 #define IMAGEWRITER_HELPER_H 0009 0010 #include <QtGlobal> 0011 0012 #include <kauth_version.h> 0013 #if KAUTH_VERSION >= QT_VERSION_CHECK(5, 92, 0) 0014 #include <KAuth/ActionReply> 0015 #include <KAuth/HelperSupport> 0016 #else 0017 #include <kauth.h> 0018 #endif 0019 0020 using namespace KAuth; 0021 0022 class ImageWriterHelper : public QObject 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 ImageWriterHelper(); 0028 0029 public Q_SLOTS: 0030 ActionReply write(const QVariantMap &args); 0031 }; 0032 0033 #endif // IMAGEWRITER_HELPER_H