8 #include <QSharedPointer>
28 [[nodiscard]]
const QString&
getName()
const
52 [[nodiscard]]
const QString&
getName()
const
78 bool mFirstFirewallRuleExists;
79 bool mFirstFirewallRuleEnabled;
80 bool mSecondFirewallRuleExists;
81 bool mSecondFirewallRuleEnabled;
82 QVector<QSharedPointer<FirewallSoftware>> mDetectedFirewalls;
83 QVector<QSharedPointer<FirewallProfile>> mFirewallProfiles;
88 bool mInstalledFirewallsDone;
91 QProcess mFirewallFirstRuleProcess;
92 QProcess mFirewallSecondRuleProcess;
93 QProcess mFirewallProfilesProcess;
94 QProcess mInstalledFirewallSoftwareProcess;
96 void checkIfAllInformationReady();
99 void onFirstRuleDone(
int exitCode, QProcess::ExitStatus exitStatus);
100 void onFirstRuleError(QProcess::ProcessError pError);
101 void onSecondRuleDone(
int exitCode, QProcess::ExitStatus exitStatus);
102 void onSecondRuleError(QProcess::ProcessError pError);
103 void onProfilesDone(
int exitCode, QProcess::ExitStatus exitStatus);
104 void onProfilesError(QProcess::ProcessError pError);
105 void onInstalledFirewallSoftwareDone(
int exitCode, QProcess::ExitStatus exitStatus);
106 void onInstalledFirewallSoftwareError(QProcess::ProcessError pError);
115 return mFirstFirewallRuleExists;
121 return mFirstFirewallRuleEnabled;
127 return mSecondFirewallRuleExists;
133 return mSecondFirewallRuleEnabled;
139 return mFirewallProfiles;
145 return mDetectedFirewalls;