// SPDX-FileCopyrightText: 2015 Marco Martin // SPDX-FileCopyrightText: 2021 Alexey Andreyev // // SPDX-License-Identifier: LGPL-2.1-or-later #pragma once #include class DialerUtils : public QObject { Q_OBJECT Q_CLASSINFO("D-Bus Interface", "org.kde.telephony.DialerUtils") public: DialerUtils(QObject *parent = nullptr); public Q_SLOTS: bool mute(); bool speakerMode(); void setMute(bool muted); void setSpeakerMode(bool enabled); void fetchMute(); void fetchSpeakerMode(); void syncSettings(); Q_SIGNALS: void muteChanged(bool muted); void speakerModeChanged(bool enabled); void muteRequested(); void speakerModeRequested(); private: bool m_mute; bool m_speakerMode; };