[rygel/config] Add convenience methods to set IP, port and xbox support.



commit 4ef780b529a4f48daa8a991466bd70537a1f2eb5
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Apr 21 18:53:53 2009 +0300

    Add convenience methods to set IP, port and xbox support.
---
 src/ui/rygel-config-editor.vala |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/ui/rygel-config-editor.vala b/src/ui/rygel-config-editor.vala
index 2f0acd9..b989fc9 100644
--- a/src/ui/rygel-config-editor.vala
+++ b/src/ui/rygel-config-editor.vala
@@ -33,6 +33,18 @@ public class Rygel.ConfigEditor : ConfigReader {
         base ();
     }
 
+    public void set_host_ip (string ip) {
+        this.set_string ("general", "host-ip", ip);
+    }
+
+    public void set_port (uint16 port) {
+        this.set_int ("general", "port", port);
+    }
+
+    public void set_enable_xbox (bool enabled) {
+        this.set_bool ("general", "enable-xbox", enabled);
+    }
+
     public void set_title (string section, string title) {
         this.set_string (section, "title", title);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]