org.jSyncManager.API.Protocol.Util

Class DLPStorageInfo

Implemented Interfaces:
Serializable

public class DLPStorageInfo
extends java.lang.Object
implements Serializable

The DLP Storage Information class. This class holds information on the available system storage.

Constructor Summary

DLPStorageInfo(arg1[] , arg2[] )
Construct a new Storage Info object based on the received arguments.

Method Summary

DLPCardInfo
getCardInfo(int i)
Get the Card Info object for the specified card, by index.
boolean
getHasMoreCards()
Check to see if the handheld has more cards not reported by this object.
int
getNumCards()
Gets the total number of cards available on the handheld.
int
getRamDatabaseCount()
Gets the total count of RAM-based databases.
int
getRomDatabaseCount()
Gets the total count of ROM-based databases.
boolean
hasExtendedResponse()
Checks to see wether or not this object received an extended response.
String
toString()
Convert this object to a human-readable String.

Constructor Details

DLPStorageInfo

public DLPStorageInfo(arg1[] ,
                      arg2[] )
            throws DLPFunctionCallException
Construct a new Storage Info object based on the received arguments.
Parameters:
Throws:
DLPFunctionCallException - if any parsing errors are detected.

Method Details

getCardInfo

public DLPCardInfo getCardInfo(int i)
            throws DLPFunctionCallException
Get the Card Info object for the specified card, by index.
Parameters:
i - the index of the card to query.
Throws:
DLPFunctionCallException - if the specified card doesn't exist.

getHasMoreCards

public boolean getHasMoreCards()
Check to see if the handheld has more cards not reported by this object.
Returns:
true if the handheld has more cards to report, false otherwise.

getNumCards

public int getNumCards()
Gets the total number of cards available on the handheld.
Returns:
the total number of cards available on the handheld.

getRamDatabaseCount

public int getRamDatabaseCount()
Gets the total count of RAM-based databases.
Returns:
the total count of RAM-based databases.

getRomDatabaseCount

public int getRomDatabaseCount()
Gets the total count of ROM-based databases.
Returns:
the total count of ROM-based databases.

hasExtendedResponse

public boolean hasExtendedResponse()
Checks to see wether or not this object received an extended response.
Returns:
true if an extended response was detected, false otherwise.

toString

public String toString()
Convert this object to a human-readable String.
Returns:
this object as a human-readable String.