Abstract base class for hosting app handler. More...
#include <movie_root.h>
Inherited by EventCallback, and gnash::Player::CallbacksHandler.
Public Member Functions | |
virtual std::string | call (const std::string &cmd, const std::string &arg=std::string())=0 |
Get Gui-related information for the core. | |
virtual bool | yesNo (const std::string &cmd)=0 |
virtual void | exit ()=0 |
Instruct the hosting application to exit. | |
virtual void | error (const std::string &) |
Send an error message to the hosting application. | |
virtual | ~AbstractIfaceCallback () |
Abstract base class for hosting app handler.
virtual gnash::movie_root::AbstractIfaceCallback::~AbstractIfaceCallback | ( | ) | [inline, virtual] |
virtual std::string gnash::movie_root::AbstractIfaceCallback::call | ( | const std::string & | cmd, | |
const std::string & | arg = std::string() | |||
) | [pure virtual] |
Get Gui-related information for the core.
This should be used for occasional AS calls, such as for Mouse.hide, System.capabilities etc. The return can be various types, so it is passed as a string.
Referenced by gnash::movie_root::swapLevels().
virtual void gnash::movie_root::AbstractIfaceCallback::error | ( | const std::string & | ) | [inline, virtual] |
Send an error message to the hosting application.
This does not have to be implemented; the default is a no-op.
virtual void gnash::movie_root::AbstractIfaceCallback::exit | ( | ) | [pure virtual] |
Instruct the hosting application to exit.
virtual bool gnash::movie_root::AbstractIfaceCallback::yesNo | ( | const std::string & | cmd | ) | [pure virtual] |
Ask the hosting application for a yes / no answer to a question.