ModemManagerQt

modemfirmware.h
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#ifndef MODEMMANAGERQT_MODEMFIRMWARE_H
8#define MODEMMANAGERQT_MODEMFIRMWARE_H
9
10#include "interface.h"
11#include <modemmanagerqt_export.h>
12
13#include <QDBusPendingReply>
14#include <QObject>
15#include <QSharedPointer>
16
17namespace ModemManager
18{
19class ModemFirmwarePrivate;
20
21/**
22 * @brief The ModemFirmware class
23 *
24 * This class allows clients to select or install firmware images on modems.
25 *
26 * Firmware slots and firmware images are identified by arbitrary opaque strings.
27 *
28 * @since 1.1.94
29 */
30class MODEMMANAGERQT_EXPORT ModemFirmware : public Interface
31{
32 Q_OBJECT
33 Q_DECLARE_PRIVATE(ModemFirmware)
34
35public:
37 typedef QList<Ptr> List;
38
39 explicit ModemFirmware(const QString &path, QObject *parent = nullptr);
40 ~ModemFirmware() override;
41
42 /**
43 * List installed firmware images.
44 *
45 * Depending on the type of modem, installed images may be stored on the host or the modem.
46 * Installed images can be selected non-destructively.
47 *
48 * @return @param selected (QString)
49 * The unique name of the selected firmware image, or the empty string if no image is selected.
50 * @param installed (QVariantMapList)
51 * A map of dictionaries containing the properties of the installed firmware images.
52 */
54
55 /**
56 * Selects a different firmware image to use, and immediately resets the modem so that it
57 * begins using the new firmware image.
58 *
59 * The method will fail if the identifier does not match any of the names returned by listImages(),
60 * or if the image could not be selected for some reason.
61 *
62 * @param uniqueid The unique ID of the firmware image to select.
63 */
64 void selectImage(const QString &uniqueid);
65};
66
67} // namespace ModemManager
68
69#endif
The ModemFirmware class.
This namespace allows to query the underlying system to discover the available modem interfaces respo...
Definition bearer.cpp:20
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.