summaryrefslogtreecommitdiff
path: root/tumbler/tumbler-thumbnailer.h
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2009-05-18 05:12:38 +0200
committerJannis Pohlmann <jannis@xfce.org>2009-05-18 05:12:38 +0200
commita66781a82678305cee2566f72cb0ea2c34667871 (patch)
tree3c30807ca0ff693b2ecf483747351a08c1ab45dd /tumbler/tumbler-thumbnailer.h
parent74dfcce3515f3e9852570a1a01faa5d997c63f6d (diff)
downloadtumbler-a66781a82678305cee2566f72cb0ea2c34667871.tar.gz
Improve TumblerThumbnailer and add TumblerSpecializedThumbnailer.
Add new properties "uri-schemes" and "hash-keys" to TumblerThumbnailer and add getter functions for all TumblerThumbnailer properties. Add URI schemes parameter to the TumblerBuiltinThumbnailer constructor and compute hash keys for built-in thumbnailers based on the provided URI schemes and mime types. Adds TumblerSpecializedThumbnailer which is created for each thumbnailer either found in $XDG_DATA_DIRS/thumbnailers/ or registered dynamically via org.freedesktop.thumbnailer.Manager.Register(). Internally it uses a DBusGProxy to talk to the specialized thumbnailer service. Add a GMutex to TumblerManager and lock all functions for now. Implement the Register() method which creates a new TumblerSpecializedThumbnailer and adds it to the registry.
Diffstat (limited to 'tumbler/tumbler-thumbnailer.h')
-rw-r--r--tumbler/tumbler-thumbnailer.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/tumbler/tumbler-thumbnailer.h b/tumbler/tumbler-thumbnailer.h
index 2301471..c5eec08 100644
--- a/tumbler/tumbler-thumbnailer.h
+++ b/tumbler/tumbler-thumbnailer.h
@@ -51,11 +51,15 @@ struct _TumblerThumbnailerIface
const gchar *mime_hint);
};
-GType tumbler_thumbnailer_get_type (void) G_GNUC_CONST;
+GType tumbler_thumbnailer_get_type (void) G_GNUC_CONST;
-void tumbler_thumbnailer_create (TumblerThumbnailer *thumbnailer,
- const gchar *uri,
- const gchar *mime_hint);
+void tumbler_thumbnailer_create (TumblerThumbnailer *thumbnailer,
+ const gchar *uri,
+ const gchar *mime_hint);
+
+GStrv tumbler_thumbnailer_get_hash_keys (TumblerThumbnailer *thumbnailer);
+GStrv tumbler_thumbnailer_get_mime_types (TumblerThumbnailer *thumbnailer);
+GStrv tumbler_thumbnailer_get_uri_schemes (TumblerThumbnailer *thumbnailer);
G_END_DECLS