Repository :
http://git.fedorahosted.org/cgit/firewalld-recode.git
On branch : master
---------------------------------------------------------------
commit 87c08d7ec581473e09454f53159b5031defb7b37
Author: Daniel Kopecek <dkopecek(a)redhat.com>
Date: Tue Oct 7 10:25:52 2014 +0200
Added description, target and version getter methods to the Zone class
---------------------------------------------------------------
src/Daemon/Firewall/Zone.cpp | 15 +++++++++++++++
src/Daemon/Firewall/Zone.hpp | 5 +++++
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/src/Daemon/Firewall/Zone.cpp b/src/Daemon/Firewall/Zone.cpp
index 2fc5610..9c179c1 100644
--- a/src/Daemon/Firewall/Zone.cpp
+++ b/src/Daemon/Firewall/Zone.cpp
@@ -47,6 +47,21 @@ namespace firewalld
return _identifier;
}
+ const UString& Zone::description() const
+ {
+ return _description;
+ }
+
+ const UString& Zone::target() const
+ {
+ return _target;
+ }
+
+ const UString& Zone::version() const
+ {
+ return _version;
+ }
+
bool Zone::isActive() const
{
// An active zone is a zone that has
diff --git a/src/Daemon/Firewall/Zone.hpp b/src/Daemon/Firewall/Zone.hpp
index bbaf129..410b6b0 100644
--- a/src/Daemon/Firewall/Zone.hpp
+++ b/src/Daemon/Firewall/Zone.hpp
@@ -53,6 +53,10 @@ namespace firewalld
const UString& name() const;
const UString& identifier() const;
+ const UString& description() const;
+ const UString& target() const;
+ const UString& version() const;
+
bool isActive() const;
UStringVector getAllInterfaceIdentifiers() const;
@@ -117,6 +121,7 @@ namespace firewalld
UString _identifier;
UString _name;
UString _description;
+ UString _version;
// Zone target
UString _target;