File indexing completed on 2024-04-21 16:32:05

0001 /* This file is part of Kairo Timer
0002 
0003    SPDX-FileCopyrightText: 2016 (c) Kevin Ottens <ervin@kde.org>
0004 
0005    SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006 
0007 */
0008 
0009 #ifndef SOUNDCONTROL_H
0010 #define SOUNDCONTROL_H
0011 
0012 #include "soundcontrolinterface.h"
0013 
0014 class QMediaPlayer;
0015 
0016 class SoundControl : public SoundControlInterface
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit SoundControl(QObject *parent = nullptr);
0021 
0022 public slots:
0023     void playShortBeep() override;
0024     void playLongBeep() override;
0025     void playEndBeep() override;
0026 
0027 private:
0028     QMediaPlayer *m_player;
0029 };
0030 
0031 #endif