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{
24 Q_OBJECT
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 */
50 QString hardwareAddress() const;
51 /**
52 * The current companion device.
53 */
54 Device::Ptr companionDevice() const;
55
56Q_SIGNALS:
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
This class represents a common device interface.
Definition device.h:34
Type
Device type.
Definition device.h:191
A OLPC mesh interface.
void activeChannelChanged(uint)
The active channel changed.
void companionChanged(const Device::Ptr &device)
The companion changed.
void hardwareAddressChanged(const QString &)
The device changed its hardware address.
This class allows querying the underlying system to discover the available network interfaces and rea...
Definition accesspoint.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.