Improved scanning results model

This commit is contained in:
2021-08-17 14:03:33 +02:00
parent ea6849fead
commit 5f784b4bdc
9 changed files with 236 additions and 136 deletions

View File

@@ -1,33 +1,26 @@
#include "bluetoothbaseclass.h"
BluetoothBaseClass::BluetoothBaseClass(QObject *parent) : QObject(parent)
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();
}
if (m_error == error)
return;
m_error = error;
emit errorChanged();
}
void BluetoothBaseClass::setInfo(const QString &info)
{
if (m_info != info) {
m_info = info;
emit infoChanged();
}
if (m_info == info)
return;
m_info = info;
emit infoChanged();
}
void BluetoothBaseClass::clearMessages()