Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 75 lines (58 sloc) 1.977 kb
9a780fa Adding licenses to all source files and adding COPYING/LICENSE discla…
cpscotti authored
1 /*
2 * Copyright (c) 2011 Nokia Corporation
3 *
4 * This file is part of the Push Snowboarding Project, More info at:
5 * www.pushsnowboading.com
6 *
7 * Author: Clovis Scotti <scotti@ieee.org>
8 *
9 * This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 *
26 */
27
dfaf02e (cpscott) "Importing" PushBurton2
cpscotti authored
28 #ifndef NPUSHREPORTALTITUDE_H
29 #define NPUSHREPORTALTITUDE_H
30
31 #include "npushgenreport.h"
32 #include <QVector>
33 #include <QObject>
34 #include <QMutex>
35 #include <QMutexLocker>
36
37 #include <QXmlStreamWriter>
38 #include <QXmlStreamReader>
39 #include <QFile>
40
41 #include "selfshrinkinglist.h"
42
41db957 *Waaaay better (sum all) air time detection
cpscotti authored
43 #include "FilesystemConventions.h"
44
dfaf02e (cpscott) "Importing" PushBurton2
cpscotti authored
45 class NPushReportAltitude : public NPushGenReport
46 {
47 Q_OBJECT
48 public:
49 NPushReportAltitude();
50 ~NPushReportAltitude();
51
52 bool save_to_dir(QString& dirName);
53 bool load_from_dir(QString& dirName);
54
55 bool start_run();
56 bool end_run();
57
58 void append_new_reading(double speed);
59
60 bool running;
61
62 SelfShrinkingList graphPoints;
63
64 double Altitude_max;
65 double Altitude_min;
66
67 private:
68
69 void read_points_from_xml(QXmlStreamReader& xml);
70
71 QMutex dataAccessMutex;
72 };
73
74 #endif // NPUSHREPORTALTITUDE_H
Something went wrong with that request. Please try again.