com.funambol.syncclient.spdm
Interface Device

All Known Implementing Classes:
DeviceImpl

public interface Device

This interface represents a Device in a generic manner.


Method Summary
 java.lang.String getBaseDirectory()
          Returns the base directory, so that the common parent directory of the relative paths used in the device manager and other modules.
 void setBaseDirectory(java.lang.String baseDir)
          Sets the device base directory
 

Method Detail

getBaseDirectory

java.lang.String getBaseDirectory()
                                  throws DMException
Returns the base directory, so that the common parent directory of the relative paths used in the device manager and other modules. The way the current directory is detected is device specific.

Returns:
the current working directory as a string.
Throws:
DMException - if there is an error in determining the current working directory.

setBaseDirectory

void setBaseDirectory(java.lang.String baseDir)
                      throws DMException
Sets the device base directory

Parameters:
baseDir - the new base directory.
Throws:
DMException - in case of error setting the base direcotry


Copyright © 2003-2007 Funambol.