added openForPlaying() and closeForPlaying() methods to Playlist class

This commit is contained in:
fgerlits 2004-11-08 09:39:16 +00:00
parent d0645cb6ee
commit 88cb83e636
2 changed files with 38 additions and 3 deletions

View File

@ -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<xmlpp::Document>::Ref
toSmil(void) const throw (std::logic_error);
/**
* Open for playing.
*/
Ptr<std::string>::Ref
openForPlaying(void) const throw (std::logic_error);
/**
* Close after playing.
*/
void
closeForPlaying(void) const throw (std::logic_error);
};

View File

@ -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<std::string>::Ref
Playlist :: openForPlaying(void) const throw (std::logic_error)
{
Ptr<std::string>::Ref returnValue(new std::string("/tmp/somefile.xml"));
return returnValue;
}
/*------------------------------------------------------------------------------
* Close after playing.
*----------------------------------------------------------------------------*/
void
Playlist :: closeForPlaying(void) const throw (std::logic_error)
{
}