jpos.POSPowerConst Maven / Gradle / Ivy
//////////////////////////////////////////////////////////////////////
//
// The JavaPOS library source code is now under the CPL license, which
// is an OSS Apache-like license. The complete license is located at:
// http://www.ibm.com/developerworks/library/os-cpl.html
//
//////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
//
// This software is provided "AS IS". The JavaPOS working group (including
// each of the Corporate members, contributors and individuals) MAKES NO
// REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE,
// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NON-INFRINGEMENT. The JavaPOS working group shall not be liable for
// any damages suffered as a result of using, modifying or distributing this
// software or its derivatives.Permission to use, copy, modify, and distribute
// the software and its documentation for any purpose is hereby granted.
//
// POSPowerConst
//
// POSPower constants for JavaPOS Applications.
//
// Modification history
// ------------------------------------------------------------------
// 2000-Apr-18 JavaPOS Release 1.5 BS
// 2005-Jan-16 JavaPOS Release 1.9 BS
// Added the following constants:
// PWR_SOURCE_NA
// PWR_SOURCE_AC
// PWR_SOURCE_BATTERY
// PWR_SOURCE_BACKUP
// PWR_REASON_REQUEST
// PWR_REASON_ALLOW
// PWR_REASON_DENY
// PWR_SUE_BAT_LOW
// PWR_SUE_BAT_CRITICAL
// PWR_SUE_BAT_CAPACITY_REMAINING
// PWR_SUE_RESTART
// PWR_SUE_STANDBY
// PWR_SUE_USER_STANDBY
// PWR_SUE_SUSPEND
// PWR_SUE_USER_SUSPEND
// PWR_SUE_PWR_SOURCE
//
/////////////////////////////////////////////////////////////////////
package jpos;
public interface POSPowerConst
{
/////////////////////////////////////////////////////////////////////
// "CapUPSChargeState" Capability and "UPSChargeState" Property
// Constants
/////////////////////////////////////////////////////////////////////
public static final int PWR_UPS_FULL = 0x00000001;
public static final int PWR_UPS_WARNING = 0x00000002;
public static final int PWR_UPS_LOW = 0x00000004;
public static final int PWR_UPS_CRITICAL = 0x00000008;
/////////////////////////////////////////////////////////////////////
// "PowerSource" Property Constants
/////////////////////////////////////////////////////////////////////
public static final int PWR_SOURCE_NA = 1;
public static final int PWR_SOURCE_AC = 2;
public static final int PWR_SOURCE_BATTERY = 3;
public static final int PWR_SOURCE_BACKUP = 4;
/////////////////////////////////////////////////////////////////////
// "restartPOS", "standbyPOS", "suspendPOS" Methods:
// "reason" Parameter Constants
/////////////////////////////////////////////////////////////////////
public static final int PWR_REASON_REQUEST = 1;
public static final int PWR_REASON_ALLOW = 2;
public static final int PWR_REASON_DENY = 3;
/////////////////////////////////////////////////////////////////////
// Status Update Event: "Status" Parameter Constants
/////////////////////////////////////////////////////////////////////
public static final int PWR_SUE_UPS_FULL = 11;
public static final int PWR_SUE_UPS_WARNING = 12;
public static final int PWR_SUE_UPS_LOW = 13;
public static final int PWR_SUE_UPS_CRITICAL = 14;
public static final int PWR_SUE_FAN_STOPPED = 15;
public static final int PWR_SUE_FAN_RUNNING = 16;
public static final int PWR_SUE_TEMPERATURE_HIGH = 17;
public static final int PWR_SUE_TEMPERATURE_OK = 18;
public static final int PWR_SUE_SHUTDOWN = 19;
public static final int PWR_SUE_BAT_LOW = 20;
public static final int PWR_SUE_BAT_CRITICAL = 21;
public static final int PWR_SUE_BAT_CAPACITY_REMAINING = 22;
public static final int PWR_SUE_RESTART = 23;
public static final int PWR_SUE_STANDBY = 24;
public static final int PWR_SUE_USER_STANDBY = 25;
public static final int PWR_SUE_SUSPEND = 26;
public static final int PWR_SUE_USER_SUSPEND = 27;
public static final int PWR_SUE_PWR_SOURCE = 28;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy