rygel r85 - in trunk: . src
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r85 - in trunk: . src
- Date: Tue, 28 Oct 2008 20:59:55 +0000 (UTC)
Author: zeeshanak
Date: Tue Oct 28 20:59:55 2008
New Revision: 85
URL: http://svn.gnome.org/viewvc/rygel?rev=85&view=rev
Log:
Implement "SearchCapabilities" and "SortCapabilities" related queries and actions.
Modified:
trunk/ChangeLog
trunk/src/gupnp-content-directory.vala
Modified: trunk/src/gupnp-content-directory.vala
==============================================================================
--- trunk/src/gupnp-content-directory.vala (original)
+++ trunk/src/gupnp-content-directory.vala Tue Oct 28 20:59:55 2008
@@ -41,6 +41,18 @@
this.action_invoked["GetSystemUpdateID"] +=
this.get_system_update_id_cb;
this.query_variable["SystemUpdateID"] += this.query_system_update_id;
+
+ /* Connect SearchCapabilities related signals */
+ this.action_invoked["GetSearchCapabilities"] +=
+ this.get_search_capabilities_cb;
+ this.query_variable["SearchCapabilities"] +=
+ this.query_search_capabilities;
+
+ /* Connect SortCapabilities related signals */
+ this.action_invoked["GetSortCapabilities"] +=
+ this.get_sort_capabilities_cb;
+ this.query_variable["SortCapabilities"] +=
+ this.query_sort_capabilities;
}
/* Browse action implementation */
@@ -137,5 +149,41 @@
value.init (typeof (uint32));
value.set_uint (this.system_update_id);
}
+
+ /* action GetSearchCapabilities implementation */
+ private void get_search_capabilities_cb (ContentDirectory content_dir,
+ ServiceAction action) {
+ /* Set action return arguments */
+ action.set ("SearchCaps", typeof (string), "");
+
+ action.return ();
+ }
+
+ /* Query SearchCapabilities */
+ private void query_search_capabilities (ContentDirectory content_dir,
+ string variable,
+ GLib.Value value) {
+ /* Set action return arguments */
+ value.init (typeof (string));
+ value.set_string ("");
+ }
+
+ /* action GetSortCapabilities implementation */
+ private void get_sort_capabilities_cb (ContentDirectory content_dir,
+ ServiceAction action) {
+ /* Set action return arguments */
+ action.set ("SortCaps", typeof (string), "");
+
+ action.return ();
+ }
+
+ /* Query SortCapabilities */
+ private void query_sort_capabilities (ContentDirectory content_dir,
+ string variable,
+ GLib.Value value) {
+ /* Set action return arguments */
+ value.init (typeof (string));
+ value.set_string ("");
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]