Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 57 lines (46 sloc) 1.506 kb
c35ef9d Using standard names for all devices; responsible tick disposal when dur...
Clovis Scotti 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 PUSHN8PHONEMAG_H
29 #define PUSHN8PHONEMAG_H
30
31 #include "pushburtongenericdevice.h"
32
33 #include "npushmagtick.h"
34
35 #include <QMagnetometer>
36 #include <QDebug>
37
38 class PushN8PhoneMag : public PushBurtonGenericDevice
39 {
40 Q_OBJECT
41 public:
42 PushN8PhoneMag();
43 ~PushN8PhoneMag();
44
45 QString getName();
46
47 bool is_online();
48
49 private:
50 QMagnetometer * magSensor;
51
52 protected:
53 void timerEvent(QTimerEvent *);
54 };
55
56 #endif // PUSHN8PHONEMAG_H
Something went wrong with that request. Please try again.