8#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 QVector<QSharedPointer<FirewallSoftware>> mDetectedFirewalls;
85 QVector<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);
121 return mFirstFirewallRuleExists;
127 return mFirstFirewallRuleEnabled;
133 return mSecondFirewallRuleExists;
139 return mSecondFirewallRuleEnabled;
145 return mFirewallProfiles;
151 return mDetectedFirewalls;
Definition: DiagnosisFirewallDetection.h:75
void startDetection()
Definition: DiagnosisFirewallDetection.cpp:308
const QVector< QSharedPointer< FirewallSoftware > > & getDetectedFirewalls() const
Definition: DiagnosisFirewallDetection.h:149
void fireDetectionFailed()
bool getFirstRuleEnabled() const
Definition: DiagnosisFirewallDetection.h:125
bool getSecondRuleEnabled() const
Definition: DiagnosisFirewallDetection.h:137
DiagnosisFirewallDetection()
Definition: DiagnosisFirewallDetection.cpp:286
const QVector< QSharedPointer< FirewallProfile > > & getFirewallProfiles() const
Definition: DiagnosisFirewallDetection.h:143
bool getSecondRuleExists() const
Definition: DiagnosisFirewallDetection.h:131
bool getFirstRuleExists() const
Definition: DiagnosisFirewallDetection.h:119
void fireFirewallInformationReady()
Definition: DiagnosisFirewallDetection.h:21
FirewallProfile(const QString &pName, bool pEnabled)
Definition: DiagnosisFirewallDetection.cpp:399
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:391
bool getEnabled() const
Definition: DiagnosisFirewallDetection.h:59
const QString & getName() const
Definition: DiagnosisFirewallDetection.h:53
bool getUpToDate() const
Definition: DiagnosisFirewallDetection.h:65
A simple template renderer.
Definition: ActivationContext.h:15