NetworkManagerQt

olpcmeshdevice.h
1/*
2 SPDX-FileCopyrightText: 2011 Ilia Kats <ilia-kats@gmx.net>
3 SPDX-FileCopyrightText: 2011-2013 Lamarque Souza <lamarque@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef NETWORKMANAGERQT_OLPCMESHDEVICE_H
9#define NETWORKMANAGERQT_OLPCMESHDEVICE_H
10
11#include "device.h"
12
13#include <networkmanagerqt/networkmanagerqt_export.h>
14
15namespace NetworkManager
16{
17class OlpcMeshDevicePrivate;
18
19/**
20 * A OLPC mesh interface
21 */
22class NETWORKMANAGERQT_EXPORT OlpcMeshDevice : public Device
23{
25
26public:
28 typedef QList<Ptr> List;
29 /**
30 * Creates a new OlpcMeshDevice object.
31 *
32 * @param path the DBus path of the device
33 */
34 explicit OlpcMeshDevice(const QString &path, QObject *parent = nullptr);
35 /**
36 * Destroys a OlpcMeshDevice object.
37 */
38 ~OlpcMeshDevice() override;
39 /**
40 * Return the type
41 */
42 Type type() const override;
43 /**
44 * Currently active channel.
45 */
46 uint activeChannel() const;
47 /**
48 * The hardware address currently used by the network interface
49 */
51 /**
52 * The current companion device.
53 */
54 Device::Ptr companionDevice() const;
55
57 /**
58 * The active channel changed.
59 */
61 /**
62 * The companion changed.
63 */
64 void companionChanged(const Device::Ptr &device);
65 /**
66 * The device changed its hardware address
67 */
69
70private:
71 Q_DECLARE_PRIVATE(OlpcMeshDevice)
72};
73
74} // namespace NetworkManager
75#endif // NETWORKMANAGERQT_OLPCMESHDEVICE_H
Type
Device type.
Definition device.h:191
Device(const QString &path, QObject *parent=nullptr)
Creates a new device object.
Definition device.cpp:226
void activeChannelChanged(uint)
The active channel changed.
void companionChanged(const Device::Ptr &device)
The companion changed.
Device::Ptr companionDevice() const
The current companion device.
uint activeChannel() const
Currently active channel.
Type type() const override
Return the type.
OlpcMeshDevice(const QString &path, QObject *parent=nullptr)
Creates a new OlpcMeshDevice object.
void hardwareAddressChanged(const QString &)
The device changed its hardware address.
QString hardwareAddress() const
The hardware address currently used by the network interface.
This class allows querying the underlying system to discover the available network interfaces and rea...
Definition accesspoint.h:21
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 28 2025 12:02:25 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.