KWindowSystem
kstartupinfo.h
157 static bool sendStartupXcb(xcb_connection_t *conn, int screen, const KStartupInfoId &id, const KStartupInfoData &data);
180 static bool sendChangeXcb(xcb_connection_t *conn, int screen, const KStartupInfoId &id, const KStartupInfoData &data);
217 static bool sendFinishXcb(xcb_connection_t *conn, int screen, const KStartupInfoId &id, const KStartupInfoData &data);
Class representing data about an application startup notification.
Definition kstartupinfo.h:406
const QString & findDescription() const
Returns the description of the startup notification.
Definition kstartupinfo.cpp:1142
const QString & description() const
Returns the name of the startup notification, or empty if not available.
Definition kstartupinfo.cpp:1137
QByteArray WMClass() const
Returns the WM_CLASS value for the startup notification, or empty if not available.
Definition kstartupinfo.cpp:1191
void update(const KStartupInfoData &data)
Updates the notification data from the given data.
Definition kstartupinfo.cpp:1054
void setHostname(const QByteArray &hostname=QByteArray())
Sets the hostname on which the application is starting.
Definition kstartupinfo.cpp:1196
TriState silent() const
Return the silence status for the startup notification.
Definition kstartupinfo.cpp:1242
void setDesktop(int desktop)
Sets the desktop for the startup notification (i.e. the desktop on which the starting application sho...
Definition kstartupinfo.cpp:1168
QString applicationId() const
The .desktop file used to initiate this startup notification, or empty.
Definition kstartupinfo.cpp:1281
const QString & findIcon() const
Returns the icon of the startup notification, and if it's not available, tries to get it from the bin...
Definition kstartupinfo.cpp:1155
QList< pid_t > pids() const
Returns all PIDs for the startup notification.
Definition kstartupinfo.cpp:1227
const QString & name() const
Returns the name of the startup notification, or empty if not available.
Definition kstartupinfo.cpp:1119
const QString & bin() const
Returns the binary name of the starting application.
Definition kstartupinfo.cpp:1109
void addPid(pid_t pid)
Adds a PID to the list of processes that belong to the startup notification.
Definition kstartupinfo.cpp:1215
void setName(const QString &name)
Sets the name for the notification (e.g. 'Control Center').
Definition kstartupinfo.cpp:1114
void setXinerama(int xinerama)
Sets the Xinerama screen for the startup notification ( i.e.
Definition kstartupinfo.cpp:1257
int screen() const
The X11 screen on which the startup notification is happening, -1 if unknown.
Definition kstartupinfo.cpp:1252
void setWMClass(const QByteArray &wmclass)
Sets a WM_CLASS value for the startup notification, it may be used for increasing the chance that the...
Definition kstartupinfo.cpp:1178
void setIcon(const QString &icon)
Sets the icon for the startup notification (e.g. 'kcontrol').
Definition kstartupinfo.cpp:1150
int xinerama() const
The Xinerama screen for the startup notification, -1 if unknown.
Definition kstartupinfo.cpp:1262
void setBin(const QString &bin)
Sets the binary name of the application (e.g. 'kcontrol').
Definition kstartupinfo.cpp:1104
void setDescription(const QString &descr)
Sets the description for the notification (e.g. 'Launching Control Center').
Definition kstartupinfo.cpp:1132
const QString & icon() const
Returns the icon of the startup notification, or empty if not available.
Definition kstartupinfo.cpp:1163
const QByteArray findWMClass() const
Returns the WM_CLASS value for the startup notification, or binary name if not available.
Definition kstartupinfo.cpp:1183
void setSilent(TriState state)
Sets whether the visual feedback for this startup notification should be silenced (temporarily suspen...
Definition kstartupinfo.cpp:1237
bool is_pid(pid_t pid) const
Checks whether the given pid is in the list of PIDs for startup notification.
Definition kstartupinfo.cpp:1232
QByteArray hostname() const
Returns the hostname for the startup notification.
Definition kstartupinfo.cpp:1210
int desktop() const
Returns the desktop for the startup notification.
Definition kstartupinfo.cpp:1173
void setApplicationId(const QString &desktop)
Sets the .desktop file that was used to initiate the startup notification.
Definition kstartupinfo.cpp:1267
void setScreen(int screen)
Sets the X11 screen on which the startup notification should happen.
Definition kstartupinfo.cpp:1247
const QString & findName() const
Returns the name of the startup notification.
Definition kstartupinfo.cpp:1124
Class representing an identification of application startup notification.
Definition kstartupinfo.h:333
void initId(const QByteArray &id="")
Initializes this object with the given identification ( which may be also "0" for no notification ),...
Definition kstartupinfo.cpp:859
bool setupStartupEnv() const
Sets the startup notification environment variable to this identification.
Definition kstartupinfo.cpp:880
unsigned long timestamp() const
Return the user timestamp for the startup notification, or 0 if no timestamp is set.
Definition kstartupinfo.cpp:939
const QByteArray & id() const
Returns the notification identifier as string.
Definition kstartupinfo.cpp:838
static void setNewStartupId(QWindow *window, const QByteArray &startup_id)
Use this function if the application got a request with startup notification from outside (for exampl...
Definition kstartupinfo.cpp:557
static void appStarted()
Manual notification that the application has started.
Definition kstartupinfo.cpp:508
KStartupInfo(int flags, QObject *parent=nullptr)
Creates an instance that will receive the startup notifications.
Definition kstartupinfo.cpp:181
static bool sendStartup(const KStartupInfoId &id, const KStartupInfoData &data)
Sends given notification data about started application with the given startup identification.
Definition kstartupinfo.cpp:412
static bool sendChange(const KStartupInfoId &id, const KStartupInfoData &data)
Sends given notification data about started application with the given startup identification.
Definition kstartupinfo.cpp:450
static bool sendStartupXcb(xcb_connection_t *conn, int screen, const KStartupInfoId &id, const KStartupInfoData &data)
Like sendStartup , uses conn instead of QX11Info::connection() for sending the info.
Definition kstartupinfo.cpp:420
static void resetStartupEnv()
Unsets the startup notification environment variable.
Definition kstartupinfo.cpp:889
static QByteArray createNewStartupIdForTimestamp(quint32 timestamp)
Creates and returns new startup id with timestamp as user timestamp part.
Definition kstartupinfo.cpp:822
static bool sendChangeXcb(xcb_connection_t *conn, int screen, const KStartupInfoId &id, const KStartupInfoData &data)
Like sendChange , uses conn instead of QX11Info::connection() for sending the info.
Definition kstartupinfo.cpp:458
void gotRemoveStartup(const KStartupInfoId &id, const KStartupInfoData &data)
Emitted when a startup notification is removed (either because it was detected that the application i...
void gotStartupChange(const KStartupInfoId &id, const KStartupInfoData &data)
Emitted when a startup notification changes.
void gotNewStartup(const KStartupInfoId &id, const KStartupInfoData &data)
Emitted when a new startup notification is created (i.e. a new application is being started).
static void setStartupId(const QByteArray &startup_id)
Sets a new value for the application startup notification window property for newly created toplevel ...
Definition kstartupinfo.cpp:532
static bool sendFinish(const KStartupInfoId &id)
Ends startup notification with the given identification.
Definition kstartupinfo.cpp:470
static bool sendFinishXcb(xcb_connection_t *conn, int screen, const KStartupInfoId &id)
Like sendFinish , uses conn instead of QX11Info::connection() for sending the info.
Definition kstartupinfo.cpp:478
static QByteArray createNewStartupId()
Creates and returns new startup id.
Definition kstartupinfo.cpp:813
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
virtual void customEvent(QEvent *event)
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.