Adds initial intermediate qt6 porting state
This commit is contained in:
11247 files changed
+1891537
No files matched your search
+44
@@ -0,0 +1,44 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
namespace NGL
|
||||
{
|
||||
class INGLLogger;
|
||||
}
|
||||
namespace TrainingAreaBaseOC
|
||||
{
|
||||
class Device;
|
||||
|
||||
|
||||
class Channel : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
Channel(QChar channel, bool bIsBinary, QObject *parent = nullptr);
|
||||
|
||||
void setDevice(Device *dev);
|
||||
|
||||
bool writeData(const QByteArray &data);
|
||||
|
||||
QChar channel() const { return m_channel; }
|
||||
|
||||
signals:
|
||||
void dataAvailable(const QByteArray &);
|
||||
void disconnectedFromEq();
|
||||
|
||||
|
||||
protected slots:
|
||||
void onDeviceDestroyed();
|
||||
void onDataAvailable(const QByteArray &data);
|
||||
|
||||
protected:
|
||||
QChar m_channel;
|
||||
bool m_bIsBinary;
|
||||
Device *m_device;
|
||||
NGL::INGLLogger &m_logger;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user