The RegistrationData class.
This persistent, serializable class stores and manages the user-specified
program settings for the JSyncManager class.
This class can be used by developers for auto-installing jConduits
when the jSyncManager is not active.
finalize
protected void finalize()
throws ThrowableFinalizes this object by ensuring its values are properly saved.
getAllowedIDs
public int[] getAllowedIDs()
Retreives a list of the IDs allowed to synchronize with this jSyncManager instance.
- an array of Palm user ID numbers representing the values allowed to synchronize.
getConduit
public AbstractConduit getConduit(String s)
throws ConduitNotFoundExceptionRetreives an installed jConduit by name.
s - the name of the jConduit to retreive.
- the jConduit with the specified name.
getConduit
public AbstractConduit getConduit(int i)
Retreives the specified installed jConduit.
i - the jConduit index to retreive.
- the jConduit from the specified index.
getConduitCount
public int getConduitCount()
Gets the count of installed jConduits.
- the count of installed jConduits.
getConduits
public java.util.Vector getConduits()
Gets all installed jConduits as a Vector object.
- all installed jConduits as a Vector object.
getDefaultConduit
public DefaultConduit getDefaultConduit()
the Synchronization engine now takes care of this. This method only exists
to satisfy the LegacyClient, and will be removed in the next release.
Retreives the default jConduit.
getDisablePopups
public boolean getDisablePopups()
Checks to see if popups are enabled or disabled.
- true if popups are allowed, false otherwise.
getManualHide
public boolean getManualHide()
Checks to see if the manual hide option is enabled.
- true if manual hide is enabled, false otherwise.
getModemFlag
public boolean getModemFlag()
Checks to see if the active transport is a modem transport.
- true if this transport is an instance of ModemTransport, false otherwise.
getNumAllowedIDs
public int getNumAllowedIDs()
Retreives the number of IDs allowed to synchronize with this system.
- the number of IDs allowed to synchronize with this system.
getSecurityEnabled
public boolean getSecurityEnabled()
Tests to see if security is enabled or not.
- true if security is enabled, false otherwise.
getSyncTimeOption
public boolean getSyncTimeOption()
Tests to see if date/time synchronization is enabled or not.
- true if date/time synchronization is enabled, false otherwise.
getTransport
public SLPTransportInterface getTransport()
Retreives the active transport instance.
- the active transport instance.
getWindowPosition
public Rectangle getWindowPosition()
Retreives the saved window position for the jSyncManager frame.
- the Rectangle object representing the co-ordinates for the frames corners.
isConfigured
public boolean isConfigured()
Tests to see if this instance is configured.
- true if this instance is configured, false otherwise.
loadRegistrationData
public static RegistrationData loadRegistrationData(boolean server)
Loads an existing RegistrationData instance from disk.
server - true if we should work with the server jConduit file, false otherwise.
- the loaded RegistrationData instance.
registerConduit
public void registerConduit(AbstractConduit conduit)
Registers (adds) a jConduit to the installed list.
conduit - the jConduit instance to add.
removeConduit
public void removeConduit(int i)
Removes the jConduit at the specified index.
i - the index of the jConduit to remove.
removeConduit
public void removeConduit(AbstractConduit conduit)
Removes the specified jConduit from the installed list.
conduit - the jConduit to remove.
saveSettings
public void saveSettings()
throws ExceptionSaves this user application properties object to its file.
setAllowedIDs
public void setAllowedIDs(ai[] )
Sets the IDs allowed to synchronize.
setDisablePopups
public void setDisablePopups(boolean flag)
Sets the disable popup flag.
flag - set to true to disable popups, false otherwise.
setFrameFlag
public void setFrameFlag(boolean b)
Sets the frame flag for the synchronization dialog.
b - set to true to use a frame, false otherwise.
setManualHide
public void setManualHide(boolean flag)
Sets the manual hide flag for the synchronization dialog.
flag - set to true to use manual hide, false otherwise.
setSecurityEnabled
public void setSecurityEnabled(boolean flag)
Sets the security enablement state flag.
flag - set to true to enable security, false otherwise.
setSyncTimeOption
public void setSyncTimeOption(boolean flag)
Sets the date/time sync option.
flag - set to true to enable date/time synchronization, false otherwise.
setTransport
public void setTransport(SLPTransportInterface t)
Sets the active transport instance.
t - the active transport instance.
setWindowPosition
public void setWindowPosition(Rectangle rectangle)
Sets the window position to the specified rectangle.
rectangle - the window position for the main jSyncManager frame.
toString
public String toString()
Retreive this user application preferences object as a String.
- this user application preferences object as a String.
useFrame
public boolean useFrame()
Tests to see if the synchronizing dialog should use a frame.
- true if we should use a frame, false otherwise.