SLOT(displayStateError(QDBusError)));
m_touchscreenVibrationEnabled = isTouchscreenVibrationEnabled();
-
- if (m_touchscreenVibrationEnabled)
- m_dBusInterface->call(MCE_ENABLE_VIBRATOR);
}
void MCEPrivate::displayStateChanged(const QDBusMessage &message)
QTimer::singleShot(VIBRATION_TIME, this, SLOT(stopVibration()));
}
}
-
-MCEPrivate::~MCEPrivate()
-{
- qWarning() << __PRETTY_FUNCTION__;
-
- if (m_touchscreenVibrationEnabled)
- m_dBusInterface->call(MCE_DISABLE_VIBRATOR);
-}
* @brief Constructor.
*
* @param parent QObject
- *
- * Enables vibration mode.
*/
MCEPrivate(QObject *parent);
- /**
- * @brief Destructor.
- *
- * Disables vibration mode.
- */
- ~MCEPrivate();
-
/*******************************************************************************
* MEMBER FUNCTIONS AND SLOTS
******************************************************************************/