File indexing completed on 2024-10-06 08:03:51
0001 // SPDX-FileCopyrightText: 2023 Devin Lin <devin@kde.org> 0002 // SPDX-License-Identifier: GPL-2.0-or-later 0003 0004 #include "vibrationmanager.h" 0005 0006 VibrationManager::VibrationManager(QObject *parent) 0007 : QObject{parent} 0008 { 0009 const auto objectPath = QStringLiteral("/com/lomiri/hfd"); 0010 m_interface = new com::lomiri::hfd::Vibrator("com.lomiri.hfd", objectPath, QDBusConnection::systemBus(), this); 0011 } 0012 0013 void VibrationManager::vibrate(int durationMs) 0014 { 0015 m_interface->vibrate(durationMs); 0016 }