diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-01-30 20:39:12 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-01-30 20:39:12 +0000 |
| commit | a1839a88ab0cffdf04737dae783c21f27f65d491 (patch) | |
| tree | d29b528c385a591a4bd46e1da23be6e4aae255a5 /src/lib/film.h | |
| parent | 4e617f7dee7b4b78555ca3e80e77d26d4fa8f884 (diff) | |
Add a PlaylistOrderChanged signal and emit it when the playlist
is sorted. Do playlist sorting when content position / length etc.
changes. Handle sorts better when comparing content at the same
position.
Diffstat (limited to 'src/lib/film.h')
| -rw-r--r-- | src/lib/film.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/film.h b/src/lib/film.h index 17bdd09eb..2fb3e810b 100644 --- a/src/lib/film.h +++ b/src/lib/film.h @@ -163,6 +163,8 @@ public: USE_ISDCF_NAME, /** The playlist's content list has changed (i.e. content has been added or removed) */ CONTENT, + /** The order of content in the playlist has changed */ + CONTENT_ORDER, DCP_CONTENT_TYPE, CONTAINER, RESOLUTION, @@ -309,6 +311,7 @@ private: void signal_changed (Property); std::string video_identifier () const; void playlist_changed (); + void playlist_order_changed (); void playlist_content_changed (boost::weak_ptr<Content>, int, bool frequent); void maybe_add_content (boost::weak_ptr<Job>, boost::weak_ptr<Content>); void audio_analysis_finished (); @@ -362,6 +365,7 @@ private: mutable bool _dirty; boost::signals2::scoped_connection _playlist_changed_connection; + boost::signals2::scoped_connection _playlist_order_changed_connection; boost::signals2::scoped_connection _playlist_content_changed_connection; std::list<boost::signals2::connection> _job_connections; std::list<boost::signals2::connection> _audio_analysis_connections; |
