#pragma once #include #include class QTimer; class QSoundEffect; class Sound : public QObject { Q_OBJECT public: enum Type { TestType, InfoType, WarningType, AlertType, WakeUpType, ClickType }; public: Sound(QObject *parent = nullptr); void test(); Q_SIGNAL void volumeChanged(qreal); private: void appendSound(Type type, const QString& source); private: QHash _effects; };