# class KSelectionWatcher

###

Module | kdeui
Namespace |
Class | KSelectionWatcher
Inherits | QObject

### methods

- KSelectionWatcher (selection, screen, parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  selection | Atom |
  screen | int | -1
  parent | QObject | NULL

  This constructor initializes the object, but doesn't perform any operation on the selection.

  selection - atom representing the manager selection

  screen - X screen, or -1 for default

  parent - parent object, or NULL if there is none

- KSelectionWatcher (selection, screen, parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  selection | char |
  screen | int | -1
  parent | QObject | NULL

  This constructor accepts the selection name and creates the appropriate atom for it automatically.

  selection - name of the manager selection

  screen - X screen, or -1 for default

  parent - parent object, or NULL if there is none

- KSelectionWatcher (a0, a1, a2)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | Atom |
  a1 | int | -1
  a2 | QObject | NULL

- KSelectionWatcher (a0, a1, a2)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | char |
  a1 | int | -1
  a2 | QObject | NULL

- filterEvent (ev_P)

  returns Nothing
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  ev_P | XEvent |

  Internal

- lostOwner ( )

  returns Nothing
  SIGNAL ("lostOwner ()")

  This signal is emitted when the selection is given up, i.e. there's no owner. Note that the selection may be immediatelly claimed again, so the newOwner() signal may be emitted right after this one. It's safe to delete the instance in a slot connected to this signal.

- newOwner (owner)

  returns Nothing
  SIGNAL ("newOwner (Window)")

  Argument | Type | Default
  --- | --- | ---
  owner | Window |

  This signal is emitted when the selection is successfully claimed by a new owner.

  owner - the new owner of the selection

- owner ( )

  returns Window

  Return the current owner of the manager selection, if any.