File indexing completed on 2024-09-29 10:45:27

0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0002 // SPDX-FileCopyrightText: 2011 Craig Drummond <craig.p.drummond@gmail.com>
0003 // SPDX-FileCopyrightText: 2018 Alexis Lopes Zubeta <contact@azubieta.net>
0004 // SPDX-FileCopyrightText: 2020 Tomaz Canabrava <tcanabrava@kde.org>
0005 /*
0006  * UFW KControl Module
0007  */
0008 
0009 #ifndef KCM_H
0010 #define KCM_H
0011 
0012 #include "core/firewallclient.h"
0013 #include <KQuickAddons/ConfigModule>
0014 
0015 class KCMFirewall : public KQuickAddons::ConfigModule
0016 {
0017     Q_OBJECT
0018     Q_PROPERTY(FirewallClient *client READ client CONSTANT)
0019 
0020 public:
0021     explicit KCMFirewall(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
0022 
0023     ~KCMFirewall();
0024     void save() override;
0025     FirewallClient *client() const;
0026 
0027 private:
0028     FirewallClient *const m_client;
0029 };
0030 
0031 #endif