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>
6#if defined(Q_OS_ANDROID)
7#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
8 #define JNIObject QAndroidJniObject
9#else
10 #define JNIObject QJniObject
11#endif
12 class JNIObject;
13#endif
14namespace NDEVR
15{
17 {
18 Q_OBJECT
19 public:
20
21 explicit QTVibrationManager(QObject *parent = 0);
23 static QTVibrationManager& DefaultInstance();
24 bool enabled() const;
25 static bool SystemSupportsVibrate();
26 public:
29 signals:
30 public slots:
31 void requestVibrate(const TimeSpan& span = default_buzz_length.get());
32 };
33}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:81
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
Definition QTVibrationManager.h:17
static ApplicationOption< bool > global_vibrate
Definition QTVibrationManager.h:27
static ApplicationOption< TimeSpan > default_buzz_length
Definition QTVibrationManager.h:28
Definition TimeSpan.h:40
Definition ACIColor.h:37