From 88cb83e636f336f8163309fe9845b4e9da97a1d0 Mon Sep 17 00:00:00 2001 From: fgerlits Date: Mon, 8 Nov 2004 09:39:16 +0000 Subject: [PATCH] added openForPlaying() and closeForPlaying() methods to Playlist class --- .../core/include/LiveSupport/Core/Playlist.h | 18 +++++++++++++-- livesupport/modules/core/src/Playlist.cxx | 23 ++++++++++++++++++- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/livesupport/modules/core/include/LiveSupport/Core/Playlist.h b/livesupport/modules/core/include/LiveSupport/Core/Playlist.h index 9de29d1a7..98527b215 100644 --- a/livesupport/modules/core/include/LiveSupport/Core/Playlist.h +++ b/livesupport/modules/core/include/LiveSupport/Core/Playlist.h @@ -22,7 +22,7 @@ Author : $Author: fgerlits $ - Version : $Revision: 1.10 $ + Version : $Revision: 1.11 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/include/LiveSupport/Core/Playlist.h,v $ ------------------------------------------------------------------------------*/ @@ -71,7 +71,7 @@ using namespace boost::posix_time; * the playlist. * * @author $Author: fgerlits $ - * @version $Revision: 1.10 $ + * @version $Revision: 1.11 $ */ class Playlist : public Configurable { @@ -375,6 +375,20 @@ class Playlist : public Configurable */ Ptr::Ref toSmil(void) const throw (std::logic_error); + + /** + * Open for playing. + */ + + Ptr::Ref + openForPlaying(void) const throw (std::logic_error); + + /** + * Close after playing. + */ + + void + closeForPlaying(void) const throw (std::logic_error); }; diff --git a/livesupport/modules/core/src/Playlist.cxx b/livesupport/modules/core/src/Playlist.cxx index 7cfb9a2ce..39fcf094d 100644 --- a/livesupport/modules/core/src/Playlist.cxx +++ b/livesupport/modules/core/src/Playlist.cxx @@ -22,7 +22,7 @@ Author : $Author: fgerlits $ - Version : $Revision: 1.9 $ + Version : $Revision: 1.10 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/src/Playlist.cxx,v $ ------------------------------------------------------------------------------*/ @@ -405,3 +405,24 @@ Playlist::toSmil(void) const throw (std::logic_error) return smilDocument; } + + +/*------------------------------------------------------------------------------ + * Open for playing. + *----------------------------------------------------------------------------*/ +Ptr::Ref +Playlist :: openForPlaying(void) const throw (std::logic_error) +{ + Ptr::Ref returnValue(new std::string("/tmp/somefile.xml")); + return returnValue; +} + + +/*------------------------------------------------------------------------------ + * Close after playing. + *----------------------------------------------------------------------------*/ +void +Playlist :: closeForPlaying(void) const throw (std::logic_error) +{ +} +