8 #include <QSharedPointer> 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;
void startDetection()
Definition: DiagnosisFirewallDetection.cpp:286
bool getFirstRuleEnabled() const
Definition: DiagnosisFirewallDetection.h:119
bool getFirstRuleExists() const
Definition: DiagnosisFirewallDetection.h:113
Definition: DiagnosisFirewallDetection.h:42
FirewallSoftware(const QString &pName, bool pEnabled, bool pUpToDate)
Definition: DiagnosisFirewallDetection.cpp:369
DiagnosisFirewallDetection()
Definition: DiagnosisFirewallDetection.cpp:264
Definition: DiagnosisFirewallDetection.h:72
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:14
bool getSecondRuleEnabled() const
Definition: DiagnosisFirewallDetection.h:131
bool getEnabled() const
Definition: DiagnosisFirewallDetection.h:58
bool getUpToDate() const
Definition: DiagnosisFirewallDetection.h:64
const QString & getName() const
Definition: DiagnosisFirewallDetection.h:28
const QString & getName() const
Definition: DiagnosisFirewallDetection.h:52
void fireDetectionFailed()
const QVector< QSharedPointer< FirewallProfile > > & getFirewallProfiles() const
Definition: DiagnosisFirewallDetection.h:137
void fireFirewallInformationReady()
Definition: DiagnosisFirewallDetection.h:19
const QVector< QSharedPointer< FirewallSoftware > > & getDetectedFirewalls() const
Definition: DiagnosisFirewallDetection.h:143
FirewallProfile(const QString &pName, bool pEnabled)
Definition: DiagnosisFirewallDetection.cpp:377
bool getEnabled() const
Definition: DiagnosisFirewallDetection.h:34
bool getSecondRuleExists() const
Definition: DiagnosisFirewallDetection.h:125