NetworkManagerQt

olpcmeshdevice.h
1 /*
2  SPDX-FileCopyrightText: 2011 Ilia Kats <[email protected]>
3  SPDX-FileCopyrightText: 2011-2013 Lamarque Souza <[email protected]>
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 
15 #include <QDBusObjectPath>
16 
17 namespace NetworkManager
18 {
19 class OlpcMeshDevicePrivate;
20 
21 /**
22  * A OLPC mesh interface
23  */
24 class NETWORKMANAGERQT_EXPORT OlpcMeshDevice : public Device
25 {
26  Q_OBJECT
27 
28 public:
30  typedef QList<Ptr> List;
31  /**
32  * Creates a new OlpcMeshDevice object.
33  *
34  * @param path the DBus path of the device
35  */
36  explicit OlpcMeshDevice(const QString &path, QObject *parent = nullptr);
37  /**
38  * Destroys a OlpcMeshDevice object.
39  */
40  ~OlpcMeshDevice() override;
41  /**
42  * Return the type
43  */
44  Type type() const override;
45  /**
46  * Currently active channel.
47  */
48  uint activeChannel() const;
49  /**
50  * The hardware address currently used by the network interface
51  */
52  QString hardwareAddress() const;
53  /**
54  * The current companion device.
55  */
56  Device::Ptr companionDevice() const;
57 
58 Q_SIGNALS:
59  /**
60  * The active channel changed.
61  */
62  void activeChannelChanged(uint);
63  /**
64  * The companion changed.
65  */
66  void companionChanged(const Device::Ptr &device);
67  /**
68  * The device changed its hardware address
69  */
70  void hardwareAddressChanged(const QString &);
71 
72 private:
73  Q_DECLARE_PRIVATE(OlpcMeshDevice)
74 };
75 
76 } // namespace NetworkManager
77 #endif // NETWORKMANAGERQT_OLPCMESHDEVICE_H
This class represents a common device interface.
Definition: device.h:33
This class allows querying the underlying system to discover the available network interfaces and rea...
Definition: accesspoint.h:20
Type
Device type.
Definition: device.h:177
A OLPC mesh interface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 03:57:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.