[OpenDocString] kdeconnect-kde (cpp)
notifyingapplication.cpp
QDataStream &operator<<(QDataStream &out, const NotifyingApplication &app)
{
    out << app.name << app.icon << app.active << app.blacklistExpression.pattern();
    return out;
}
This implements an stream insertion operator to output notifications of the given application.
QDataStream &operator>>(QDataStream &in, NotifyingApplication &app)
{
    QString pattern;
    in >> app.name;
    in >> app.icon;
    in >> app.active;
    in >> pattern;
    app.blacklistExpression.setPattern(pattern);
    return in;
}
This implements an stream insertion operator to set the name icon active and blacklist expression pattern to the given QDataStream object. It also sets the app s blacklist expression pattern to the QString representation.
QDebug operator<<(QDebug dbg, const NotifyingApplication &a)
{
    dbg.nospace() << "{ name=" << a.name << ", icon=" << a.icon << ", active=" << a.active << ", blacklistExpression =" << a.blacklistExpression << " }";
    return dbg.space();
}
This implements an stream insertion operator to output information about the given NotifyingApplication object.