File indexing completed on 2024-05-12 16:15:57
0001 /* 0002 SPDX-FileCopyrightText: 2014-2023 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 namespace TextEditTextToSpeech 0011 { 0012 class TextToSpeechWidget; 0013 } 0014 class TextToSpeechWidgetTest : public QObject 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit TextToSpeechWidgetTest(QObject *parent = nullptr); 0019 0020 private: 0021 void addInterface(TextEditTextToSpeech::TextToSpeechWidget *widget); 0022 0023 private Q_SLOTS: 0024 void shouldHaveDefaultValue(); 0025 void shouldChangeButtonEnableStateWhenChangeState(); 0026 void shouldChangeStateWhenClickOnPlayPause(); 0027 void shouldChangeStateWhenClickOnStop(); 0028 void shouldEmitStateChanged(); 0029 };