org.rococoa.cocoa.osservices
Class BatteryInfo

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure<BatteryInfo,BatteryInfo.ByValue,BatteryInfo.ByReference>
          extended by org.rococoa.cocoa.osservices.BatteryInfo
All Implemented Interfaces:
StructureType, StructureTypeDependent, Comparable<Structure<BatteryInfo,BatteryInfo.ByValue,BatteryInfo.ByReference>>
Direct Known Subclasses:
BatteryInfo.ByReference, BatteryInfo.ByValue

public class BatteryInfo
extends Structure<BatteryInfo,BatteryInfo.ByValue,BatteryInfo.ByReference>

information returned by GetScaledBatteryInfo
native declaration : /System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/OSServices.framework/Headers/Power.h:366
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class BatteryInfo.ByReference
           
static class BatteryInfo.ByValue
           
 
Field Summary
 byte batteryLevel
           
 byte flags
           
 byte reserved
           
 byte warningLevel
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE
 
Constructor Summary
BatteryInfo()
           
BatteryInfo(byte flags, byte warningLevel, byte reserved, byte batteryLevel)
           
 
Method Summary
static BatteryInfo[] newArray(int arrayLength)
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
byReference, byValue, castToArray, castToArray, castToArray, castToReferenceArray, castToReferenceArray, castToValueArray, castToValueArray, clone, compareTo, newArray, read, setDependency, toArray, toArray, toArray, toReferenceArray, toReferenceArray, toValueArray, toValueArray, use, use, use, use, write
 
Methods inherited from class com.sun.jna.Structure
autoRead, autoRead, autoWrite, autoWrite, clear, equals, getAutoRead, getAutoWrite, getPointer, hashCode, newInstance, readField, setAutoRead, setAutoSynch, setAutoWrite, size, toString, writeField, writeField
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ochafik.lang.jnaerator.runtime.StructureType
getPointer, size
 

Field Detail

flags

public byte flags

warningLevel

public byte warningLevel

reserved

public byte reserved

batteryLevel

public byte batteryLevel
Constructor Detail

BatteryInfo

public BatteryInfo()

BatteryInfo

public BatteryInfo(byte flags,
                   byte warningLevel,
                   byte reserved,
                   byte batteryLevel)
Parameters:
flags - misc flags (see below)
warningLevel - scaled warning level (0-255)
reserved - reserved for internal use
batteryLevel - scaled battery level (0-255)
Method Detail

newArray

public static BatteryInfo[] newArray(int arrayLength)


Copyright © 2009. All Rights Reserved.