removed openForPlaying() and closeForPlaying() methods from Playlist class
added acquirePlaylist() to StorageClientInterface
This commit is contained in:
parent
88cb83e636
commit
4631706006
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.11 $
|
||||
Version : $Revision: 1.12 $
|
||||
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.11 $
|
||||
* @version $Revision: 1.12 $
|
||||
*/
|
||||
class Playlist : public Configurable
|
||||
{
|
||||
|
@ -375,20 +375,6 @@ 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);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.8 $
|
||||
Version : $Revision: 1.9 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/include/LiveSupport/Core/Attic/StorageClientInterface.h,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -61,7 +61,7 @@ namespace Core {
|
|||
* An interface for storage clients.
|
||||
*
|
||||
* @author $Author: fgerlits $
|
||||
* @version $Revision: 1.8 $
|
||||
* @version $Revision: 1.9 $
|
||||
*/
|
||||
class StorageClientInterface
|
||||
{
|
||||
|
@ -91,18 +91,34 @@ class StorageClientInterface
|
|||
= 0;
|
||||
|
||||
/**
|
||||
* Release the lock on a playlist with the specified id.
|
||||
* Acquire the resources for the playlist
|
||||
* At this point, this does not do anything.
|
||||
*
|
||||
* @param id the id of the playlist to release.
|
||||
* @return something
|
||||
* @exception std::invalid_argument if no playlist with the specified
|
||||
* specified id exists.
|
||||
*/
|
||||
virtual Ptr<std::string>::Ref
|
||||
acquirePlaylist(Ptr<const UniqueId>::Ref id) const
|
||||
throw (std::invalid_argument,
|
||||
std::logic_error)
|
||||
= 0;
|
||||
|
||||
/**
|
||||
* Release the resources (audio clips, other playlists) used
|
||||
* in a playlist.
|
||||
* At this point, this does not do anything.
|
||||
*
|
||||
* @param id the id of the playlist to release.
|
||||
* @exception std::invalid_argument if no playlist with the specified
|
||||
* id exists.
|
||||
* specified id exists.
|
||||
*/
|
||||
virtual void
|
||||
releasePlaylist(Ptr<const UniqueId>::Ref id) const
|
||||
throw (std::invalid_argument,
|
||||
std::logic_error)
|
||||
= 0;
|
||||
|
||||
/**
|
||||
* Delete a playlist with the specified id.
|
||||
*
|
||||
|
|
|
@ -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/src/Playlist.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -405,24 +405,3 @@ 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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue