NetworkManagerQt

bluetoothsetting.h
1/*
2 SPDX-FileCopyrightText: 2012-2013 Jan Grulich <jgrulich@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 NETWORKMANAGERQT_BLUETOOTH_SETTING_H
8#define NETWORKMANAGERQT_BLUETOOTH_SETTING_H
9
10#include "setting.h"
11#include <networkmanagerqt/networkmanagerqt_export.h>
12
13#include <QString>
14
15namespace NetworkManager
16{
17class BluetoothSettingPrivate;
18
19/**
20 * Represents bluetooth setting
21 */
22class NETWORKMANAGERQT_EXPORT BluetoothSetting : public Setting
23{
24public:
26 typedef QList<Ptr> List;
27 enum ProfileType {
28 Unknown = 0,
29 Dun,
30 Panu,
31 };
32
34 explicit BluetoothSetting(const Ptr &other);
35 ~BluetoothSetting() override;
36
37 QString name() const override;
38
39 void setBluetoothAddress(const QByteArray &address);
40 QByteArray bluetoothAddress() const;
41
42 void setProfileType(ProfileType type);
43 ProfileType profileType() const;
44
45 void fromMap(const QVariantMap &setting) override;
46
47 QVariantMap toMap() const override;
48
49protected:
50 BluetoothSettingPrivate *d_ptr;
51
52private:
53 Q_DECLARE_PRIVATE(BluetoothSetting)
54};
55
56NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const BluetoothSetting &setting);
57
58}
59
60#endif // NETWORKMANAGERQT_SETTINGS_BLUETOOTH_H
Represents bluetooth setting.
Base class for all kinds of setting.
Definition setting.h:30
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 Fri Nov 22 2024 12:01:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.