Mac Developer Library

Developer

IOPowerConnection Class Reference

Options
Deployment Target:

On This Page
Language:

IOPowerConnection

More...

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Not Applicable @import Kernel;

Availability


Available in OS X v10.0 and later.
  • Return the flag that says whether the child has called requestPowerDomainState.

    Declaration

    C++

    bool childHasRequestedPower ( void );

    Discussion

    Called by the PCI Aux Power Supply Driver to see if a device driver is power managed.

    Import Statement

  • Returns the awaitingAck variable.

    Declaration

    C++

    bool getAwaitingAck ( void );

    Discussion

    Called by the parent.

    Import Statement

  • Returns the desiredDomainState variable.

    Declaration

    C++

    unsigned long getDesiredDomainState ( void );

    Discussion

    Called by the parent.

    Import Statement

  • Returns the preventIdleSleepFlag variable.

    Declaration

    C++

    bool getPreventIdleSleepFlag ( void );

    Discussion

    Called by the parent.

    Import Statement

  • Returns the preventSystemSleepFlag variable.

    Declaration

    C++

    bool getPreventSystemSleepFlag ( void );

    Discussion

    Called by the parent.

    Import Statement

  • Returns the readyFlag variable.

    Declaration

    C++

    bool getReadyFlag( void ) const;

    Discussion

    Called by the parent.

    Import Statement

  • Returns the currentPowerFlags variable.

    Declaration

    C++

    IOPMPowerFlags parentCurrentPowerFlags ( void );

    Import Statement

  • Returns the stateKnown variable.

    Declaration

    C++

    bool parentKnowsState ( void );

    Import Statement

  • Sets the awaitingAck variable.

    Declaration

    C++

    void setAwaitingAck ( bool );

    Discussion

    Called by the parent.

    Import Statement

  • Set the flag that says that the child has called requestPowerDomainState.

    Declaration

    C++

    void setChildHasRequestedPower ( void );

    Discussion

    Called by the parent.

    Import Statement

  • Sets the desiredDomainState variable.

    Declaration

    C++

    void setDesiredDomainState ( unsigned long );

    Discussion

    Called by the parent.

    Import Statement

  • Sets the currentPowerFlags variable.

    Declaration

    C++

    void setParentCurrentPowerFlags ( IOPMPowerFlags );

    Discussion

    Called by the parent when the object is created and called by the child when it discovers that the parent state is changing.

    Import Statement

  • Sets the stateKnown variable.

    Declaration

    C++

    void setParentKnowsState ( bool );

    Discussion

    Called by the parent when the object is created and called by the child when it discovers that the parent now knows its state.

    Import Statement

  • Sets the preventIdleSleepFlag variable.

    Declaration

    C++

    void setPreventIdleSleepFlag ( unsigned long );

    Discussion

    Called by the parent.

    Import Statement

  • Sets the preventSystemSleepFlag variable.

    Declaration

    C++

    void setPreventSystemSleepFlag ( unsigned long );

    Discussion

    Called by the parent.

    Import Statement

  • Sets the readyFlag variable.

    Declaration

    C++

    void setReadyFlag( bool flag );

    Discussion

    Called by the parent.

    Import Statement

Instance Variables

  • used by child

    Declaration

    C++

    bool stateKnown;

  • set to true when desiredDomainState is set

    Declaration

    C++

    bool requestFlag;

  • used by parent

    Declaration

    C++

    bool readyFlag;

  • used by parent

    Declaration

    C++

    unsigned long preventSystemSleepFlag;

  • used by parent

    Declaration

    C++

    unsigned long preventIdleSleepFlag;

  • used by parent

    Declaration

    C++

    unsigned long desiredDomainState;

  • used by child

    Declaration

    C++

    IOPMPowerFlags currentPowerFlags;

  • used by parent

    Declaration

    C++

    bool awaitingAck;