blob: 5db621c4cbb229fcbf6ff54b8a170486267ab88e (
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
37
38
39
40
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "bluetoothbaseclass.h"
BluetoothBaseClass::BluetoothBaseClass(QObject *parent) : QObject(parent)
{
}
QString BluetoothBaseClass::error() const
{
return m_error;
}
QString BluetoothBaseClass::info() const
{
return m_info;
}
void BluetoothBaseClass::setError(const QString &error)
{
if (m_error != error) {
m_error = error;
emit errorChanged();
}
}
void BluetoothBaseClass::setInfo(const QString &info)
{
if (m_info != info) {
m_info = info;
emit infoChanged();
}
}
void BluetoothBaseClass::clearMessages()
{
setInfo("");
setError("");
}
|