Gnash  0.8.10
Public Types | Public Member Functions
gnash::HostInterface Class Reference

Abstract base class for hosting app handler. More...

#include <HostInterface.h>

Inheritance diagram for gnash::HostInterface:
gnash::Player::CallbacksHandler

List of all members.

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.

Detailed Description

Abstract base class for hosting app handler.


Member Typedef Documentation


Constructor & Destructor Documentation

virtual gnash::HostInterface::~HostInterface ( ) [inline, virtual]

Member Function Documentation

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<>()

Parameters:
eThe message to pass
Returns:
A return of any type. Both callers and users should know the expected type.

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().


The documentation for this class was generated from the following file: