blob: 5aac87d9c6fe8752a9002b1e8cd1baf22b695c57 (
plain)
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
|
#ifndef MCEVIBRATOR_H
#define MCEVIBRATOR_H
#include <QObject>
#include <QTextStream>
#include <QDBusInterface>
//! [0]
class MceVibrator : public QObject
{
Q_OBJECT
public:
explicit MceVibrator(QObject *parent = 0);
~MceVibrator();
static const char defaultMceFilePath[];
static QStringList parsePatternNames(QTextStream &stream);
public slots:
void vibrate(const QString &patternName);
private:
void deactivate(const QString &patternName);
QDBusInterface mceInterface;
QString lastPatternName;
};
//! [0]
#endif // MCEVIBRATOR_H
|