File indexing completed on 2024-04-28 16:42:52
0001 // SPDX-FileCopyrightText: 2021 Alexey Andreyev <aa13q@ya.ru> 0002 // 0003 // SPDX-License-Identifier: LicenseRef-KDE-Accepted-GPL 0004 0005 #pragma once 0006 0007 #include <QObject> 0008 0009 #include "dialerutilsinterface.h" 0010 0011 class DeclarativeDialerUtils : public org::kde::telephony::DialerUtils 0012 { 0013 Q_OBJECT 0014 Q_PROPERTY(bool mute READ mute WRITE setMute NOTIFY muteChanged) 0015 Q_PROPERTY(bool speakerMode READ speakerMode WRITE setSpeakerMode NOTIFY speakerModeChanged) 0016 0017 public: 0018 DeclarativeDialerUtils(QObject *parent = nullptr); 0019 Q_INVOKABLE void syncSettings(); 0020 0021 Q_SIGNALS: 0022 // empty parameter list is a moc limitation for NOTIFY 0023 void muteChanged(); 0024 void speakerModeChanged(); 0025 };