~phablet-team/qtubuntu-sensors/trunk

Viewing all changes in revision 93.

  • Committer: Bileto Bot
  • Author(s): Alfonso Sanchez-Beato, You-Sheng Yang
  • Date: 2017-01-13 17:47:49 UTC
  • mfrom: (92.1.2 reimplement-haptics-backend)
  • Revision ID: ci-train-bot@canonical.com-20170113174749-04ax9gzzgj312rtx
This change rewrites QtFeedbackHapticsEffect backend for ubuntu.

The original implementation is to call APIs in libubuntu-platform-api, which then issue D-Bus calls to usensord. However, it seems in some cases instantiating a D-Bus call in such Qt module may result in segmentation fault. This change rewrites QtFeedbackHapticsEffect backend with QtDBus directly and works around this issue.

This change also tries to conform to QtFeedbackHaptics features definitions. Duration/period is now correctly supported, although this doesn't mean much because usensord does not support variable vibration intensity. It also provides a chance to stop a periodical vibration. The enable/state properties are now correctly set and returned.

Approved by: Tiago Salem Herrmann

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: