API Documentation
Loading...
Searching...
No Matches
QTVibrationManager.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/TimeSpan.h>
4#include <NDEVR/ApplicationOptions.h>
5#include <QObject>
6namespace NDEVR
7{
8 /**--------------------------------------------------------------------------------------------------
9 \brief When supported, such as on Android/IOS, will vibrate the device.
10 **/
12 {
13 Q_OBJECT
14 public:
15
16 explicit QTVibrationManager(QObject *parent = 0);
19 bool enabled() const;
20 static bool SystemSupportsVibrate();
21 public:
24 signals:
25 public slots:
26 void requestVibrate(const TimeSpan& span = default_buzz_length.get());
27 };
28}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:59
The default object to store data of any type that should persist through sessions of the application.
Definition Button.h:57
t_type get() const
Definition ApplicationOptions.h:102
When supported, such as on Android/IOS, will vibrate the device.
Definition QTVibrationManager.h:12
QTVibrationManager(QObject *parent=0)
static ApplicationOption< TimeSpan > default_buzz_length
Definition QTVibrationManager.h:23
static ApplicationOption< bool > global_vibrate
Definition QTVibrationManager.h:22
void requestVibrate(const TimeSpan &span=default_buzz_length.get())
static bool SystemSupportsVibrate()
static QTVibrationManager & DefaultInstance()
Stores a time span, or difference between two times, with an optional start time.
Definition TimeSpan.h:46
Definition ACIColor.h:37