2011-05-23 04:43:56 +02:00
|
|
|
/*
|
2011-05-23 05:46:40 +02:00
|
|
|
PLAY-SERVICE.hpp - interface: render- and playback control
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
Copyright (C) Lumiera.org
|
2011-05-23 05:46:40 +02:00
|
|
|
2011, Hermann Vosseler <Ichthyostega@web.de>
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
/** @file play-service.hpp
|
|
|
|
|
** Player subsystem......
|
2011-05-23 04:43:56 +02:00
|
|
|
**
|
|
|
|
|
** @see lumiera::DummyPlayer
|
|
|
|
|
** @see gui::PlaybackController usage example
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
#ifndef PROC_PLAY_PLAY_SERVICE_H
|
|
|
|
|
#define PROC_PLAY_PLAY_SERVICE_H
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
#include "lib/error.hpp"
|
2011-05-26 03:05:52 +02:00
|
|
|
#include "include/play-facade.h"
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
#include <boost/noncopyable.hpp>
|
2011-05-23 05:46:40 +02:00
|
|
|
//#include <boost/scoped_ptr.hpp>
|
|
|
|
|
//#include <string>
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace proc {
|
|
|
|
|
namespace play {
|
|
|
|
|
|
|
|
|
|
using std::string;
|
|
|
|
|
using lumiera::Subsys;
|
|
|
|
|
using lumiera::Display;
|
|
|
|
|
using lumiera::DummyPlayer;
|
|
|
|
|
|
|
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
// class DummyImageGenerator;
|
|
|
|
|
// class TickService;
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************
|
2011-05-23 05:46:40 +02:00
|
|
|
* Interface: Player subsystem.
|
2011-05-23 04:43:56 +02:00
|
|
|
*/
|
2011-05-23 05:46:40 +02:00
|
|
|
class PlayService
|
2011-05-23 04:43:56 +02:00
|
|
|
: boost::noncopyable
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
2011-05-23 05:46:40 +02:00
|
|
|
PlayService(Subsys::SigTerm terminationHandle);
|
2011-05-23 04:43:56 +02:00
|
|
|
|
2011-05-23 05:46:40 +02:00
|
|
|
~PlayService() { notifyTermination_(&error_); }
|
2011-05-23 04:43:56 +02:00
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace play
|
|
|
|
|
|
|
|
|
|
} // namespace proc
|
|
|
|
|
#endif
|