From 4ea2cc3bd4a7d9b1c54a9d33e6a1cf82e7c8c21d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 23 Jul 2014 09:06:59 +0200 Subject: Imported Upstream version 0.18.1 --- src/core/DataViewTypes.vala | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/core/DataViewTypes.vala (limited to 'src/core/DataViewTypes.vala') diff --git a/src/core/DataViewTypes.vala b/src/core/DataViewTypes.vala new file mode 100644 index 0000000..fac7602 --- /dev/null +++ b/src/core/DataViewTypes.vala @@ -0,0 +1,50 @@ +/* Copyright 2011-2014 Yorba Foundation + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +public class ThumbnailView : DataView { + public virtual signal void thumbnail_altered() { + } + + public ThumbnailView(ThumbnailSource source) { + base(source); + } + + public virtual void notify_thumbnail_altered() { + // fire signal on self + thumbnail_altered(); + } +} + +public class PhotoView : ThumbnailView { + public PhotoView(PhotoSource source) { + base(source); + } + + public PhotoSource get_photo_source() { + return (PhotoSource) get_source(); + } +} + +public class VideoView : ThumbnailView { + public VideoView(VideoSource source) { + base(source); + } + + public VideoSource get_video_source() { + return (VideoSource) get_source(); + } +} + +public class EventView : ThumbnailView { + public EventView(EventSource source) { + base(source); + } + + public EventSource get_event_source() { + return (EventSource) get_source(); + } +} + -- cgit v1.2.3