blob: 7b4e9d83d02c7f0a5ba9de6a788dd1715ca8745d (
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
32
33
34
35
36
37
38
39
|
#ifndef XQVIBRA_P_H
#define XQVIBRA_P_H
// INCLUDES
#include "xqvibra.h"
#include <HWRMVibra.h>
#include <QTimer>
// CLASS DECLARATION
class XQVibraPrivate: public CBase, public MHWRMVibraObserver
{
public:
XQVibraPrivate(XQVibra *vibra);
~XQVibraPrivate();
bool start(int aDuration = XQVibra::InfiniteDuration);
bool stop();
bool setIntensity(int aIntensity);
XQVibra::Status currentStatus() const;
XQVibra::Error error() const;
private: // From MHWRMVibraObserver
void VibraModeChanged(CHWRMVibra::TVibraModeState aStatus);
void VibraStatusChanged(CHWRMVibra::TVibraStatus aStatus);
private:
XQVibra *q;
XQVibra::Status iStatus;
CHWRMVibra *iVibra;
QTimer iTimer;
int iDuration;
int iIntensity;
int iError;
};
#endif /*XQVIBRA_P_H*/
// End of file
|