[ gpsdrive ] Clear Track Button

Guenther Meyer d.s.e at sordidmusic.com
Fri Sep 19 22:58:20 AKDT 2008


Am Samstag 20 September 2008 schrieb Ross Scanlon:
> Hi All,
>
> Just been looking at the latest svn download and noticed that there is now
> a Clear button.
>
yes, this one is new.

> What does this do exactly?
>
it deletes/resets the recorded track and trip data.
the data is NOT saved.

> Reason I'm asking is I had been trying to implement a track restart button.
> ie push the button and the current track file is saved and closed and then
> a new track file is started.
>
> Secondly, had also been looking for information on acting on the TERM
> signal from the operating system.  ie on shutdown (whether from user or
> power signal etc) gpsdrive receives a signal from the os that a shutdown is
> about to happen.  Gpsdrive should then save and close the current track
> file and anything else that needs to be saved and then close itself. 
> Anyone know how this should be implemented or can point me in the direction
> of some info.
usually a track should always be saved (if there is one) to 
~/.gpsdrive/tracksaved.gpx on shutdown.

sigterm was already handled in gpsdrive.c
sigint handling is available from svn revision 2057 ;-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20080920/071e19b1/attachment.bin>


More information about the GPSdrive mailing list