refactor: CoreProcess add signal for when the security level text changes
This commit is contained in:
parent
c791135160
commit
07de9efe7c
2 changed files with 6 additions and 1 deletions
|
|
@ -498,7 +498,11 @@ bool CoreProcess::checkSecureSocket(const QString &line)
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_EMIT secureSocket(true);
|
Q_EMIT secureSocket(true);
|
||||||
m_secureSocketVersion = line.mid(index + tlsCheckString.size());
|
if (const auto ssv = line.mid(index + tlsCheckString.size()); ssv != m_secureSocketVersion) {
|
||||||
|
m_secureSocketVersion = ssv;
|
||||||
|
Q_EMIT securityLevelChanged(ssv);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,7 @@ Q_SIGNALS:
|
||||||
void processStateChanged(deskflow::core::ProcessState state);
|
void processStateChanged(deskflow::core::ProcessState state);
|
||||||
void secureSocket(bool enabled);
|
void secureSocket(bool enabled);
|
||||||
void daemonIpcClientConnectionFailed();
|
void daemonIpcClientConnectionFailed();
|
||||||
|
void securityLevelChanged(QString securityLevel);
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void onProcessFinished(int exitCode, QProcess::ExitStatus);
|
void onProcessFinished(int exitCode, QProcess::ExitStatus);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue