95 |
andreas |
1 |
/***************************************************************************
|
119 |
andreas |
2 |
* Copyright (C) 2007, 2008 by Andreas Theofilu *
|
|
|
3 |
* andreas@theosys.at *
|
95 |
andreas |
4 |
* *
|
|
|
5 |
* This program is free software; you can redistribute it and/or modify *
|
|
|
6 |
* it under the terms of the GNU General Public License as published by *
|
|
|
7 |
* the Free Software Foundation version 3 of the License. *
|
|
|
8 |
* *
|
|
|
9 |
* This program is distributed in the hope that it will be useful, *
|
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
12 |
* GNU General Public License for more details. *
|
|
|
13 |
* *
|
|
|
14 |
* You should have received a copy of the GNU General Public License *
|
|
|
15 |
* along with this program; if not, write to the *
|
|
|
16 |
* Free Software Foundation, Inc., *
|
|
|
17 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
|
|
18 |
***************************************************************************/
|
|
|
19 |
|
|
|
20 |
#ifndef PROGRESSWIDGET_H
|
|
|
21 |
#define PROGRESSWIDGET_H
|
|
|
22 |
|
|
|
23 |
#include "progresswidgetbase.h"
|
|
|
24 |
#include "garmin.h"
|
|
|
25 |
|
|
|
26 |
class progressWidget : public progressWidgetBase
|
|
|
27 |
{
|
|
|
28 |
Q_OBJECT
|
|
|
29 |
|
|
|
30 |
public:
|
|
|
31 |
progressWidget ( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
|
|
|
32 |
~progressWidget();
|
|
|
33 |
/*$PUBLIC_FUNCTIONS$*/
|
137 |
andreas |
34 |
bool Download();
|
|
|
35 |
static void CallBack(char *str);
|
95 |
andreas |
36 |
|
|
|
37 |
public slots:
|
|
|
38 |
/*$PUBLIC_SLOTS$*/
|
|
|
39 |
|
|
|
40 |
protected:
|
|
|
41 |
/*$PROTECTED_FUNCTIONS$*/
|
143 |
andreas |
42 |
void IncrementBar();
|
95 |
andreas |
43 |
|
|
|
44 |
protected slots:
|
|
|
45 |
/*$PROTECTED_SLOTS$*/
|
|
|
46 |
|
|
|
47 |
private:
|
|
|
48 |
int get_run_track_lap_info(garmin_data *run, uint32 *track_index, uint32 *first_lap_index, uint32 *last_lap_index);
|
|
|
49 |
int get_lap_index(garmin_data *lap, uint32 *lap_index);
|
|
|
50 |
int get_lap_start_time (garmin_data *lap, time_type *start_time);
|
|
|
51 |
garmin_data *get_track(garmin_list *points, uint32 trk_index);
|
143 |
andreas |
52 |
|
|
|
53 |
private:
|
|
|
54 |
int step, psteps;
|
95 |
andreas |
55 |
};
|
|
|
56 |
|
|
|
57 |
#endif
|
|
|
58 |
|