diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 09:06:59 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 09:06:59 +0200 |
commit | 4ea2cc3bd4a7d9b1c54a9d33e6a1cf82e7c8c21d (patch) | |
tree | d2e54377d14d604356c86862a326f64ae64dadd6 /src/core/DataViewTypes.vala |
Imported Upstream version 0.18.1upstream/0.18.1
Diffstat (limited to 'src/core/DataViewTypes.vala')
-rw-r--r-- | src/core/DataViewTypes.vala | 50 |
1 files changed, 50 insertions, 0 deletions
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(); + } +} + |