Class JStatusBar.Kernel32.SYSTEM_POWER_STATUS

java.lang.Object
com.sun.jna.Structure
org.sm.smtools.application.util.JStatusBar.Kernel32.SYSTEM_POWER_STATUS
Enclosing interface:
JStatusBar.Kernel32

public static class JStatusBar.Kernel32.SYSTEM_POWER_STATUS
extends com.sun.jna.Structure
Refer to http://msdn2.microsoft.com/en-us/library/aa373232.aspx for more details.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.sun.jna.Structure

    com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
  • Field Summary

    Fields
    Modifier and Type Field Description
    byte ACLineStatus
    The AC line status.
    byte BatteryFlag
    The battery flag.
    int BatteryFullLifeTime
    The battery full life time.
    byte BatteryLifePercent
    The battery life percentage.
    int BatteryLifeTime
    The battery life time.
    byte Reserved1
    A reserved flag.

    Fields inherited from class com.sun.jna.Structure

    ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
  • Constructor Summary

    Constructors
    Constructor Description
    SYSTEM_POWER_STATUS()  
  • Method Summary

    Modifier and Type Method Description
    int getBatteryLifePercent()
    Returns the percentage of full battery charge remaining.
    int getBatteryLifeTime()
    Returns the number of seconds of battery life remaining.
    protected java.util.List<java.lang.String> getFieldOrder()  
    boolean isCharging()
    Returns the charging status.
    boolean isOnACPower()
    Returns the AC power status.

    Methods inherited from class com.sun.jna.Structure

    allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField

    Methods inherited from class java.lang.Object

    clone, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • ACLineStatus

      public byte ACLineStatus
      The AC line status.
    • BatteryFlag

      public byte BatteryFlag
      The battery flag.
    • BatteryLifePercent

      public byte BatteryLifePercent
      The battery life percentage.
    • Reserved1

      public byte Reserved1
      A reserved flag.
    • BatteryLifeTime

      public int BatteryLifeTime
      The battery life time.
    • BatteryFullLifeTime

      public int BatteryFullLifeTime
      The battery full life time.
  • Constructor Details

    • SYSTEM_POWER_STATUS

      public SYSTEM_POWER_STATUS()
  • Method Details

    • getFieldOrder

      protected java.util.List<java.lang.String> getFieldOrder()
      Overrides:
      getFieldOrder in class com.sun.jna.Structure
    • isOnACPower

      public boolean isOnACPower()
      Returns the AC power status.
      Returns:
      the AC power status
    • isCharging

      public boolean isCharging()
      Returns the charging status.
      Returns:
      the charging status
    • getBatteryLifePercent

      public int getBatteryLifePercent()
      Returns the percentage of full battery charge remaining.
      Returns:
      the percentage of full battery charge remaining.
    • getBatteryLifeTime

      public int getBatteryLifeTime()
      Returns the number of seconds of battery life remaining.
      Returns:
      the number of seconds of battery life remaining