[yast-commit] r49130 - in /trunk/firewall: package/yast2-firewall.changes src/SuSEFirewallCMDLine.ycp
Author: locilka
Date: Tue Jul 15 19:10:31 2008
New Revision: 49130
URL: http://svn.opensuse.org/viewcvs/yast?rev=49130&view=rev
Log:
- Added SuSEFirewallCMDLine documentation.
Modified:
trunk/firewall/package/yast2-firewall.changes
trunk/firewall/src/SuSEFirewallCMDLine.ycp
Modified: trunk/firewall/package/yast2-firewall.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/firewall/package/yast2-firewall.changes?rev=49130&r1=49129&r2=49130&view=diff
==============================================================================
--- trunk/firewall/package/yast2-firewall.changes (original)
+++ trunk/firewall/package/yast2-firewall.changes Tue Jul 15 19:10:31 2008
@@ -3,7 +3,9 @@
- SuSEFirewallUI and SuSEFirewallCMDLine YCP modules marked as
internal.
+- Added SuSEFirewallCMDLine documentation.
- Using [Cancel] instead of [Abort].
+- 2.17.1
-------------------------------------------------------------------
Tue Jul 8 11:30:47 CEST 2008 - locilka@suse.cz
Modified: trunk/firewall/src/SuSEFirewallCMDLine.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/firewall/src/SuSEFirewallCMDLine.ycp?rev=49130&r1=49129&r2=49130&view=diff
==============================================================================
--- trunk/firewall/src/SuSEFirewallCMDLine.ycp (original)
+++ trunk/firewall/src/SuSEFirewallCMDLine.ycp Tue Jul 15 19:10:31 2008
@@ -26,6 +26,12 @@
include "firewall/summary.ycp";
include "firewall/generalfunctions.ycp";
+ /**
+ * Returns list of strings made from the comma-separated string got as param.
+ *
+ * @param any comma_separated_string
+ * @return list <string> items
+ */
list <string> CommaSeparatedList(any comma_separated_string) {
return splitstring((string) comma_separated_string, ",");
}
@@ -60,6 +66,9 @@
}
}
+ /**
+ * Function prints table of known firewall zones
+ */
void ListFirewallZones () {
CommandLine::Print("");
// TRANSLATORS: CommandLine header
@@ -84,6 +93,11 @@
CommandLine::Print("");
}
+ /**
+ * Calls ListFirewallZones
+ *
+ * @return boolean always false
+ */
boolean FWCMDZones (map options) {
// listing known zones
if (options["list"]:nil != nil) {
@@ -94,6 +108,12 @@
return false;
}
+ /**
+ * Prints firewall summary for zones
+ *
+ * @param map options
+ * @return boolean always false
+ */
boolean FWCMDSummary (map options) {
// printing summary
@@ -118,6 +138,11 @@
return false;
}
+ /**
+ * Sets startup details
+ *
+ * @return boolean always true
+ */
boolean FWCMDStartup (map options) {
if (options["atboot"]:nil!=nil && options["manual"]:nil!=nil) {
// TRANSLATORS: CommandLine error message
@@ -158,6 +183,12 @@
return true;
}
+ /**
+ * Sets network interface assignment
+ *
+ * @param map options
+ * @return boolean whether write call is needed
+ */
boolean FWCMDInterfaces (map options) {
list <string> unassigned_interfaces = [];
map
participants (1)
-
locilka@svn.opensuse.org