File indexing completed on 2024-04-21 04:56:53

0001 /**
0002  * SPDX-FileCopyrightText: 2015 Holger Kaelberer <holger.k@elberer.de>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 #pragma once
0008 
0009 #include <QRegularExpression>
0010 
0011 struct NotifyingApplication {
0012     QString name;
0013     QString icon;
0014     bool active;
0015     QRegularExpression blacklistExpression;
0016 
0017     bool operator==(const NotifyingApplication &other) const
0018     {
0019         return (name == other.name);
0020     }
0021 };
0022 
0023 Q_DECLARE_METATYPE(NotifyingApplication);
0024 
0025 QDataStream &operator<<(QDataStream &out, const NotifyingApplication &app);
0026 QDataStream &operator>>(QDataStream &in, NotifyingApplication &app);
0027 QDebug operator<<(QDebug dbg, const NotifyingApplication &a);