9#include <QSharedPointer>
15class test_DiagnosisFirewallDetection;
29 [[nodiscard]]
const QString&
getName()
const
53 [[nodiscard]]
const QString&
getName()
const
77 friend class ::test_DiagnosisFirewallDetection;
80 bool mFirstFirewallRuleExists;
81 bool mFirstFirewallRuleEnabled;
82 bool mSecondFirewallRuleExists;
83 bool mSecondFirewallRuleEnabled;
84 QList<QSharedPointer<FirewallSoftware>> mDetectedFirewalls;
85 QList<QSharedPointer<FirewallProfile>> mFirewallProfiles;
90 bool mInstalledFirewallsDone;
93 QProcess mFirewallFirstRuleProcess;
94 QProcess mFirewallSecondRuleProcess;
95 QProcess mFirewallProfilesProcess;
96 QProcess mInstalledFirewallSoftwareProcess;
98 void checkIfAllInformationReady();
99 void parseFirewallFirstRuleInfos(
const QString& pFirewallFirstRuleInfos);
100 void parseFirewallSecondRuleInfos(
const QString& pFirewallSecondRuleInfos);
101 void parseFirewallProfileInfos(
const QString& pFirewallProfileInfos);
102 void parseFirewallSoftwareInfos(
const QString& pFirewallSoftwareInfos);
105 void onFirstRuleDone(
int exitCode, QProcess::ExitStatus exitStatus);
106 void onFirstRuleError(QProcess::ProcessError pError);
107 void onSecondRuleDone(
int exitCode, QProcess::ExitStatus exitStatus);
108 void onSecondRuleError(QProcess::ProcessError pError);
109 void onProfilesDone(
int exitCode, QProcess::ExitStatus exitStatus);
110 void onProfilesError(QProcess::ProcessError pError);
111 void onInstalledFirewallSoftwareDone(
int exitCode, QProcess::ExitStatus exitStatus);
112 void onInstalledFirewallSoftwareError(QProcess::ProcessError pError);
130 return mFirstFirewallRuleExists;
136 return mFirstFirewallRuleEnabled;
142 return mSecondFirewallRuleExists;
148 return mSecondFirewallRuleEnabled;
154 return mFirewallProfiles;
160 return mDetectedFirewalls;
Definition DiagnosisFirewallDetection.h:75
void fireDetectionFailed()
bool getFirstRuleEnabled() const
Definition DiagnosisFirewallDetection.h:134
bool getSecondRuleEnabled() const
Definition DiagnosisFirewallDetection.h:146
void startDetection() const
Definition DiagnosisFirewallDetection.h:121
const QList< QSharedPointer< FirewallSoftware > > & getDetectedFirewalls() const
Definition DiagnosisFirewallDetection.h:158
const QList< QSharedPointer< FirewallProfile > > & getFirewallProfiles() const
Definition DiagnosisFirewallDetection.h:152
DiagnosisFirewallDetection()
Definition DiagnosisFirewallDetection.cpp:281
bool getSecondRuleExists() const
Definition DiagnosisFirewallDetection.h:140
bool getFirstRuleExists() const
Definition DiagnosisFirewallDetection.h:128
void fireFirewallInformationReady()
Definition DiagnosisFirewallDetection.h:21
FirewallProfile(const QString &pName, bool pEnabled)
Definition DiagnosisFirewallDetection.cpp:377
const QString & getName() const
Definition DiagnosisFirewallDetection.h:29
bool getEnabled() const
Definition DiagnosisFirewallDetection.h:35
Definition DiagnosisFirewallDetection.h:44
FirewallSoftware(const QString &pName, bool pEnabled, bool pUpToDate)
Definition DiagnosisFirewallDetection.cpp:369
bool getEnabled() const
Definition DiagnosisFirewallDetection.h:59
const QString & getName() const
Definition DiagnosisFirewallDetection.h:53
bool getUpToDate() const
Definition DiagnosisFirewallDetection.h:65
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17