Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KNotifyClient::Instance Class Reference

Enables KNotifyClient to use a different KInstance. More...

#include <knotifyclient.h>

List of all members.

Public Methods

 Instance (KInstance *instance)
 ~Instance ()
bool useSystemBell () const

Static Public Methods

KInstancecurrent ()
Instance * currentInstance ()


Detailed Description

Enables KNotifyClient to use a different KInstance.

Makes it possible to use KNotifyClient with a KInstance that is not the application.

Use like this:

 KNotifyClient::Instance(myInstance);
 KNotifyClient::event("MyEvent");
 

Definition at line 90 of file knotifyclient.h.


Constructor & Destructor Documentation

KNotifyClient::Instance::Instance KInstance   instance
 

Constructs a KNotifyClient::Instance to make KNotifyClient use the specified KInstance for the event configuration.

Parameters:
instance  the instance for the event configuration

KNotifyClient::Instance::~Instance  
 

Destructs the KNotifyClient::Instance and resets KNotifyClient to the previously used KInstance.


Member Function Documentation

KInstance* KNotifyClient::Instance::current   [static]
 

Returns the currently active KInstance.

Returns:
the active KInstance

Instance* KNotifyClient::Instance::currentInstance   [static]
 

Returns the current KNotifyClient::Instance (not the KInstance).

Returns:
the active Instance

bool KNotifyClient::Instance::useSystemBell  
 

Checks whether the system bell should be used.

Returns:
true if this instance should use the System bell instead of KNotify.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:36 2003 for kdelibs by doxygen1.2.18