.TH "KNotifyClient::Instance" 3 "28 Jan 2004" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KNotifyClient::Instance \- Makes it possible to use \fBKNotifyClient\fP with a \fBKInstance\fP that is not the application. Enables \fBKNotifyClient\fP to use a different \fBKInstance\fP.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <knotifyclient.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBInstance\fP (\fBKInstance\fP *instance)"
.br
.RI "\fIConstructs a \fBKNotifyClient::Instance\fP to make \fBKNotifyClient\fP use the specified \fBKInstance\fP for the event configuration. \fP"
.ti -1c
.RI "\fB~Instance\fP ()"
.br
.RI "\fIDestructs the KNotifyClient::Instance and resets \fBKNotifyClient\fP to the previously used \fBKInstance\fP. \fP"
.ti -1c
.RI "bool \fBuseSystemBell\fP () const "
.br
.RI "\fIChecks whether the system bell should be used. \fP"
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKInstance\fP * \fBcurrent\fP ()"
.br
.RI "\fIReturns the currently active \fBKInstance\fP. \fP"
.ti -1c
.RI "\fBInstance\fP * \fBcurrentInstance\fP ()"
.br
.RI "\fIReturns the current KNotifyClient::Instance (not the \fBKInstance\fP). \fP"
.in -1c
.SH "Detailed Description"
.PP 
Makes it possible to use \fBKNotifyClient\fP with a \fBKInstance\fP that is not the application. Enables \fBKNotifyClient\fP to use a different \fBKInstance\fP. 

Use like this: 
.PP
.nf

 KNotifyClient::Instance(myInstance);
 \fBKNotifyClient::event\fP('MyEvent');
 
.PP

.PP
Definition at line 90 of file knotifyclient.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KNotifyClient::Instance::Instance (\fBKInstance\fP * instance)"
.PP
Constructs a \fBKNotifyClient::Instance\fP to make \fBKNotifyClient\fP use the specified \fBKInstance\fP for the event configuration. \fBParameters:\fP
.RS 4
\fIinstance\fP the instance for the event configuration 
.RE
.PP
Definition at line 268 of file knotifyclient.cpp.
.PP
References KInstance::config(), KNotifyClient::instance(), and KConfigBase::readBoolEntry().
.SS "KNotifyClient::Instance::~\fBInstance\fP ()"
.PP
Destructs the KNotifyClient::Instance and resets \fBKNotifyClient\fP to the previously used \fBKInstance\fP. Definition at line 279 of file knotifyclient.cpp.
.SH "Member Function Documentation"
.PP 
.SS "bool KNotifyClient::Instance::useSystemBell () const"
.PP
Checks whether the system bell should be used. \fBReturns:\fP
.RS 4
true if this instance should use the System bell instead of KNotify.
.RE
.PP
Definition at line 293 of file knotifyclient.cpp.
.PP
Referenced by KNotifyClient::beep().
.SS "\fBKInstance\fP * KNotifyClient::Instance::current ()\fC [static]\fP"
.PP
Returns the currently active \fBKInstance\fP. \fBReturns:\fP
.RS 4
the active \fBKInstance\fP 
.RE
.PP
Definition at line 312 of file knotifyclient.cpp.
.PP
References currentInstance(), and d.
.PP
Referenced by KNotifyClient::instance().
.SS "\fBKNotifyClient::Instance\fP * KNotifyClient::Instance::currentInstance ()\fC [static]\fP"
.PP
Returns the current KNotifyClient::Instance (not the \fBKInstance\fP). \fBReturns:\fP
.RS 4
the active \fBInstance\fP
.RE
.PP
Definition at line 307 of file knotifyclient.cpp.
.PP
Referenced by KNotifyClient::beep(), and current().

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