Skip to content
Newer
Older
100755 81 lines (61 sloc) 1.96 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 NPUSHREPORTGSR_H
29 #define NPUSHREPORTGSR_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"
dfaf02e (cpscott) "Importing" PushBurton2
cpscotti authored
44 class NPushReportGSR : public NPushGenReport
45 {
46 Q_OBJECT
47 public:
48 NPushReportGSR();
49
50 ~NPushReportGSR();
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(int reading);
59
60 bool running;
61
62 SelfShrinkingList graphPoints;
63
64 double GSR_max;
65 double GSR_avg;
66 // int GSR_min;
67
68 private:
69
70 long int GSR_acc;
71 int GSR_cnt;
72
73 void read_points_from_xml(QXmlStreamReader& xml);
74
75 QMutex dataAccessMutex;
76
77
78 };
79
80 #endif // NPUSHREPORTGSR_H
Something went wrong with that request. Please try again.