From 3253d99365813f2d2ffd05e10cbb8c11f53d746e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 22 Mar 2017 06:39:17 +0100 Subject: New upstream version 0.26.0 --- src/photos/PhotoFileAdapter.vala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/photos/PhotoFileAdapter.vala') diff --git a/src/photos/PhotoFileAdapter.vala b/src/photos/PhotoFileAdapter.vala index 644917c..df49edb 100644 --- a/src/photos/PhotoFileAdapter.vala +++ b/src/photos/PhotoFileAdapter.vala @@ -57,6 +57,13 @@ public abstract class PhotoFileAdapter { // public abstract class PhotoFileReader : PhotoFileAdapter { + public enum Role { + DEFAULT, + THUMBNAIL + } + + PhotoFileReader.Role role = Role.DEFAULT; + protected PhotoFileReader(string filepath, PhotoFileFormat file_format) { base (filepath, file_format); } @@ -76,6 +83,14 @@ public abstract class PhotoFileReader : PhotoFileAdapter { public virtual Gdk.Pixbuf scaled_read(Dimensions full, Dimensions scaled) throws Error { return resize_pixbuf(unscaled_read(), scaled, Gdk.InterpType.BILINEAR); } + + public void set_role (PhotoFileReader.Role role) { + this.role = role; + } + + public PhotoFileReader.Role get_role () { + return this.role; + } } // -- cgit v1.2.3