Gnash  0.8.11dev
Public Types | Public Member Functions | List of all members
gnash::HostInterface Class Referenceabstract

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

#include <HostInterface.h>

Inherited by EventCallback.

Public Types

typedef boost::variant< HostMessage, CustomMessageMessage
 

Public Member Functions

virtual ~HostInterface ()
 
virtual boost::any call (const Message &e)=0
 Pass a message to the hosting application with an optional return. More...
 
virtual void exit ()=0
 Instruct the hosting application to exit. More...
 

Detailed Description

Abstract base class for hosting app handler.

Member Typedef Documentation

§ Message

Constructor & Destructor Documentation

§ ~HostInterface()

virtual gnash::HostInterface::~HostInterface ( )
inlinevirtual

Member Function Documentation

§ call()

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

§ exit()

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: