KDEUI
kstartupinfo.h
Go to the documentation of this file.
Class representing data about an application startup notification.
Definition kstartupinfo.h:440
const QString & findDescription() const
Returns the description of the startup notification.
Definition kstartupinfo.cpp:1376
const QString & description() const
Returns the name of the startup notification, or empty if not available.
Definition kstartupinfo.cpp:1371
QByteArray WMClass() const
Returns the WM_CLASS value for the startup notification, or empty if not available.
Definition kstartupinfo.cpp:1422
void setHostname(const QByteArray &hostname=QByteArray())
Sets the hostname on which the application is starting.
Definition kstartupinfo.cpp:1427
void setDesktop(int desktop)
Sets the desktop for the startup notification ( i.e.
Definition kstartupinfo.cpp:1400
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:1388
QList< pid_t > pids() const
Returns all PIDs for the startup notification.
Definition kstartupinfo.cpp:1457
const QString & name() const
Returns the name of the startup notification, or empty if not available.
Definition kstartupinfo.cpp:1354
const QString & bin() const
Returns the binary name of the starting application.
Definition kstartupinfo.cpp:1344
void addPid(pid_t pid)
Adds a PID to the list of processes that belong to the startup notification.
Definition kstartupinfo.cpp:1446
void setName(const QString &name)
Sets the name for the notification (e.g.
Definition kstartupinfo.cpp:1349
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:1410
void setIcon(const QString &icon)
Sets the icon for the startup notification ( e.g.
Definition kstartupinfo.cpp:1383
void setBin(const QString &bin)
Sets the binary name of the application ( e.g.
Definition kstartupinfo.cpp:1339
void setDescription(const QString &descr)
Sets the description for the notification (e.g.
Definition kstartupinfo.cpp:1366
const QString & icon() const
Returns the icon of the startup notification, or empty if not available.
Definition kstartupinfo.cpp:1395
const QByteArray findWMClass() const
Returns the WM_CLASS value for the startup notification, or binary name if not available.
Definition kstartupinfo.cpp:1415
bool is_pid(pid_t pid) const
Checks whether the given pid is in the list of PIDs for starup notification.
Definition kstartupinfo.cpp:1462
QByteArray hostname() const
Returns the hostname for the startup notification.
Definition kstartupinfo.cpp:1441
int desktop() const
Returns the desktop for the startup notification.
Definition kstartupinfo.cpp:1405
const QString & findName() const
Returns the name of the startup notification.
Definition kstartupinfo.cpp:1359
Class representing an identification of application startup notification.
Definition kstartupinfo.h:369
void initId(const QByteArray &id="")
Initializes this object with the given identification ( which may be also "0" for no notification ),...
Definition kstartupinfo.cpp:1058
bool setupStartupEnv() const
Sets the startup notification environment variable to this identification.
Definition kstartupinfo.cpp:1080
unsigned long timestamp() const
Return the user timestamp for the startup notification, or 0 if no timestamp is set.
Definition kstartupinfo.cpp:1149
bool operator<(const KStartupInfoId &id) const
Definition kstartupinfo.cpp:1138
KStartupInfoId & operator=(const KStartupInfoId &data)
Definition kstartupinfo.cpp:1119
const QByteArray & id() const
Returns the notification identifier as string.
Definition kstartupinfo.cpp:1034
Class for manipulating the application startup notification.
Definition kstartupinfo.h:66
static void disableAutoAppStartedSending(bool disable=true)
By default, the startup notification is ended for the application after it shows its first toplevel w...
Definition kstartupinfo.cpp:621
static void appStarted()
Manual notification that the application has started.
Definition kstartupinfo.cpp:586
static void setNewStartupId(QWidget *window, const QByteArray &startup_id)
Use this function if the application got a request with startup notification from outside (for exampl...
Definition kstartupinfo.cpp:643
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.
KStartupInfo(int flags, QObject *parent=0)
Creates an instance that will receive the startup notifications.
Definition kstartupinfo.cpp:203
static void silenceStartup(bool silence)
If your application shows temporarily some window during its startup, for example a dialog,...
Definition kstartupinfo.cpp:626
static QByteArray createNewStartupId()
Creates and returns new startup id.
Definition kstartupinfo.cpp:1012
static pid_t pid
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.