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);
121 return mFirstFirewallRuleExists;
127 return mFirstFirewallRuleEnabled;
133 return mSecondFirewallRuleExists;
139 return mSecondFirewallRuleEnabled;
145 return mFirewallProfiles;
151 return mDetectedFirewalls;