// SPDX-FileCopyrightText: 2023 Devin Lin // SPDX-License-Identifier: GPL-2.0-or-later #pragma once #include #include #include #include "hapticinterface.h" #include "vibrationevent.h" #include class VibrationManager : public QObject { Q_OBJECT QML_ELEMENT QML_SINGLETON public: VibrationManager(QObject *parent = nullptr); Q_INVOKABLE QCoro::Task vibrate(int durationMs); private: OrgSigxcpuFeedbackHapticInterface *m_interface{nullptr}; };