KNotifications
knotificationmanager.cpp
89 d->portalDBusServiceExists = interface->isServiceRegistered(QStringLiteral("org.freedesktop.portal.Desktop"));
114 connect(plugin, &KNotificationPlugin::finished, this, &KNotificationManager::notifyPluginFinished);
115 connect(plugin, &KNotificationPlugin::xdgActivationTokenReceived, this, &KNotificationManager::xdgActivationTokenReceived);
116 connect(plugin, &KNotificationPlugin::actionInvoked, this, &KNotificationManager::notificationActivated);
117 connect(plugin, &KNotificationPlugin::replied, this, &KNotificationManager::notificationReplied);
164 std::function<bool(const KPluginMetaData &)> filter = [&action, &pluginFound](const KPluginMetaData &data) {
196 const QVector<KPluginMetaData> listMetaData = KPluginMetaData::findPlugins(QStringLiteral("knotification/notifyplugins"), filter);
201 qCWarning(LOG_KNOTIFICATIONS).nospace() << "Could not instantiate plugin \"" << metadata.fileName() << "\": " << loader.errorString();
265 if (text.isEmpty() && replyAction->fallbackBehavior() == KNotificationReplyAction::FallbackBehavior::UseRegularAction) {
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
KNotificationReplyAction * replyAction() const
Definition: knotification.cpp:205
void setFileName(const QString &fileName)
QStringList split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
QDBusReply< bool > isServiceRegistered(const QString &serviceName) const const
const QList< QKeySequence > & close()
void setUrgency(Urgency urgency)
Sets the urgency of the notification.
Definition: knotification.cpp:310
void reparseConfiguration(const QString &componentName)
bool contains(const QString &key) const const
Q_GLOBAL_STATIC(Internal::StaticControl, s_instance) class ControlPrivate
QDBusConnection sender()
void deleteLater()
void finished(KNotification *notification)
the presentation is finished.
QDBusConnection sessionBus()
Definition: knotifyconfig.h:58
bool isEmpty() const const
virtual void notify(KNotification *notification, KNotifyConfig *notifyConfig)=0
This function is called when the notification is sent.
QFuture< void > filter(Sequence &sequence, KeepFunctor filterFunction)
void activate(unsigned int action=0)
Activate the action specified action If the action is zero, then the default action is activated.
Definition: knotification.cpp:324
QJsonValue value(const QString &key) const const
Definition: knotification.h:32
QDBusConnectionInterface * interface() const const
static QVector< KPluginMetaData > findPlugins(const QString &directory, std::function< bool(const KPluginMetaData &)> filter, KPluginMetaDataOption option)
void setParent(QObject *parent)
KCOREADDONS_EXPORT bool isInside()
QObject * instance()
void ref()
The notification will automatically be closed if all presentations are finished.
Definition: knotification.cpp:484
void actionInvoked(int id, int action)
emit this signal if one action was invoked
@ UseRegularAction
Add the reply action as regular button.
void xdgActivationTokenChanged()
Emitted when xdgActivationToken changes.
QString eventId
Set the event id, if not already passed to the constructor.
Definition: knotification.h:39
QString errorString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:49:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:49:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.