From 69eea5848bb2d059e12eee2d4942c9475362f668 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Thu, 25 Dec 2008 11:59:37 +0000 Subject: [PATCH] No need to keep the keys in the TrackerItem class. svn path=/trunk/; revision=367 --- src/plugins/tracker/rygel-tracker-image-item.vala | 19 +++++++++---------- src/plugins/tracker/rygel-tracker-item.vala | 2 -- src/plugins/tracker/rygel-tracker-music-item.vala | 19 +++++++++---------- src/plugins/tracker/rygel-tracker-video-item.vala | 15 +++++++-------- 4 files changed, 25 insertions(+), 30 deletions(-) diff --git a/src/plugins/tracker/rygel-tracker-image-item.vala b/src/plugins/tracker/rygel-tracker-image-item.vala index dacbf21..7337f83 100644 --- a/src/plugins/tracker/rygel-tracker-image-item.vala +++ b/src/plugins/tracker/rygel-tracker-image-item.vala @@ -34,20 +34,19 @@ public class Rygel.TrackerImageItem : TrackerItem { public TrackerImageItem (string id, string path, TrackerContainer parent) throws GLib.Error { - keys = new string[] {"File:Name", - "File:Mime", - "Image:Title", - "Image:Creator", - "Image:Width", - "Image:Height", - "Image:Album", - "Image:Date", - "DC:Date"}; - base (id, path, parent); } public override void fetch_metadata () throws GLib.Error { + string[] keys = new string[] {"File:Name", + "File:Mime", + "Image:Title", + "Image:Creator", + "Image:Width", + "Image:Height", + "Image:Album", + "Image:Date", + "DC:Date"}; string[] values = null; /* TODO: make this async */ diff --git a/src/plugins/tracker/rygel-tracker-item.vala b/src/plugins/tracker/rygel-tracker-item.vala index 6f637fc..2e6c855 100644 --- a/src/plugins/tracker/rygel-tracker-item.vala +++ b/src/plugins/tracker/rygel-tracker-item.vala @@ -34,8 +34,6 @@ public abstract class Rygel.TrackerItem : MediaItem { protected TrackerContainer parent; protected string path; - protected string[] keys; - public TrackerItem (string id, string path, TrackerContainer parent) throws GLib.Error { diff --git a/src/plugins/tracker/rygel-tracker-music-item.vala b/src/plugins/tracker/rygel-tracker-music-item.vala index 4d5fe1c..ed29715 100644 --- a/src/plugins/tracker/rygel-tracker-music-item.vala +++ b/src/plugins/tracker/rygel-tracker-music-item.vala @@ -34,20 +34,19 @@ public class Rygel.TrackerMusicItem : TrackerItem { public TrackerMusicItem (string id, string path, TrackerContainer parent) throws GLib.Error { - keys = new string[] {"File:Name", - "File:Mime", - "Audio:Title", - "Audio:Artist", - "Audio:TrackNo", - "Audio:Album", - "Audio:ReleaseDate", - "Audio:DateAdded", - "DC:Date"}; - base (id, path, parent); } public override void fetch_metadata () throws GLib.Error { + string[] keys = new string[] {"File:Name", + "File:Mime", + "Audio:Title", + "Audio:Artist", + "Audio:TrackNo", + "Audio:Album", + "Audio:ReleaseDate", + "Audio:DateAdded", + "DC:Date"}; string[] values = null; /* TODO: make this async */ diff --git a/src/plugins/tracker/rygel-tracker-video-item.vala b/src/plugins/tracker/rygel-tracker-video-item.vala index 90c1304..5bcb24f 100644 --- a/src/plugins/tracker/rygel-tracker-video-item.vala +++ b/src/plugins/tracker/rygel-tracker-video-item.vala @@ -34,18 +34,17 @@ public class Rygel.TrackerVideoItem : TrackerItem { public TrackerVideoItem (string id, string path, TrackerContainer parent) throws GLib.Error { - keys = new string[] {"File:Name", - "File:Mime", - "Video:Title", - "Video:Author", - "Video:Width", - "Video:Height", - "DC:Date"}; - base (id, path, parent); } public override void fetch_metadata () throws GLib.Error { + string[] keys = new string[] {"File:Name", + "File:Mime", + "Video:Title", + "Video:Author", + "Video:Width", + "Video:Height", + "DC:Date"}; string[] values = null; /* TODO: make this async */ -- 2.7.4