Subversion Repositories public

Rev

Rev 143 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
95 andreas 1
/***************************************************************************
232 andreas 2
 *   Copyright (C) 2007 - 2009 by Andreas Theofilu                         *
119 andreas 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
 
232 andreas 20
/*
21
 * Ported to KDE4 on Jul. 8 2009 by Andreas Theofilu.
22
 */
95 andreas 23
#ifndef PROGRESSWIDGET_H
24
#define PROGRESSWIDGET_H
25
 
232 andreas 26
#include <QDialog>
27
#include "ui_progresswidgetbase.h"
95 andreas 28
#include "garmin.h"
29
 
232 andreas 30
class progressWidget : public QDialog, private Ui::Progress //WidgetBase
95 andreas 31
{
32
		Q_OBJECT
33
 
34
	public:
232 andreas 35
		progressWidget ( QWidget* parent = 0, Qt::WFlags fl = 0 );
95 andreas 36
		~progressWidget();
37
		/*$PUBLIC_FUNCTIONS$*/
137 andreas 38
		bool Download();
39
		static void CallBack(char *str);
95 andreas 40
 
41
	public slots:
42
		/*$PUBLIC_SLOTS$*/
43
 
44
	protected:
45
		/*$PROTECTED_FUNCTIONS$*/
143 andreas 46
		void IncrementBar();
95 andreas 47
 
48
	protected slots:
49
		/*$PROTECTED_SLOTS$*/
50
 
51
	private:
52
		int get_run_track_lap_info(garmin_data *run, uint32 *track_index, uint32 *first_lap_index, uint32 *last_lap_index);
53
		int get_lap_index(garmin_data *lap, uint32 *lap_index);
54
		int get_lap_start_time (garmin_data *lap, time_type *start_time);
55
		garmin_data *get_track(garmin_list *points, uint32 trk_index);
143 andreas 56
 
57
	private:
58
		int step, psteps;
95 andreas 59
};
60
 
61
#endif
62