File indexing completed on 2024-04-21 16:32:06
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 #include "soundcontrolstub.h" 0010 0011 SoundControlStub::SoundControlStub(QObject *parent) 0012 : SoundControlInterface{parent} 0013 { 0014 } 0015 0016 QVector<SoundControlStub::SoundType> SoundControlStub::calls() const 0017 { 0018 return m_calls; 0019 } 0020 0021 void SoundControlStub::clear() 0022 { 0023 m_calls.clear(); 0024 } 0025 0026 void SoundControlStub::playShortBeep() 0027 { 0028 m_calls << ShortBeep; 0029 } 0030 0031 void SoundControlStub::playLongBeep() 0032 { 0033 m_calls << LongBeep; 0034 } 0035 0036 void SoundControlStub::playEndBeep() 0037 { 0038 m_calls << EndBeep; 0039 }