diff options
author | David Boddie <david.boddie@nokia.com> | 2011-05-11 17:35:46 +0200 |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-05-23 14:24:07 +0200 |
commit | 0cbcc61ef35b9bce1d65d048853c79004b755b87 (patch) | |
tree | 0e10f00827d9d3b84862e371d163f1b2774ee996 /examples/widgets/symbianvibration/xqvibra_p.h | |
parent | 0748751c9f097d9d866605306bbdd4b96e2a5c4e (diff) |
Squashed commit of changes from the 4.8-temp branch.
Diffstat (limited to 'examples/widgets/symbianvibration/xqvibra_p.h')
-rw-r--r-- | examples/widgets/symbianvibration/xqvibra_p.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/widgets/symbianvibration/xqvibra_p.h b/examples/widgets/symbianvibration/xqvibra_p.h new file mode 100644 index 0000000000..7b4e9d83d0 --- /dev/null +++ b/examples/widgets/symbianvibration/xqvibra_p.h @@ -0,0 +1,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 |