Plasma-workspace
server.cpp
34 connect(d.get(), &ServerPrivate::externalInhibitionsChanged, this, &Server::inhibitionApplicationsChanged);
85 [this, actionName, notificationId, launchedSerial, conn, behavior](quint32 serial, const QString &token) {
110void Server::reply(const QString &dbusService, uint notificationId, const QString &text, Notifications::InvokeBehavior behavior)
141 applications.append(!inhibition.applicationName.isEmpty() ? inhibition.applicationName : inhibition.desktopEntry);
void initId(const QByteArray &id="")
const QByteArray & id() const
void xdgActivationTokenArrived(int serial, const QString &token)
static Q_INVOKABLE void requestXdgActivationToken(QWindow *win, uint32_t serial, const QString &app_id)
static Q_INVOKABLE quint32 lastInputSerial(QWindow *window)
static bool isPlatformWayland()
void setInhibited(bool inhibited)
Whether notifications are currently effectively inhibited.
Definition server.cpp:125
NotificationManager::ServerInfo * currentOwner
Information about the current owner of the Notification service.
Definition server.h:51
void invokeAction(uint id, const QString &actionName, const QString &xdgActivationToken, Notifications::InvokeBehavior behavior, QWindow *window)
Sends an action invocation request.
Definition server.cpp:73
void serviceOwnershipLost()
Emitted when the ownership of the Notification DBus Service is lost.
bool inhibitedByApplication() const
Whether an application requested to inhibit notifications.
Definition server.cpp:130
void closeNotification(uint id, CloseReason reason)
Sends a notification closed event.
Definition server.cpp:67
void reply(const QString &dbusService, uint id, const QString &text, Notifications::InvokeBehavior behavior)
Sends a notification reply text.
Definition server.cpp:110
void notificationRemoved(uint id, CloseReason reason)
Emitted when a notification got removed (closed)
void validChanged()
Emitted when the notification service validity changes, because it successfully registered the servic...
void inhibitionApplicationsChanged()
Emitted when the list of applications holding a notification inhibition changes.
CppOwnership
void setObjectOwnership(QObject *object, ObjectOwnership ownership)
void append(QList< T > &&value)
void reserve(qsizetype size)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
QString fromUtf8(QByteArrayView str)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.