| 
									
										
										
										
											2020-01-22 13:25:58 -08:00
										 |  |  | // SPDX-License-Identifier: GPL-2.0
 | 
					
						
							|  |  |  | #ifndef PARSE_GPX_H
 | 
					
						
							|  |  |  | #define PARSE_GPX_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-01 13:46:54 +02:00
										 |  |  | #include <QString>
 | 
					
						
							| 
									
										
										
										
											2020-01-22 13:25:58 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | struct dive_coords {         // This structure holds important information after parsing the GPX file:
 | 
					
						
							|  |  |  | 	time_t start_dive;            // Start time of the current dive, obtained using current_dive (local time)
 | 
					
						
							|  |  |  | 	time_t end_dive;              // End time of current dive (local time)
 | 
					
						
							| 
									
										
										
										
											2020-03-19 08:41:02 -07:00
										 |  |  | 	time_t start_track;           // Start time of GPX track (UTC)
 | 
					
						
							|  |  |  | 	time_t end_track;             // End time of GPX track (UTC)
 | 
					
						
							| 
									
										
										
										
											2020-01-22 13:25:58 -08:00
										 |  |  | 	double lon;                   // Longitude of the first trackpoint after the start of the dive
 | 
					
						
							|  |  |  | 	double lat;                   // Latitude of the first trackpoint after the start of the dive
 | 
					
						
							|  |  |  | 	int64_t settingsDiff_offset;  // Local time difference between dive computer and GPS equipment
 | 
					
						
							| 
									
										
										
										
											2020-03-19 08:41:02 -07:00
										 |  |  | 	int64_t timeZone_offset;      // UTC international time zone offset of dive site
 | 
					
						
							| 
									
										
										
										
											2020-01-22 13:25:58 -08:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-16 17:39:19 +01:00
										 |  |  | int getCoordsFromGPXFile(dive_coords *coords, const QString &fileName); | 
					
						
							| 
									
										
										
										
											2020-01-22 13:25:58 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif
 |