blob: ff70c5461a6264c7d9d6b9b28418255d9a41ccb0 [file] [log] [blame]
/////////////////////////////////////////////////////////////////////
//
// 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.
//
// POSPowerControl15
//
// Interface definining all new capabilities, properties and
// methods that are specific to POSPower for release 1.5.
//
// Modification history
// ------------------------------------------------------------------
// 2000-Apr-18 JavaPOS Release 1.5 BS
//
/////////////////////////////////////////////////////////////////////
package jpos;
import jpos.events.*;
public interface POSPowerControl15 extends BaseControl
{
// Capabilities
public boolean getCapFanAlarm() throws JposException;
public boolean getCapHeatAlarm() throws JposException;
public int getCapPowerReporting() throws JposException;
public boolean getCapQuickCharge() throws JposException;
public boolean getCapShutdownPOS() throws JposException;
public int getCapUPSChargeState() throws JposException;
// Properties
public int getEnforcedShutdownDelayTime() throws JposException;
public void setEnforcedShutdownDelayTime(int delay)
throws JposException;
public int getPowerFailDelayTime() throws JposException;
public int getPowerNotify() throws JposException;
public void setPowerNotify(int powerNotify) throws JposException;
public int getPowerState() throws JposException;
public boolean getQuickChargeMode() throws JposException;
public int getQuickChargeTime() throws JposException;
public int getUPSChargeState() throws JposException;
// Methods
public void shutdownPOS() throws JposException;
// Event listener methods
public void addDirectIOListener(DirectIOListener l);
public void removeDirectIOListener(DirectIOListener l);
public void addStatusUpdateListener(StatusUpdateListener l);
public void removeStatusUpdateListener(StatusUpdateListener l);
}