File indexing completed on 2024-09-01 14:38:58
0001 /* 0002 SPDX-FileCopyrightText: 2016 David Rosca <nowrep@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef VOLUMEFEEDBACK_H 0008 #define VOLUMEFEEDBACK_H 0009 0010 #include <QObject> 0011 0012 #include <canberra.h> 0013 0014 class VolumeFeedback : public QObject 0015 { 0016 Q_OBJECT 0017 Q_PROPERTY(bool valid READ isValid CONSTANT) 0018 0019 public: 0020 explicit VolumeFeedback(QObject *parent = nullptr); 0021 ~VolumeFeedback() override; 0022 0023 bool isValid() const; 0024 0025 public Q_SLOTS: 0026 void play(quint32 sinkIndex); 0027 }; 0028 0029 #endif // VOLUMEFEEDBACK_H