2015-12-05 22:11:57 +00:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2015 Holger Kaelberer <holger.k@elberer.de>
|
2015-12-05 22:11:57 +00:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2015-12-05 22:11:57 +00:00
|
|
|
*/
|
|
|
|
|
2023-07-21 19:22:59 +01:00
|
|
|
#pragma once
|
2015-12-05 22:11:57 +00:00
|
|
|
|
|
|
|
#include <QRegularExpression>
|
|
|
|
|
|
|
|
struct NotifyingApplication {
|
|
|
|
QString name;
|
|
|
|
QString icon;
|
|
|
|
bool active;
|
|
|
|
QRegularExpression blacklistExpression;
|
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
bool operator==(const NotifyingApplication &other) const
|
|
|
|
{
|
2015-12-05 22:11:57 +00:00
|
|
|
return (name == other.name);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(NotifyingApplication);
|
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
QDataStream &operator<<(QDataStream &out, const NotifyingApplication &app);
|
|
|
|
QDataStream &operator>>(QDataStream &in, NotifyingApplication &app);
|
|
|
|
QDebug operator<<(QDebug dbg, const NotifyingApplication &a);
|