ModemManagerQt

fakemodem/modemlocation.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_LOCATION_H
8#define MODEMMANAGERQT_FAKE_MODEM_MODEM_LOCATION_H
9
10#include "generictypes.h"
11
12#include <QDBusAbstractAdaptor>
13
14class ModemLocation : public QDBusAbstractAdaptor
15{
17 Q_CLASSINFO("D-Bus Interface", "org.kde.fakemodem.Modem.Location")
18public:
19 explicit ModemLocation(QObject *parent = nullptr);
20 ~ModemLocation() override;
21
22 Q_PROPERTY(uint Capabilities READ capabilities)
23 Q_PROPERTY(uint Enabled READ enabled)
24 Q_PROPERTY(ModemManager::LocationInformationMap Location READ location)
25 Q_PROPERTY(bool SignalsLocation READ signalsLocation)
26
27 uint capabilities() const;
28 uint enabled() const;
29 ModemManager::LocationInformationMap location() const;
30 bool signalsLocation() const;
31
32 /* Not part of dbus interface */
33 void setModemPath(const QString &path);
34 void setEnableNotifications(bool enable);
35 void setCapabilities(uint capabilities);
36 void setEnabled(uint enabled);
37 void setLocation(const ModemManager::LocationInformationMap &location);
38 void setSignalsLocation(bool signalsLocation);
39
40 QVariantMap toMap() const;
41
42public Q_SLOTS:
43 Q_SCRIPTABLE ModemManager::LocationInformationMap GetLocation();
44 Q_SCRIPTABLE void Setup(uint sources, bool signal_location);
45
46private:
47 QString m_modemPath;
48 bool m_enabledNotifications;
49 uint m_capabilities;
50 uint m_enabled;
51 ModemManager::LocationInformationMap m_location;
52 bool m_signalsLocation;
53};
54
55#endif
This namespace allows to query the underlying system to discover the available modem interfaces respo...
Definition bearer.cpp:20
Q_CLASSINFO(Name, Value)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
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.