2021-07-17 05:09:39 +02:00
|
|
|
#include "bluetoothbaseclass.h"
|
|
|
|
|
2021-08-17 14:03:33 +02:00
|
|
|
BluetoothBaseClass::BluetoothBaseClass(QObject *parent) :
|
|
|
|
QObject{parent}
|
2021-07-17 05:09:39 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void BluetoothBaseClass::setError(const QString &error)
|
|
|
|
{
|
2021-08-17 14:03:33 +02:00
|
|
|
if (m_error == error)
|
|
|
|
return;
|
|
|
|
|
|
|
|
m_error = error;
|
|
|
|
emit errorChanged();
|
2021-07-17 05:09:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void BluetoothBaseClass::setInfo(const QString &info)
|
|
|
|
{
|
2021-08-17 14:03:33 +02:00
|
|
|
if (m_info == info)
|
|
|
|
return;
|
|
|
|
|
|
|
|
m_info = info;
|
|
|
|
emit infoChanged();
|
2021-07-17 05:09:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void BluetoothBaseClass::clearMessages()
|
|
|
|
{
|
|
|
|
setInfo("");
|
|
|
|
setError("");
|
|
|
|
}
|