ModemManagerQt

fakemodem/modemtime.h
1/*
2 SPDX-FileCopyrightText: 2015 Jan Grulich <jgrulich@redhat.com>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef MODEMMANAGERQT_FAKE_MODEM_MODEM_TIME_H
8#define MODEMMANAGERQT_FAKE_MODEM_MODEM_TIME_H
9
10#include "generictypes.h"
11
12#include <QDBusAbstractAdaptor>
13
14class ModemTime : public QDBusAbstractAdaptor
15{
17 Q_CLASSINFO("D-Bus Interface", "org.kde.fakemodem.Modem.Time")
18public:
19 explicit ModemTime(QObject *parent = nullptr);
20 ~ModemTime() override;
21
22 Q_PROPERTY(QVariantMap NetworkTimezone READ networkTimezone)
23
24 QVariantMap networkTimezone() const;
25
26 /* Not part of dbus interface */
27 void setModemPath(const QString &path);
28 void setEnableNotifications(bool enable);
29 void setNetworkTimezone(const QVariantMap &timezone);
30
31 QVariantMap toMap() const;
32
33public Q_SLOTS:
34 Q_SCRIPTABLE QString GetNetworkTime();
35
36Q_SIGNALS: // SIGNALS
37 Q_SCRIPTABLE void NetworkTimeChanged(const QString &time);
38
39private:
40 QString m_modemPath;
41 bool m_enabledNotifications;
42 QVariantMap m_timezone;
43};
44
45#endif
Q_CLASSINFO(Name, Value)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.