forked from petersimonsson/libqatemcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqatemsubsystembase.h
More file actions
30 lines (22 loc) · 837 Bytes
/
qatemsubsystembase.h
File metadata and controls
30 lines (22 loc) · 837 Bytes
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
#ifndef QATEMSUBSYSTEMBASE_H
#define QATEMSUBSYSTEMBASE_H
#include <QObject>
#include "libqatemcontrol_global.h"
#include "qatemconnection.h"
class LIBQATEMCONTROLSHARED_EXPORT QAtemSubsystemBase : public QObject
{
Q_OBJECT
Q_PROPERTY(QAtemConnection* atemConnection READ getAtemConnection WRITE setAtemConnection NOTIFY atemConnectionChanged FINAL REQUIRED)
public:
explicit QAtemSubsystemBase(QObject *parent = nullptr);
~QAtemSubsystemBase();
virtual void setAtemConnection(QAtemConnection *qac);
QAtemConnection *getAtemConnection() { return m_atemConnection; }
signals:
void atemConnectionChanged();
protected:
bool sendCommand(const QByteArray cmd, const QByteArray payload);
QAtemConnection *m_atemConnection=nullptr;
QList<QByteArray> m_commands;
};
#endif // QATEMSUBSYSTEMBASE_H