From: Zeeshan Ali (Khattak) Date: Sun, 20 Sep 2009 22:24:37 +0000 (+0300) Subject: tracker: SearchContainer takes keywords X-Git-Tag: RYGEL_0_4~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94607c03efd7654117dc4bf77cb2cc730af0663f;p=profile%2Fivi%2Frygel.git tracker: SearchContainer takes keywords SearchContainer allows users to limit the search by keywords. --- 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],