class Instance

# class Instance | Enables KNotifyClient to use a different KInstance. More...
Full name | `KNotifyClient::Instance`
Definition | `#include <knotifyclient.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

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

#### Public Static Methods

- static KInstance * current ()
- static Instance * currentInstance ()

## Detailed Description

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

Use like this:

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

Instance (KInstance *instance) | ### Instance

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

Parameters:

instance | the instance for the event configuration

~Instance () | ### ~Instance

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

bool useSystemBell () | ### useSystemBell

[const]

Checks whether the system bell should be used.

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

KInstance * current () | ### current

[static]

Returns the currently active KInstance.

Returns: the active KInstance

Instance * currentInstance () | ### currentInstance

[static]

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

Returns: the active Instance

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:15 2003, using kdoc 2.0a54.