Gnash
0.8.10
|
Abstract base class for hosting app handler. More...
#include <HostInterface.h>
Public Types | |
typedef boost::variant < HostMessage, CustomMessage > | Message |
Public Member Functions | |
virtual | ~HostInterface () |
virtual boost::any | call (const Message &e)=0 |
Pass a message to the hosting application with an optional return. | |
virtual void | exit ()=0 |
Instruct the hosting application to exit. |
Abstract base class for hosting app handler.
typedef boost::variant<HostMessage, CustomMessage> gnash::HostInterface::Message |
virtual gnash::HostInterface::~HostInterface | ( | ) | [inline, virtual] |
virtual boost::any gnash::HostInterface::call | ( | const Message & | e | ) | [pure virtual] |
Pass a message to the hosting application with an optional return.
The core library should access this function through movie_root::callInterface() or movie_root::callInterface<>()
e | The message to pass |
Implemented in gnash::Player::CallbacksHandler.
Referenced by gnash::movie_root::setLevel(), and gnash::movie_root::callInterface().
virtual void gnash::HostInterface::exit | ( | ) | [pure virtual] |
Instruct the hosting application to exit.
The hosting application may ignore this: do not rely on it to exit the program.
Implemented in gnash::Player::CallbacksHandler.
Referenced by gnash::movie_root::processInvoke().