adiesner / GarminPlugin

Garmin Communicator Plugin for Linux
https://adiesner.github.io/GarminPlugin/
GNU General Public License v3.0
96 stars 16 forks source link

Is GarminPlugin Status not yet implemented? #4

Open twistedpair opened 11 years ago

twistedpair commented 11 years ago

@adiesner I'm writing a GWT library for the Communicator API this weekend, gwt-garmin-api.

When I get the progressXML back from the plugin, the title element says "GarminPlugin Status not yet implemented." Is this not implemented still in the 4+ version? When I use the Linux plugin to transfer files on Garmin Connect, I see progress moving, so what part of this remains not implemented?

Thanks.

adiesner commented 11 years ago

Yes the function is not really properly implemented yet. The text will change if you start a transfer, and you will also receive a percentage value - but this value is simply a counter from 0 to 100 which gets incremented each time you ask for a new status. So it is currently possible that you will see the progress bar going up to 100% and then going back to 0% and up again.

main.cpp

updateProgressBar("Download to GPS", currentWorkingDevice->getProgress());

gpsDevice.cpp

int GpsDevice::getProgress() {
    if (progressState < 100) {
        progressState++;
    } else {
        progressState=0;
    }
    return progressState;
}
twistedpair commented 11 years ago

@adiesner Thanks you for the explanation. I've not worked c++ in 5 years. Do you have any plans for implementing this feature? For now, I'll have to do this testing of the library in Windows (so sad) until then, but would like to do some Selenium automation integration tests on my Linux CI server eventually.

Thanks for the great library. :)