Provide GConf schemas
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 25 May 2009 14:43:34 +0000 (17:43 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 25 May 2009 14:43:34 +0000 (17:43 +0300)
configure.ac
data/Makefile.am
data/rygel.schemas [new file with mode: 0644]

index 2daf888..367155f 100644 (file)
@@ -83,6 +83,9 @@ AC_CHECK_FILE("${VAPIDIR}/gee-1.0.vapi",
         true,
         [AC_MSG_ERROR("Unable to find Vala bindings for gee-1.0")])
 
+AC_PATH_PROG(GCONFTOOL, gconftool-2)
+AM_GCONF_SOURCE_2
+
 # glib-genmarshal
 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
 AC_SUBST(GLIB_GENMARSHAL)
index 093ab7c..80f48b5 100644 (file)
@@ -1,9 +1,19 @@
 SUBDIRS = xml
 
+schemadir = @GCONF_SCHEMA_FILE_DIR@
+schema_DATA = rygel.schemas
+
 shareddir = $(datadir)/rygel
 
 if BUILD_UI
 dist_shared_DATA = rygel-preferences.ui
 endif
 
+if GCONF_SCHEMAS_INSTALL
+install-data-local: $(schema_DATA)
+       GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA);
+endif
+
+EXTRA_DIST = $(schema_DATA)
+
 MAINTAINERCLEANFILES = Makefile.in
diff --git a/data/rygel.schemas b/data/rygel.schemas
new file mode 100644 (file)
index 0000000..b18acd5
--- /dev/null
@@ -0,0 +1,136 @@
+<gconfschemafile>
+   <schemalist>
+      <schema>
+        <key>/schemas/apps/rygel/general/enable-transcoding</key>
+        <applyto>/apps/rygel/general/enable-transcoding</applyto>
+        <owner>rygel</owner>
+        <type>bool</type>
+        <default>TRUE</default>
+        <locale name="C">
+       <short>True if transcoding is supposed to be enabled.</short>
+       <long>True if transcoding is supposed to be enabled.</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/rygel/general/enable-mp3-transcoder</key>
+        <applyto>/apps/rygel/general/enable-mp3-transcoder</applyto>
+        <owner>rygel</owner>
+        <type>bool</type>
+        <default>TRUE</default>
+        <locale name="C">
+       <short>True if MP3 transcoding is supposed to be enabled.</short>
+       <long>True if MP3 transcoding is supposed to be enabled.</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/rygel/general/enable-lpcm-transcoder</key>
+        <applyto>/apps/rygel/general/enable-lpcm-transcoder</applyto>
+        <owner>rygel</owner>
+        <type>bool</type>
+        <default>TRUE</default>
+        <locale name="C">
+       <short>True if LPCM transcoding is supposed to be enabled.</short>
+       <long>True if LPCM transcoding is supposed to be enabled.</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/rygel/general/enable-mp2ts-transcoder</key>
+        <applyto>/apps/rygel/general/enable-mp2ts-transcoder</applyto>
+        <owner>rygel</owner>
+        <type>bool</type>
+        <default>TRUE</default>
+        <locale name="C">
+       <short>True if MP2 transport stream transcoding is supposed to be enabled.</short>
+       <long>True if rygel should transcode to mpeg transport stream (mpeg 2 video + mp2 audio).</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/rygel/general/port</key>
+        <applyto>/apps/rygel/general/port</applyto>
+        <owner>rygel</owner>
+        <type>int</type>
+        <default>0</default>
+        <locale name="C">
+       <short>The port to run HTTP server on.</short>
+       <long>The port to run HTTP server on. 0 means dynamic.</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/rygel/general/host-ip</key>
+        <applyto>/apps/rygel/general/host-ip</applyto>
+        <owner>rygel</owner>
+        <type>string</type>
+        <default></default>
+        <locale name="C">
+          <short>The IP of the network interface to attach rygel to.</short>
+          <long>The IP of the network interface to attach rygel to. Leave it blank for dynamic configuration.</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/rygel/Tracker/enabled</key>
+        <applyto>/apps/rygel/Tracker/enabled</applyto>
+        <owner>rygel</owner>
+        <type>bool</type>
+        <default>TRUE</default>
+        <locale name="C">
+          <short>Enable Tracker plugin.</short>
+          <long>Enable Tracker plugin.</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/rygel/Tracker/title</key>
+        <applyto>/apps/rygel/Tracker/title</applyto>
+        <owner>rygel</owner>
+        <type>string</type>
+        <default></default>
+        <locale name="C">
+          <short>The title of this plugin to advertise to UPnP clients.</short>
+          <long>The title of this plugin to advertise to UPnP clients.</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/rygel/Folder/enabled</key>
+        <applyto>/apps/rygel/Folder/enabled</applyto>
+        <owner>rygel</owner>
+        <type>bool</type>
+        <default>TRUE</default>
+        <locale name="C">
+          <short>Enable Folder plugin.</short>
+          <long>Enable Folder plugin.</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/rygel/Folder/title</key>
+        <applyto>/apps/rygel/Folder/title</applyto>
+        <owner>rygel</owner>
+        <type>string</type>
+        <default></default>
+        <locale name="C">
+          <short>The title of this plugin to advertise to UPnP clients.</short>
+          <long>The title of this plugin to advertise to UPnP clients.</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/rygel/DVB/enabled</key>
+        <applyto>/apps/rygel/DVB/enabled</applyto>
+        <owner>rygel</owner>
+        <type>bool</type>
+        <default>TRUE</default>
+        <locale name="C">
+          <short>Enable DVB plugin</short>
+          <long>Enable DVB plugin</long>
+        </locale>
+      </schema>
+      <schema>
+        <key>/schemas/apps/rygel/DVB/title</key>
+        <applyto>/apps/rygel/DVB/title</applyto>
+        <owner>rygel</owner>
+        <type>string</type>
+        <default>Digital TV</default>
+        <locale name="C">
+          <short>The title of this plugin to advertise to UPnP clients.</short>
+          <long>The title of this plugin to advertise to UPnP clients.</long>
+        </locale>
+      </schema>
+    </schemalist>
+</gconfschemafile>