Gnash  0.8.11dev
Public Types | Public Member Functions
gnash::HostInterface Class Reference

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

#include <HostInterface.h>

Inherited by EventCallback, and 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 ( )
inlinevirtual

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.

Referenced by gnash::movie_root::callInterface(), and gnash::movie_root::setLevel().

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.

Referenced by gnash::movie_root::processInvoke().


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