ModemManagerQt

modemfirmware.cpp
1/*
2 SPDX-FileCopyrightText: 2014 Lukas Tinkl <ltinkl@redhat.com>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "modemfirmware.h"
8#include "modemfirmware_p.h"
9#ifdef MMQT_STATIC
10#include "dbus/fakedbus.h"
11#else
12#include "dbus/dbus.h"
13#endif
14
15ModemManager::ModemFirmwarePrivate::ModemFirmwarePrivate(const QString &path, ModemFirmware *q)
16 : InterfacePrivate(path, q)
17#ifdef MMQT_STATIC
18 , modemFirmwareIface(QLatin1String(MMQT_DBUS_SERVICE), path, QDBusConnection::sessionBus())
19#else
20 , modemFirmwareIface(QLatin1String(MMQT_DBUS_SERVICE), path, QDBusConnection::systemBus())
21#endif
22 , q_ptr(q)
23{
24}
25
26ModemManager::ModemFirmware::ModemFirmware(const QString &path, QObject *parent)
27 : Interface(*new ModemFirmwarePrivate(path, this), parent)
28{
29}
30
31ModemManager::ModemFirmware::~ModemFirmware()
32{
33}
34
40
42{
44 d->modemFirmwareIface.Select(uniqueid);
45}
46
47#include "moc_modemfirmware.cpp"
The ModemFirmware class.
void selectImage(const QString &uniqueid)
Selects a different firmware image to use, and immediately resets the modem so that it begins using t...
QDBusPendingReply< QString, QVariantMapList > listImages()
List installed firmware images.
QString path(const QString &relativePath)
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:49:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.