From c9b919ebab31b0568f6835e32beb143873b8b1f3 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Wed, 23 Dec 2009 15:51:38 +0200 Subject: [PATCH] tracker: Bind Resources.Class D-Bus interface --- src/plugins/tracker/rygel-tracker-interfaces.vala | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/plugins/tracker/rygel-tracker-interfaces.vala b/src/plugins/tracker/rygel-tracker-interfaces.vala index 7b9bb3c..dda79e3 100644 --- a/src/plugins/tracker/rygel-tracker-interfaces.vala +++ b/src/plugins/tracker/rygel-tracker-interfaces.vala @@ -33,3 +33,22 @@ public interface Rygel.TrackerResourcesIface: DBus.Object { public abstract async string[,] sparql_query (string query) throws DBus.Error; } + +[DBus (name = "org.freedesktop.Tracker1.Resources.Class")] +public interface Rygel.TrackerResourcesClassIface: DBus.Object { + public abstract signal void subjects_added (string[] subjects); + public abstract signal void subjects_removed (string[] subjects); + public abstract signal void subjects_changed (string[] before, + string[] after); +} + +namespace Rygel { + public const string RESOURCES_CLASS_PATH = "/org/freedesktop/Tracker1/" + + "Resources/Classes/"; + public const string MUSIC_RESOURCES_CLASS_PATH = RESOURCES_CLASS_PATH + + "nmm/MusicPiece"; + public const string VIDEO_RESOURCES_CLASS_PATH = RESOURCES_CLASS_PATH + + "nmm/Video"; + public const string PHOTO_RESOURCES_CLASS_PATH = RESOURCES_CLASS_PATH + + "nfo/Image"; +} -- 2.7.4