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;