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
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NOTIFYINGAPPLICATION_H
|
|
|
|
#define NOTIFYINGAPPLICATION_H
|
|
|
|
|
|
|
|
#include <QRegularExpression>
|
|
|
|
|
|
|
|
struct NotifyingApplication {
|
|
|
|
QString name;
|
|
|
|
QString icon;
|
|
|
|
bool active;
|
|
|
|
QRegularExpression blacklistExpression;
|
|
|
|
|
|
|
|
bool operator==(const NotifyingApplication& other) const {
|
|
|
|
return (name == other.name);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(NotifyingApplication);
|
|
|
|
|
2017-09-03 20:39:44 +01:00
|
|
|
QDataStream& operator<<(QDataStream& out, const NotifyingApplication& app);
|
|
|
|
QDataStream& operator>>(QDataStream& in, NotifyingApplication& app);
|
|
|
|
QDebug operator<<(QDebug dbg, const NotifyingApplication& a);
|
2015-12-05 22:11:57 +00:00
|
|
|
|
|
|
|
#endif //NOTIFYINGAPPLICATION_H
|