Wireguard protocol + refactoring

This commit is contained in:
pokamest 2021-06-12 11:59:36 +03:00
parent 8bdfe1741a
commit 2f6fb0d557
41 changed files with 1245 additions and 152 deletions

View file

@ -7,6 +7,7 @@ IpcServerProcess::IpcServerProcess(QObject *parent) :
{
connect(m_process.data(), &QProcess::errorOccurred, this, &IpcServerProcess::errorOccurred);
connect(m_process.data(), QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), this, &IpcServerProcess::finished);
connect(m_process.data(), &QProcess::readyRead, this, &IpcServerProcess::readyRead);
connect(m_process.data(), &QProcess::readyReadStandardError, this, &IpcServerProcess::readyReadStandardError);
connect(m_process.data(), &QProcess::readyReadStandardOutput, this, &IpcServerProcess::readyReadStandardOutput);
connect(m_process.data(), &QProcess::started, this, &IpcServerProcess::started);
@ -88,6 +89,11 @@ void IpcServerProcess::setWorkingDirectory(const QString &dir)
m_process->setWorkingDirectory(dir);
}
QByteArray IpcServerProcess::readAll()
{
return m_process->readAll();
}
QByteArray IpcServerProcess::readAllStandardError()
{
return m_process->readAllStandardError();