-
Notifications
You must be signed in to change notification settings - Fork 0
/
signalmanager.h
36 lines (31 loc) · 878 Bytes
/
signalmanager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef PAGESTACK_H
#define PAGESTACK_H
#include "bluetoothmanager.h"
#include <QTabWidget>
#include <qrotationsensor.h>
#define DEVICE_NAME "OLAV-LAPTOP"
// add Qt Mobility Project Namespace
//QTM_USE_NAMESPACE
class SignalManager : public QTabWidget
{
Q_OBJECT
public:
explicit SignalManager(QWidget *parent = 0);
signals:
void xRotationChanged(int value);
void yRotationChanged(int value);
void zRotationChanged(int value);
void bluetoothStatusChanged(QString status);
void scanEnabled(bool);
public slots:
void rotationDialMoved(int value);
void verticalMovementSliderMoved(int value);
void updateReading();
void scanForBluetoothDevice();
void changeBluetoothStatus(QString status);
void enableScan(bool busy);
private:
QRotationSensor * rotationSensor;
BluetoothManager * btManager;
};
#endif // PAGESTACK_H