KStartupInfoData Class Reference
Class representing data about an application startup notification. More...
#include <kstartupinfo.h>
Public Types | |
enum | TriState { Yes, No, Unknown } |
Public Member Functions | |
void | setBin (const QString &bin) |
const QString & | bin () const |
void | setName (const QString &name) |
const QString & | findName () const |
const QString & | name () const |
void | setDescription (const QString &descr) |
const QString & | findDescription () const |
const QString & | description () const |
void | setIcon (const QString &icon) |
const QString & | findIcon () const |
const QString & | icon () const |
void | setDesktop (int desktop) |
int | desktop () const |
void | setWMClass (const QCString &wmclass) |
const QCString | findWMClass () const |
const QCString & | WMClass () const |
void | addPid (pid_t pid) |
const QValueList< pid_t > & | pids () const |
bool | is_pid (pid_t pid) const |
void | setHostname (const QCString &hostname=QCString()) |
const QCString & | hostname () const |
void | setSilent (TriState state) |
TriState | silent () const |
void | setTimestamp (unsigned long time) |
unsigned long | timestamp () const |
int | screen () const |
void | setScreen (int screen) |
void | update (const KStartupInfoData &data) |
KStartupInfoData () | |
KStartupInfoData (const KStartupInfoData &data) | |
KStartupInfoData & | operator= (const KStartupInfoData &data) |
Detailed Description
Class representing data about an application startup notification.Such data include the icon of the starting application, the desktop on which the application should start, the binary name of the application, etc.
- See also:
- KStartupInfo
- Author:
- Lubos Lunak <l.lunak@kde.org>
- Version:
- Id
- kstartupinfo.h,v 1.30 2004/05/26 09:22:40 lunakl Exp
Definition at line 466 of file kstartupinfo.h.
Constructor & Destructor Documentation
|
Constructor. Initializes all the data to their default empty values. Definition at line 1242 of file kstartupinfo.cpp. |
|
Copy constructor.
Definition at line 1200 of file kstartupinfo.cpp. References d. |
Member Function Documentation
|
Sets the binary name of the application ( e.g. 'kcontrol' ).
Definition at line 1252 of file kstartupinfo.cpp. |
|
Returns the binary name of the starting application.
Definition at line 1257 of file kstartupinfo.cpp. Referenced by findIcon(), findName(), findWMClass(), and update(). |
|
Sets the name for the notification (e.g. 'Control Center') Definition at line 1262 of file kstartupinfo.cpp. |
|
Returns the name of the startup notification. If it's not available, it tries to use other information (binary name).
Definition at line 1272 of file kstartupinfo.cpp. |
|
Returns the name of the startup notification, or empty if not available.
Definition at line 1267 of file kstartupinfo.cpp. Referenced by findDescription(), findName(), and update(). |
|
Sets the description for the notification (e.g. 'Launching Control Center'). I.e. name() describes what is being started, while description() is the actual action performed by the starting.
Definition at line 1279 of file kstartupinfo.cpp. |
|
Returns the description of the startup notification. If it's not available, it returns name().
Definition at line 1289 of file kstartupinfo.cpp. References description(), and name(). |
|
Returns the name of the startup notification, or empty if not available.
Definition at line 1284 of file kstartupinfo.cpp. Referenced by findDescription(), and update(). |
|
Sets the icon for the startup notification ( e.g. 'kcontrol' )
Definition at line 1296 of file kstartupinfo.cpp. |
|
Returns the icon of the startup notification, and if it's not available, tries to get it from the binary name.
Definition at line 1301 of file kstartupinfo.cpp. |
|
Returns the icon of the startup notification, or empty if not available.
Definition at line 1308 of file kstartupinfo.cpp. Referenced by findIcon(), and update(). |
|
Sets the desktop for the startup notification ( i.e. the desktop on which the starting application should appear ).
Definition at line 1313 of file kstartupinfo.cpp. |
|
Returns the desktop for the startup notification.
Definition at line 1318 of file kstartupinfo.cpp. Referenced by update(). |
|
Sets a WM_CLASS value for the startup notification, it may be used for increasing the chance that the windows created by the starting application will be detected correctly.
Definition at line 1323 of file kstartupinfo.cpp. |
|
Returns the WM_CLASS value for the startup notification, or binary name if not available.
Definition at line 1328 of file kstartupinfo.cpp. |
|
Returns the WM_CLASS value for the startup notification, or empty if not available.
Definition at line 1335 of file kstartupinfo.cpp. Referenced by findWMClass(). |
|
Adds a PID to the list of processes that belong to the startup notification. It may be used to increase the chance that the windows created by the starting application will be detected correctly, and also for detecting if the application has quit without creating any window.
Definition at line 1359 of file kstartupinfo.cpp. Referenced by KUniqueApplication::start(), and update(). |
|
Returns all PIDs for the startup notification.
Definition at line 1370 of file kstartupinfo.cpp. |
|
Checks whether the given
Definition at line 1375 of file kstartupinfo.cpp. |
|
Sets the hostname on which the application is starting. It's necessary to set it if PIDs are set.
Definition at line 1340 of file kstartupinfo.cpp. |
|
Returns the hostname for the startup notification.
Definition at line 1354 of file kstartupinfo.cpp. |
|
Sets whether the visual feedback for this startup notification should be silenced (temporarily suspended).
Definition at line 1380 of file kstartupinfo.cpp. Referenced by KStartupInfo::silenceStartup(). |
|
Return the silence status for the startup notification.
Definition at line 1385 of file kstartupinfo.cpp. Referenced by update(). |
|
Definition at line 1390 of file kstartupinfo.cpp. |
|
Definition at line 1395 of file kstartupinfo.cpp. Referenced by update(). |
|
The X11 screen on which the startup notification is happening, -1 if unknown.
Definition at line 1405 of file kstartupinfo.cpp. Referenced by update(). |
|
Sets the X11 screen on which the startup notification should happen. This is usually not necessary to set, as it's set by default to qt_xscreen(). Definition at line 1400 of file kstartupinfo.cpp. |
|
Updates the notification data from the given data. Some data, such as the desktop or the name, won't be rewritten if already set.
Definition at line 1214 of file kstartupinfo.cpp. References addPid(), bin(), d, description(), desktop(), icon(), name(), screen(), silent(), and timestamp(). |
The documentation for this class was generated from the following files: