summaryrefslogtreecommitdiff
path: root/client/Proxifier.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/Proxifier.h')
-rw-r--r--client/Proxifier.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/client/Proxifier.h b/client/Proxifier.h
index 112bc90..9d5b316 100644
--- a/client/Proxifier.h
+++ b/client/Proxifier.h
@@ -7,6 +7,7 @@
#include <string>
#include <QDomElement>
#include <QString>
+#include "Config.h"
#include "Proxy.h"
@@ -67,7 +68,13 @@ public:
* send all traffic directly to servers
*/
bool TurnProxyOff(Proxy& proxy);
-
+ /**
+ * @brief apply firewall rules
+ * @param rules firewall rules to apply
+ * @return true on success or false otherwise
+ * @note all existing rules will be overwritten
+ */
+ bool ApplyFirewallRules(vector<Config::FirewallEntry> rules);
private:
/**
* @brief class representing Proxifier's proxy setting
@@ -152,6 +159,10 @@ private:
*/
static string defaultRule;
/**
+ * @brief default firewall rule name
+ */
+ static string firewallRule;
+ /**
* @brief pointer to sigleton instance
*/
static Proxifier *instance;