Gnash  0.8.10
Public Member Functions
gnash::RunResources Class Reference

Class to group together per-run and external resources for Gnash. More...

#include <RunResources.h>

List of all members.

Public Member Functions

 RunResources ()
 Constructs a RunResources instance with an immutable base URL.
void setStreamProvider (boost::shared_ptr< StreamProvider > sp)
 Set the StreamProvider.
const StreamProviderstreamProvider () const
 Get a StreamProvider instance.
void setSoundHandler (boost::shared_ptr< sound::sound_handler > s)
 Set the sound::sound_handler.
sound::sound_handlersoundHandler () const
 Get a pointer to a sound::sound_handler set by a hosting application.
void setMediaHandler (boost::shared_ptr< media::MediaHandler > s)
media::MediaHandlermediaHandler () const
void setRenderer (boost::shared_ptr< Renderer > r)
Rendererrenderer () const
void setTagLoaders (boost::shared_ptr< const SWF::TagLoadersTable > loaders)
 Set the loader functions for SWF parsing.
const SWF::TagLoadersTabletagLoaders () const
 Get the loader function table for parsing a SWF.
void setRenderBackend (const std::string &x)
std::string & getRenderBackend ()
std::string & getHWAccelBackend ()
void setHWAccelBackend (const std::string &x)

Detailed Description

Class to group together per-run and external resources for Gnash.

This holds the following resources:


Constructor & Destructor Documentation

gnash::RunResources::RunResources ( ) [inline]

Constructs a RunResources instance with an immutable base URL.

Parameters:
baseURLThe base URL for the run. This cannot be changed after construction.

Member Function Documentation

std::string& gnash::RunResources::getHWAccelBackend ( ) [inline]

Set the hardware video accleration backend, none, vaapi, xv, or cairo. This is set in the users gnashrc file, or can be overridden with the --render-mode option to gnash.

Referenced by gnash::GtkGui::init().

std::string& gnash::RunResources::getRenderBackend ( ) [inline]
media::MediaHandler* gnash::RunResources::mediaHandler ( ) const [inline]
Renderer* gnash::RunResources::renderer ( ) const [inline]
void gnash::RunResources::setHWAccelBackend ( const std::string &  x) [inline]

References x.

void gnash::RunResources::setMediaHandler ( boost::shared_ptr< media::MediaHandler s) [inline]

References gnash::key::s.

Referenced by main().

void gnash::RunResources::setRenderBackend ( const std::string &  x) [inline]

Set the renderer backend, agg, opengl, or cairo. This is set in the users gnashrc file, or can be overridden with the --hwaccel option to gnash.

References x.

void gnash::RunResources::setRenderer ( boost::shared_ptr< Renderer r) [inline]
void gnash::RunResources::setSoundHandler ( boost::shared_ptr< sound::sound_handler s) [inline]

Set the sound::sound_handler.

Parameters:
sA pointer to the sound::sound_handler for use by Gnash core. This may also be NULL. This is cached in various places, so changing it during a run will lead to unexpected behaviour.

References gnash::key::s.

Referenced by gnash::DumpGui::init(), and main().

void gnash::RunResources::setStreamProvider ( boost::shared_ptr< StreamProvider sp) [inline]

Set the StreamProvider.

This can probably be changed during a run without ill effects.

Referenced by main().

void gnash::RunResources::setTagLoaders ( boost::shared_ptr< const SWF::TagLoadersTable loaders) [inline]

Set the loader functions for SWF parsing.

This must be present before parsing. It is a pointer to const so that the same table can be shared between simultaneous runs if desired.

Referenced by main().

sound::sound_handler* gnash::RunResources::soundHandler ( ) const [inline]
const StreamProvider& gnash::RunResources::streamProvider ( ) const [inline]
const SWF::TagLoadersTable& gnash::RunResources::tagLoaders ( ) const [inline]

Get the loader function table for parsing a SWF.

References assert.

Referenced by gnash::SWFParser::read().


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