com.syncbuilder.device
Class SysInfo

java.lang.Object
  |
  +--com.syncbuilder.device.SysInfo

public class SysInfo
extends java.lang.Object

This class stores fundamental information about the Palm device.


Constructor Summary
SysInfo(int rom_sw_version, int locale_id, int prod_id)
          This constructor shall not be invoked by anybody, except DlpImpl!
SysInfo(int rom_sw_version, int locale_id, int prod_id, int dlp_version, int comp_version, int max_rec_size)
          This constructor shall not be invoked by anybody, except DlpImpl!
 
Method Summary
 int getCompatibilityVersion()
          The exact meaning of this number is unknown.
 int getDLPVersion()
          Get the version of the DL protocol used by this device.
 int getLocaleID()
          Get the 'LocaleID'.
 int getMaximumRecordSize()
          Get the maximum size of a record that may be written to the device. 0xFFFFFFFF means the size is only limited by the available memory.
 int getProductID()
          Get the 'ProductID'.
 int getRomVersionMajor()
          Get the major version number of the Palm device's system ROM.
 int getRomVersionMinor()
          Get the minor version number of the Palm device's system ROM.
 java.lang.String getRomVersionString()
          Get the version number of the Palm device's system ROM formatted as a displayable string (e.g. 2.05).
 boolean isSysInfoVer()
          Devices which feature DL 1.2+ (those with Palm OS 3.0+) will return true to signal that extra information is available.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SysInfo

public SysInfo(int rom_sw_version,
               int locale_id,
               int prod_id)
This constructor shall not be invoked by anybody, except DlpImpl!

SysInfo

public SysInfo(int rom_sw_version,
               int locale_id,
               int prod_id,
               int dlp_version,
               int comp_version,
               int max_rec_size)
This constructor shall not be invoked by anybody, except DlpImpl!
Method Detail

getRomVersionMajor

public int getRomVersionMajor()
Get the major version number of the Palm device's system ROM. Upgrade patches are taken into account by this method.

getRomVersionMinor

public int getRomVersionMinor()
Get the minor version number of the Palm device's system ROM. Upgrade patches are taken into account by this method.

getRomVersionString

public java.lang.String getRomVersionString()
Get the version number of the Palm device's system ROM formatted as a displayable string (e.g. 2.05). Upgrade patches are taken into account by this method.

getLocaleID

public int getLocaleID()
Get the 'LocaleID'. Currently all devices will return 0x00010000 here.

getProductID

public int getProductID()
Get the 'ProductID'. Currently all devices will return 0x00010000 here.

isSysInfoVer

public boolean isSysInfoVer()
Devices which feature DL 1.2+ (those with Palm OS 3.0+) will return true to signal that extra information is available.
See Also:
getDLPVersion(), getCompatibilityVersion(), getMaximumRecordSize()

getDLPVersion

public int getDLPVersion()
Get the version of the DL protocol used by this device. This version number can be compared with the DL_xxx constants from the Dlp class. This information is only valid if isSysInfoVer() returned true!
See Also:
isSysInfoVer()

getCompatibilityVersion

public int getCompatibilityVersion()
The exact meaning of this number is unknown. This information is only valid if isSysInfoVer() returned true!
See Also:
isSysInfoVer()

getMaximumRecordSize

public int getMaximumRecordSize()
Get the maximum size of a record that may be written to the device. 0xFFFFFFFF means the size is only limited by the available memory. This information is only valid if isSysInfoVer() returned true!
See Also:
isSysInfoVer()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.