From 94607c03efd7654117dc4bf77cb2cc730af0663f Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Mon, 21 Sep 2009 01:24:37 +0300 Subject: [PATCH] tracker: SearchContainer takes keywords SearchContainer allows users to limit the search by keywords. --- src/plugins/tracker/rygel-tracker-search-container.vala | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala index 77ab3e4..d0cf1fd 100644 --- a/src/plugins/tracker/rygel-tracker-search-container.vala +++ b/src/plugins/tracker/rygel-tracker-search-container.vala @@ -46,16 +46,20 @@ public class Rygel.TrackerSearchContainer : Rygel.MediaContainer { public string query_condition; + public string[] keywords; + Gee.List results; public TrackerSearchContainer (string id, MediaContainer parent, string title, string service, - string? query_condition) { + string? query_condition, + string[] keywords = new string[0]) { base (id, parent, title, 0); this.service = service; + this.keywords = keywords; if (query_condition != null) { this.query_condition = query_condition; @@ -86,7 +90,7 @@ public class Rygel.TrackerSearchContainer : Rygel.MediaContainer { this.service, new string[0], "", - new string[0], + this.keywords, this.query_condition, false, new string[0], @@ -130,7 +134,7 @@ public class Rygel.TrackerSearchContainer : Rygel.MediaContainer { this.service, TrackerItem.get_metadata_keys (), "", - new string[0], + this.keywords, this.query_condition, false, new string[0], -- 2.7.4