File indexing completed on 2024-04-28 16:52:16

0001 // SPDX-License-Identifier: GPL-2.0-or-later
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 #ifndef UFW_APP_PROFILES_H
0007 #define UFW_APP_PROFILES_H
0008 /*
0009  * UFW KControl Module
0010  */
0011 
0012 #include <kcm_firewall_core_export.h>
0013 
0014 #include <QList>
0015 #include <QString>
0016 
0017 struct KCM_FIREWALL_CORE_EXPORT Entry {
0018     Entry(const QString &n, const QString &p = QString());
0019     bool operator<(const Entry &o) const
0020     {
0021         return name.localeAwareCompare(o.name) < 0;
0022     }
0023     bool operator==(const Entry &o) const
0024     {
0025         return name == o.name;
0026     }
0027     QString name;
0028     QString ports;
0029     //     Types::Protocol protocol;
0030 };
0031 
0032 #endif