blob: 42545686f658805a58ec819abf99bbd0ce03a351 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef BLUETOOTHBASECLASS_H
#define BLUETOOTHBASECLASS_H
#include <QObject>
class BluetoothBaseClass : public QObject
{
Q_OBJECT
Q_PROPERTY(QString error READ error WRITE setError NOTIFY errorChanged)
Q_PROPERTY(QString info READ info WRITE setInfo NOTIFY infoChanged)
public:
explicit BluetoothBaseClass(QObject *parent = nullptr);
QString error() const;
void setError(const QString& error);
QString info() const;
void setInfo(const QString& info);
void clearMessages();
signals:
void errorChanged();
void infoChanged();
private:
QString m_error;
QString m_info;
};
#endif // BLUETOOTHBASECLASS_H
|