Class Garmin.DevicePlugin

Object
   |
   +--Garmin.DevicePlugin

class Garmin.DevicePlugin


requires Prototype
Defined in GarminDevicePlugin.js


Constructor Summary
Garmin.DevicePlugin(pluginElement)
            This api provides a set of functions to accomplish the following tasks with a Gps Device:

1) Unlocking devices allowing them to be found and accessed.
 
Method Summary
 void cancelDownloadData()
           Cancel the asynchronous Download Data operation.
 void cancelFindDevices()
           Cancels the current find devices interaction.
 void cancelReadFitnessData()
           Cancel the asynchronous ReadFitnessData operation.
 void cancelReadFitnessDetail()
           Cancel the asynchronous ReadFitnessDirectory operation.
 void cancelReadFitnessDirectory()
           Cancel the asynchronous ReadFitnessDirectory operation.
 void cancelReadFromGps()
           Cancels the current read from the device.
 void cancelWriteFitnessData()
           Cancel the asynchronous ReadFitnessData operation.
 void cancelWriteToGps()
           Cancels the current write operation to the gps device.
 Boolean downloadDataSucceeded()
           Indicates success of StartDownloadData operation.
 Number finishDownloadData()
           This is used to indicate the status of the download process.
 Boolean finishFindDevices()
           Poll - with this function to determine completion of startFindDevices.
 Number finishReadFitnessData()
           Poll for completion of the asynchronous ReadFitnessData operation.
 Number finishReadFitnessDetail()
           Poll for completion of the asynchronous ReadFitnessDetail operation.
 Number finishReadFitnessDirectory()
           Poll for completion of the asynchronous ReadFitnessDirectory operation.
 Number finishReadFromGps()
           Indicates the status of the read process.
 Number finishWriteFitnessData()
           This is used to indicate the status of the write process for fitness data.
 Number finishWriteToGps()
           This is used to indicate the status of the write process.
 Boolean fitnessTransferSucceeded()
           Indicates success of ReadFitnessData or WriteFitnessData operation.
 String getDeviceDescriptionXml(deviceNumber)
           Returns information about the specified Device indicated by the device Number.
 String getDevicesXml()
           Returns information about the number of devices connected to this machine as well as the names of those devices.
 Object getGpsXml()
           This is the GpsXml information from the device.
 String getMessageBoxXml()
           Returns the xml describing the message when the plug-in is waiting for input from the user.
 Array getPluginVersion()
           Gets the version number for the plugin the user has currently installed.
 String getPluginVersionString()
           Gets a string of the version number for the plugin the user has currently installed.
 String getProgressXml()
           Get the status/progress of the current state or transfer.
 Object getSupportsFitnessDirectoryRead()
           Lazy-logic accessor to fitness write support var.
 Object getSupportsFitnessReadCompressed()
           Lazy-logic accessor to fitness read compressed support var.
 Object getSupportsFitnessWrite()
           Lazy-logic accessor to fitness write support var.
 Object getTcdXml()
           This is the fitness data Xml information from the device.
 Object getTcdXmlz()
           Returns last read fitness xml data in compressed format.
 String getVersionXml()
           Returns metadata information about the plugin version.
 Boolean gpsTransferSucceeded()
           Indicates success of WriteToGps operation.
 Object isUnlocked()
           Returns true if the plug-in is unlocked.
 void respondToMessageBox(response)
           Responds to a message box on the device.
 void startDownloadData(gpsDataString, filename, deviceNumber)
           Initates downloading the gpsDataString to the device specified by deviceNumber.
 void startFindDevices()
           Initiates a find Gps devices action on the plugin.
 void startReadFitnessData(deviceNumber, dataTypeName)
           Start the asynchronous ReadFitnessData operation.
 void startReadFitnessDetail(deviceNumber, dataTypeName, dataId)
           Start the asynchronous ReadFitnessDetail operation.
 void startReadFitnessDirectory(deviceNumber, dataTypeName)
           Start the asynchronous ReadFitnessDirectory operation.
 void startReadFromGps(deviceNumber)
           Initiates the read from the gps device conneted.
 void startWriteFitnessData(tcdXml, deviceNumber, filename, dataTypeName)
           Start the asynchronous StartWriteFitnessData operation.
 void startWriteToGps(gpsXml, filename, deviceNumber)
           Initates writing the gpsXml to the device specified by deviceNumber with a filename set by filename.
 Boolean unlock(pathKeyPairsArray)
           Unlocks the GpsControl object to be used at the given web address.

Constructor Detail

Garmin.DevicePlugin

Garmin.DevicePlugin(pluginElement)

Method Detail

cancelDownloadData

void cancelDownloadData()

cancelFindDevices

void cancelFindDevices()

cancelReadFitnessData

void cancelReadFitnessData()

cancelReadFitnessDetail

void cancelReadFitnessDetail()

cancelReadFitnessDirectory

void cancelReadFitnessDirectory()

cancelReadFromGps

void cancelReadFromGps()

cancelWriteFitnessData

void cancelWriteFitnessData()

cancelWriteToGps

void cancelWriteToGps()

downloadDataSucceeded

Boolean downloadDataSucceeded()

finishDownloadData

Number finishDownloadData()

finishFindDevices

Boolean finishFindDevices()

finishReadFitnessData

Number finishReadFitnessData()

finishReadFitnessDetail

Number finishReadFitnessDetail()

finishReadFitnessDirectory

Number finishReadFitnessDirectory()

finishReadFromGps

Number finishReadFromGps()

finishWriteFitnessData

Number finishWriteFitnessData()

finishWriteToGps

Number finishWriteToGps()

fitnessTransferSucceeded

Boolean fitnessTransferSucceeded()

getDeviceDescriptionXml

String getDeviceDescriptionXml(deviceNumber)

getDevicesXml

String getDevicesXml()

getGpsXml

Object getGpsXml()

getMessageBoxXml

String getMessageBoxXml()

getPluginVersion

Array getPluginVersion()

getPluginVersionString

String getPluginVersionString()

getProgressXml

String getProgressXml()

getSupportsFitnessDirectoryRead

Object getSupportsFitnessDirectoryRead()

getSupportsFitnessReadCompressed

Object getSupportsFitnessReadCompressed()

getSupportsFitnessWrite

Object getSupportsFitnessWrite()

getTcdXml

Object getTcdXml()

getTcdXmlz

Object getTcdXmlz()

getVersionXml

String getVersionXml()

gpsTransferSucceeded

Boolean gpsTransferSucceeded()

isUnlocked

Object isUnlocked()

respondToMessageBox

void respondToMessageBox(response)

startDownloadData

void startDownloadData(gpsDataString, filename, deviceNumber)

startFindDevices

void startFindDevices()

startReadFitnessData

void startReadFitnessData(deviceNumber, dataTypeName)

startReadFitnessDetail

void startReadFitnessDetail(deviceNumber, dataTypeName, dataId)

startReadFitnessDirectory

void startReadFitnessDirectory(deviceNumber, dataTypeName)

startReadFromGps

void startReadFromGps(deviceNumber)

startWriteFitnessData

void startWriteFitnessData(tcdXml, deviceNumber, filename, dataTypeName)

startWriteToGps

void startWriteToGps(gpsXml, filename, deviceNumber)

unlock

Boolean unlock(pathKeyPairsArray)


Documentation generated by JSDoc on Fri Sep 14 17:27:44 2007