.TH "KSelectionWatcher" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KSelectionWatcher \- This class implements watching manager selections, as described in the ICCCM section 2.8. ICCCM manager selection watching.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kmanagerselection.h>\fP
.PP
Inherits \fBQObject\fP.
.PP
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBnewOwner\fP (Window owner)"
.br
.ti -1c
.RI "void \fBlostOwner\fP ()"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKSelectionWatcher\fP (Atom selection, int screen=-1, \fBQObject\fP *\fBparent\fP=NULL)"
.br
.ti -1c
.RI "\fBKSelectionWatcher\fP (const char *selection, int screen=-1, \fBQObject\fP *\fBparent\fP=NULL)"
.br
.ti -1c
.RI "Window \fBowner\fP ()"
.br
.ti -1c
.RI "void \fBfilterEvent\fP (XEvent *ev_P)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
This class implements watching manager selections, as described in the ICCCM section 2.8. ICCCM manager selection watching. 

It emits signal \fBnewOwner()\fP when a new owner claim the selection, and emits \fBlostOwner()\fP when the selection ownership is given up. To find out current owner of the selection, \fBowner()\fP can be used. 
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 169 of file kmanagerselection.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KSelectionWatcher::KSelectionWatcher (Atom selection, int screen = \fC-1\fP, \fBQObject\fP * parent = \fCNULL\fP)"
.PP
This constructor initializes the object, but doesn't perform any operation on the selection. 
.PP
\fBParameters:\fP
.RS 4
\fIselection\fP atom representing the manager selection 
.br
\fIscreen\fP X screen, or -1 for default 
.br
\fIparent\fP parent object, or NULL if there is none 
.RE
.PP

.PP
Definition at line 393 of file kmanagerselection.cpp.
.SS "KSelectionWatcher::KSelectionWatcher (const char * selection, int screen = \fC-1\fP, \fBQObject\fP * parent = \fCNULL\fP)"
.PP
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
.PP
This constructor accepts the selection name and creates the appropriate atom for it automatically.
.PP
\fBParameters:\fP
.RS 4
\fIselection\fP name of the manager selection 
.br
\fIscreen\fP X screen, or -1 for default 
.br
\fIparent\fP parent object, or NULL if there is none 
.RE
.PP

.PP
Definition at line 403 of file kmanagerselection.cpp.
.SH "Member Function Documentation"
.PP 
.SS "Window KSelectionWatcher::owner ()"
.PP
Return the current owner of the manager selection, if any. 
.PP
Definition at line 432 of file kmanagerselection.cpp.
.PP
References KXErrorHandler::error(), and newOwner().
.SS "void KSelectionWatcher::newOwner (Window owner)\fC [signal]\fP"
.PP
This signal is emitted when the selection is successfully claimed by a new owner. 
.PP
\fBParameters:\fP
.RS 4
\fIowner\fP the new owner of the selection 
.RE
.PP

.PP
Referenced by owner().
.SS "void KSelectionWatcher::lostOwner ()\fC [signal]\fP"
.PP
This signal is emitted when the selection is given up, i.e. 
.PP
there's no owner. Note that the selection may be immediatelly claimed again, so the \fBnewOwner()\fP signal may be emitted right after this one. It's safe to delete the instance in a slot connected to this signal. 

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
