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 $
|
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 $
|
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.
|
* the playlist.
|
||||||
*
|
*
|
||||||
* @author $Author: fgerlits $
|
* @author $Author: fgerlits $
|
||||||
* @version $Revision: 1.11 $
|
* @version $Revision: 1.12 $
|
||||||
*/
|
*/
|
||||||
class Playlist : public Configurable
|
class Playlist : public Configurable
|
||||||
{
|
{
|
||||||
|
@ -375,20 +375,6 @@ class Playlist : public Configurable
|
||||||
*/
|
*/
|
||||||
Ptr<xmlpp::Document>::Ref
|
Ptr<xmlpp::Document>::Ref
|
||||||
toSmil(void) const throw (std::logic_error);
|
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 $
|
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 $
|
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.
|
* An interface for storage clients.
|
||||||
*
|
*
|
||||||
* @author $Author: fgerlits $
|
* @author $Author: fgerlits $
|
||||||
* @version $Revision: 1.8 $
|
* @version $Revision: 1.9 $
|
||||||
*/
|
*/
|
||||||
class StorageClientInterface
|
class StorageClientInterface
|
||||||
{
|
{
|
||||||
|
@ -91,18 +91,34 @@ class StorageClientInterface
|
||||||
= 0;
|
= 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.
|
* @param id the id of the playlist to release.
|
||||||
* @exception std::invalid_argument if no playlist with the specified
|
* @exception std::invalid_argument if no playlist with the specified
|
||||||
* id exists.
|
* specified id exists.
|
||||||
*/
|
*/
|
||||||
virtual void
|
virtual void
|
||||||
releasePlaylist(Ptr<const UniqueId>::Ref id) const
|
releasePlaylist(Ptr<const UniqueId>::Ref id) const
|
||||||
throw (std::invalid_argument,
|
throw (std::invalid_argument,
|
||||||
std::logic_error)
|
std::logic_error)
|
||||||
= 0;
|
= 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a playlist with the specified id.
|
* Delete a playlist with the specified id.
|
||||||
*
|
*
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: fgerlits $
|
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 $
|
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;
|
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