41 lines
836 B
C++
41 lines
836 B
C++
#ifndef BCIMANAGER_H
|
|
#define BCIMANAGER_H
|
|
|
|
#include <QObject>
|
|
#include <QProcess>
|
|
#include "QmlTcpSocket/TcpSocket.h"
|
|
|
|
class BCIManager : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit BCIManager(QObject *parent = nullptr);
|
|
|
|
static BCIManager &getInstance()
|
|
{
|
|
static BCIManager instance;
|
|
return instance;
|
|
}
|
|
|
|
static void registerQMLType()
|
|
{
|
|
qmlRegisterType<QMLTcpSockets::TcpSocket>("TcpSocket", 2, 0, "TcpSocket");
|
|
}
|
|
//启动Linker工具
|
|
bool startLinkerPrograme();
|
|
|
|
private slots:
|
|
//Linker程序的标准输出
|
|
void slotLinkerProgrameReadyReadStandardOutput();
|
|
//Linker程序的错误输出
|
|
void slotLinkerProgrameReadyReadStandardError();
|
|
|
|
signals:
|
|
void signalQmlStopLinkerPrograme();
|
|
|
|
private:
|
|
QProcess *m_pCmd = nullptr;
|
|
};
|
|
|
|
#endif // BCIMANAGER_H
|