Class Index | File Index

Classes


Class Garmin.Device

Garmin.Device
Defined in: GarminDevice.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Garmin.Device(displayName, number)
A place-holder for Garmin device information.
Method Summary
Method Attributes Method Name and Description
 
Adds a data type to the list of data types supported by this device
 
A description of the device.
 
getDeviceDataType(extension)
Returns a specific DeviceDataType object
 
Returns a hash containing all DeviceDataType objects
 
The display name of this device.
 
The device id
 
The device number that the plug-in uses to identify this device
 
The part number of the device
 
The software version currently on the device
 
Set description of the device
 
setId(device)
set device id
 
Set part number of device
 
Software version installed on device
 
Returns true if the device has read support for the file type
 
Check if device has write support for the file type.
Class Detail
Garmin.Device(displayName, number)
A place-holder for Garmin device information.
Parameters:
{String} displayName
for the device
{Number} number
of the model
Method Detail
addDeviceDataType(dataType)
Adds a data type to the list of data types supported by this device
Parameters:
dataType
A DeviceDataType object containing information about the data type being added

{String} getDescription()
A description of the device. This usually represents the model name of the device and includes the software version, i.e. "Forerunner 405 Jun 27 2008 2.17" In the GarminDevice XML, this is Model > Description.
Returns:
device description

{Garmin.DeviceDataType} getDeviceDataType(extension)
Returns a specific DeviceDataType object
Parameters:
extension
The file extension of the data type you are trying to get
Returns:
The DeviceDataType object containing the specified extension

{Hash} getDeviceDataTypes()
Returns a hash containing all DeviceDataType objects
Returns:
all DeviceDataType objects

{String} getDisplayName()
The display name of this device.
Returns:
display name

{String} getId()
The device id
Returns:
The device id

{Number} getNumber()
The device number that the plug-in uses to identify this device
Returns:
device number

{String} getPartNumber()
The part number of the device
Returns:
The part number of the device

{String} getSoftwareVersion()
The software version currently on the device
Returns:
software version

setDescription(device)
Set description of the device
Parameters:
{String} device
description

setId(device)
set device id
Parameters:
{String} device
id

setPartNumber(part)
Set part number of device
Parameters:
{String} part
number

setSoftwareVersion()
Software version installed on device
Parameters:
{String} Garmin.Device

{Boolean} supportDeviceDataTypeRead(The)
Returns true if the device has read support for the file type
Parameters:
{String} The
extension of the file type you are checking for support
Returns:
read support for the file type

{Boolean} supportDeviceDataTypeWrite(extension)
Check if device has write support for the file type.
Parameters:
extension
The extension of the file type you are checking for support
Returns:
True if write support

Documentation generated by JsDoc Toolkit 2.0.0 on Mon Aug 17 2009 09:24:29 GMT-0700 (PDT)