# class KStartupInfoData

###

Module | kdeui
Namespace |
Class | KStartupInfoData
Inherits |

### enums

- TriState { Yes, No, Unknown }

enum details

### methods

- KStartupInfoData ( )

  returns ctor

  Constructor. Initializes all the data to their default empty values.

- KStartupInfoData (data)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  data | KStartupInfoData |

  Copy constructor.

- KStartupInfoData (txt)

  returns ctor
  Not implemented
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  txt | QString |

- KStartupInfoData (a0)

  returns ctor
  Not implemented
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- WMClass ( )

  returns QByteArray

  Returns the WM_CLASS value for the startup notification, or empty if not available. Returns the WM_CLASS value for the startup notification, or empty if not set

- addPid (pid)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  pid | pid_t |

  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.

  pid - the PID to add

- bin ( )

  returns QString

  Returns the binary name of the starting application Returns the new binary name of the application

- description ( )

  returns QString

  Returns the name of the startup notification, or empty if not available. Returns the name of the startup notificaiton, or an empty string if not set.

- desktop ( )

  returns int

  Returns the desktop for the startup notification. Returns the desktop for the startup notification

- findDescription ( )

  returns QString

  Returns the description of the startup notification. If it's not available, it returns name(). Returns the description of the startup notification

- findIcon ( )

  returns QString

  Returns the icon of the startup notification, and if it's not available, tries to get it from the binary name. Returns the name of the startup notification's icon, or the name of the binary if not set

- findName ( )

  returns QString

  Returns the name of the startup notification. If it's not available, it tries to use other information (binary name). Returns the name of the startup notification

- findWMClass ( )

  returns QByteArray

  Returns the WM_CLASS value for the startup notification, or binary name if not available. Returns the WM_CLASS value for the startup notification, or the binary name if not set

- hostname ( )

  returns QByteArray

  Returns the hostname for the startup notification. Returns the hostname

- icon ( )

  returns QString

  Returns the icon of the startup notification, or empty if not available. Returns the name of the icon, or an empty string if not set.

- is_pid (pid)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  pid | pid_t |

  Checks whether the given pid is in the list of PIDs for starup notification. Returns true if the given pid is in the list of PIDs for the startup notification

- launchedBy ( )

  returns WId

  The toplevel window of the application that caused this startup notification, 0 if unknown.

- name ( )

  returns QString

  Returns the name of the startup notification, or empty if not available. Returns the name of the startup notification, or an empty string if not set.

- pids ( )

  returns QList<pid_t>
  Not implemented

  Returns all PIDs for the startup notification. Returns the list of all PIDs

- pids ( )

  returns QList<int>
  before KDE 4.1.0 only

- screen ( )

  returns int

  The X11 screen on which the startup notification is happening, -1 if unknown.

- setBin (bin)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  bin | QString |

  Sets the binary name of the application ( e.g. 'kcontrol' ).

  bin - the new binary name of the application

- setDescription (descr)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  descr | QString |

  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.

- setDesktop (desktop)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  desktop | int |

  Sets the desktop for the startup notification ( i.e. the desktop on which the starting application should appear ).

  desktop - the desktop for the startup notification

- setHostname (hostname)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  hostname | QByteArray | QByteArray()

  Sets the hostname on which the application is starting. It's necessary to set it if PIDs are set.

  hostname - the application's hostname. If it's a null string, the current hostname is used

- setIcon (icon)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  icon | QString |

  Sets the icon for the startup notification ( e.g. 'kcontrol' )

  icon - the name of the icon

- setLaunchedBy (window)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  window | WId |

  Sets the toplevel window of the application that caused this startup notification.

  window - window ID of the toplevel window that is responsible for this startup

- setName (name)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  name | QString |

  Sets the name for the notification (e.g. 'Control Center')

- setScreen (screen)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  screen | int |

  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 QX11Info.screen().

- setSilent (state)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  state | KStartupInfoData.TriState |

  Sets whether the visual feedback for this startup notification should be silenced (temporarily suspended).

- setTimestamp (time)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  time | unsigned long |

  Obsolete Timestamp is already assigned in KStartupInfoId.initId(). Sets timestamp for the startup notification. The timestamp is expressed as XServer time, and is used to prevent activation of the matching window if user interaction took place after this timestamp. Value -1 means no timestamp set, value 0 means that the window should not be activated.

- setWMClass (wmclass)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  wmclass | QByteArray |

  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.

  wmclass - the WM_CLASS value for the startup notification

- setXinerama (xinerama)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  xinerama | int |

  Sets the Xinerama screen for the startup notification ( i.e. the screeen on which the starting application should appear ).

  xinerama - the Xinerama screen for the startup notification

- silent ( )

  returns KStartupInfoData.TriState

  Return the silence status for the startup notification. Returns KStartupInfoData.Yes if visual feedback is silenced

- timestamp ( )

  returns unsigned long

  Obsolete Use KStartupInfoId.timestamp(). Return the timestamp for the startup notification, or -1 if no timestamp is set.

- update (data)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  data | KStartupInfoData |

  Updates the notification data from the given data. Some data, such as the desktop or the name, won't be rewritten if already set.

  data - the data to update

- xinerama ( )

  returns int

  The Xinerama screen for the startup notification, -1 if unknown.

### enums - detail

- TriState { Yes, No, Unknown }

  | Yes | - | - |
  | No | - | - |
  | Unknown | - | - |