eu.gnome.morena
Class Configuration

java.lang.Object
  extended by eu.gnome.morena.Configuration

public class Configuration
extends java.lang.Object

A static configuration of the framework.


Field Summary
static int MODE_NATIVE_UI
          Native UI is displayed instead of build-in dialog
static int MODE_WIA1_POLL_ENABLED
          Applicable to WIA1 only!
 
Constructor Summary
Configuration()
           
 
Method Summary
static void addDeviceType(java.lang.String regex, boolean isScanner)
          Force devices witch description matching regular expression to be of particular type (scanner or camera).
static java.util.logging.Level getLogLevel()
           
static int getMode()
           
static long getPollTime()
           
static java.lang.Class<? extends DeviceUIDialog> getScannerUIClass()
           
static boolean checkWriteable()
           
static boolean isScanner(java.lang.String description, boolean defaultValue)
          Internal use only...
static void setCheckWriteable(boolean checkWriteable)
           
static void setLogLevel(java.util.logging.Level level)
           
static void setMode(int m)
           
static void setPollTime(long pTime)
           
static void setScannerUIClass(java.lang.Class<? extends DeviceUIDialog> clazz)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_NATIVE_UI

public static final int MODE_NATIVE_UI
Native UI is displayed instead of build-in dialog

See Also:
Constant Field Values

MODE_WIA1_POLL_ENABLED

public static final int MODE_WIA1_POLL_ENABLED
Applicable to WIA1 only! If set polling is enabled and allows receiving events about connecting and disconnecting devices in WIA1 when MODE_NATIVE_UI option is also set.

See Also:
Constant Field Values
Constructor Detail

Configuration

public Configuration()
Method Detail

addDeviceType

public static void addDeviceType(java.lang.String regex,
                                 boolean isScanner)
Force devices witch description matching regular expression to be of particular type (scanner or camera).

Parameters:
regex - regular expression matching device description
isScanner - true if such device is a scanner

isScanner

public static boolean isScanner(java.lang.String description,
                                boolean defaultValue)
Internal use only...


getMode

public static int getMode()

setMode

public static void setMode(int m)

getPollTime

public static long getPollTime()

setPollTime

public static void setPollTime(long pTime)

setLogLevel

public static void setLogLevel(java.util.logging.Level level)

getLogLevel

public static java.util.logging.Level getLogLevel()

getScannerUIClass

public static java.lang.Class<? extends DeviceUIDialog> getScannerUIClass()

setScannerUIClass

public static void setScannerUIClass(java.lang.Class<? extends DeviceUIDialog> clazz)

checkWriteable

public static boolean checkWriteable()

setCheckWriteable

public static void setCheckWriteable(boolean checkWriteable)