Warning, file /plasma/plasma-mobile/components/hapticsplugin/vibrationmanager.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // SPDX-FileCopyrightText: 2023 Devin Lin <devin@kde.org>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 #pragma once
0005 
0006 #include <QObject>
0007 #include <qqmlregistration.h>
0008 
0009 #include "hfdinterface.h"
0010 
0011 class VibrationManager : public QObject
0012 {
0013     Q_OBJECT
0014     QML_ELEMENT
0015     QML_SINGLETON
0016 
0017 public:
0018     VibrationManager(QObject *parent = nullptr);
0019 
0020     Q_INVOKABLE void vibrate(int durationMs);
0021 
0022 private:
0023     com::lomiri::hfd::Vibrator *m_interface;
0024 };