File indexing completed on 2024-04-28 16:42:51

0001 // SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
0002 // SPDX-FileCopyrightText: 2021 Alexey Andreyev <aa13q@ya.ru>
0003 //
0004 // SPDX-License-Identifier: LGPL-2.1-or-later
0005 
0006 #pragma once
0007 
0008 #include <QObject>
0009 
0010 class DialerUtils : public QObject
0011 {
0012     Q_OBJECT
0013     Q_CLASSINFO("D-Bus Interface", "org.kde.telephony.DialerUtils")
0014 
0015 public:
0016     DialerUtils(QObject *parent = nullptr);
0017 
0018 public Q_SLOTS:
0019     bool mute();
0020     bool speakerMode();
0021     void setMute(bool muted);
0022     void setSpeakerMode(bool enabled);
0023     void fetchMute();
0024     void fetchSpeakerMode();
0025     void syncSettings();
0026 
0027 Q_SIGNALS:
0028     void muteChanged(bool muted);
0029     void speakerModeChanged(bool enabled);
0030     void muteRequested();
0031     void speakerModeRequested();
0032 
0033 private:
0034     bool _mute;
0035     bool _speakerMode;
0036 };