Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 81 lines (60 sloc) 1.988 kb
53a7c8a Woops, fixing embarassing spelling error on void incoming_reading() slot
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
28 #ifndef PUSHN8ABSNORMFEETDEVICE_H
29 #define PUSHN8ABSNORMFEETDEVICE_H
30
31 #include <typeinfo>
32
33 #include "pushburtongenericdevice.h"
34
35 #include "pushn8footdevice.h"
36
37 #include "npushfoottick.h"
38 #include "npushlogtick.h"
39
40 #include "npushnormfeettick.h"
41
42 #include "AbsNormFeetTypes.h"
43
44 class PushN8AbsNormFeetDevice : public PushBurtonGenericDevice
45 {
46 Q_OBJECT
47 public:
48 PushN8AbsNormFeetDevice();
49 ~PushN8AbsNormFeetDevice();
50
51 bool subscribesToAny();
52 bool subscribesTo(PushBurtonGenericDevice* deviceType);
53
c35ef9d Using standard names for all devices; responsible tick disposal when dur...
Clovis Scotti authored
54 QString getName();
53a7c8a Woops, fixing embarassing spelling error on void incoming_reading() slot
cpscotti authored
55
56 void start_readings();
57 void stop_readings();
58
59 bool is_online();
60
61 SnowboradPressureData pdata;
62
63 int normRunCount;
64
65 quint64 lastReading;
66 char lastReadingSide;
67
68
69 bool flying;
70 quint64 takeOffTime;
71 quint64 lastAirborneTime;
72
73 public slots:
74 void incoming_reading(NPushLogTick *);
75
76 private:
77 void reset_bounds();
78 };
79
80 #endif // PUSHN8ABSNORMFEETDEVICE_H
Something went wrong with that request. Please try again.