File indexing completed on 2024-04-28 09:43:53
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 SOUNDCONTROLSTUB_H 0010 #define SOUNDCONTROLSTUB_H 0011 0012 #include "soundcontrolinterface.h" 0013 0014 #include <QVector> 0015 0016 class SoundControlStub : public SoundControlInterface 0017 { 0018 Q_OBJECT 0019 public: 0020 enum SoundType { 0021 ShortBeep, 0022 LongBeep, 0023 EndBeep 0024 }; 0025 0026 explicit SoundControlStub(QObject *parent = nullptr); 0027 0028 QVector<SoundType> calls() const; 0029 void clear(); 0030 0031 public slots: 0032 void playShortBeep() override; 0033 void playLongBeep() override; 0034 void playEndBeep() override; 0035 0036 private: 0037 QVector<SoundType> m_calls; 0038 }; 0039 0040 #endif