Mac Developer Library

Developer

IONotifier Class Reference

Options
Deployment Target:

On This Page
Language:

IONotifier

An abstract base class defining common methods for controlling a notification request. More...

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Not Applicable @import Kernel;

Availability


Available in OS X v10.0 and later.
  • Disables the notification request.

    Declaration

    C++

    virtual bool disable() = 0;

    Return Value

    Returns the previous enable state of the IONotifier.

    Discussion

    Disables the notification request. This method is synchronous with any handler invocations, so when this method returns its guaranteed the handler will not be in entered.

    Import Statement

  • Sets the enable state of the notification request.

    Declaration

    C++

    virtual void enable( boolwas ) = 0;

    Parameters

    was

    The enable state of the notifier to restore.

    Discussion

    Restores the enable state of the notification request, given the previous state passed in.

    Import Statement

  • Removes the notification request and releases it.

    Declaration

    C++

    virtual void remove() = 0;

    Discussion

    Removes the notification request and release it. Since creating an IONotifier instance will leave it with a retain count of one, creating an IONotifier and then removing it will destroy it. This method is synchronous with any handler invocations, so when this method returns its guaranteed the handler will not be in entered.

    Import Statement