Gnash
0.8.10
|
#include <rc.h>
Public Types | |
typedef std::vector< std::string > | PathList |
Public Member Functions | |
void | loadFiles () |
Load and parse files, looking in the usual places. | |
bool | parseFile (const std::string &filespec) |
bool | updateFile (const std::string &filespec) |
Writes a valid gnashrc file. If the file already exists, is is overwritten. | |
bool | updateFile () |
Writes a gnashrc file to the file specified in the GNASHRC environment variable OR to the user's home directory. | |
bool | useSplashScreen () const |
void | useSplashScreen (bool value) |
bool | useActionDump () const |
void | useActionDump (bool value) |
bool | useParserDump () const |
void | useParserDump (bool value) |
bool | useWriteLog () const |
void | useWriteLog (bool value) |
int | getTimerDelay () const |
void | setTimerDelay (int x) |
bool | showASCodingErrors () const |
void | showASCodingErrors (bool value) |
bool | showMalformedSWFErrors () const |
void | showMalformedSWFErrors (bool value) |
bool | showMalformedAMFErrors () const |
void | showMalformedAMFErrors (bool value) |
int | getMovieLibraryLimit () const |
void | setMovieLibraryLimit (int value) |
bool | enableExtensions () const |
bool | startStopped () const |
Return true if user is willing to start the gui in "stop" mode. | |
void | startStopped (bool value) |
bool | insecureSSL () const |
void | insecureSSL (bool value) |
int | qualityLevel () const |
void | qualityLevel (int value) |
int | verbosityLevel () const |
void | verbosityLevel (int value) |
void | setDebugLog (const std::string &x) |
const std::string & | getDebugLog () const |
void | setDocumentRoot (const std::string &x) |
std::string | getDocumentRoot () |
bool | useDebugger () const |
void | useDebugger (bool value) |
bool | useSound () const |
void | useSound (bool value) |
bool | usePluginSound () const |
void | usePluginSound (bool value) |
bool | popupMessages () const |
void | interfacePopups (bool value) |
bool | useLocalDomain () const |
void | useLocalDomain (bool value) |
bool | useLocalHost () const |
Whether to restrict access to the local host. | |
void | useLocalHost (bool value) |
Set whether to restrict access to the local host. | |
const PathList & | getWhiteList () const |
Get the current RcInitFile whitelist of domains to allow. | |
void | setWhitelist (const std::vector< std::string > &list) |
Sets the RcInitFile whitelist of domains to allow. | |
const PathList & | getBlackList () const |
Get the current RcInitFile blacklist of domains to block. | |
bool | showMouse () const |
void | setBlacklist (const std::vector< std::string > &list) |
Sets the RcInitFile blacklist of domains to block. | |
const PathList & | getLocalSandboxPath () const |
Return the list of directories to be used as the 'local' sandbox. | |
void | addLocalSandboxPath (const std::string &dir) |
Add a directory to the local sandbox list. | |
void | setLocalSandboxPath (const PathList &path) |
const std::string & | getFlashVersionString () const |
void | setFlashVersionString (const std::string &value) |
const std::string & | getFlashSystemOS () const |
void | setFlashSystemOS (const std::string &value) |
const std::string & | getFlashSystemManufacturer () const |
void | setFlashSystemManufacturer (const std::string &value) |
const std::string & | getGstAudioSink () const |
void | setGstAudioSink (const std::string &value) |
int | getRetries () const |
void | setRetries (int x) |
double | getStreamsTimeout () const |
The number of seconds of inactivity before timing out streams downloads. | |
void | setStreamsTimeout (const double &x) |
Set seconds of inactivity before timing out streams downloads. | |
const std::string & | getURLOpenerFormat () const |
Get the URL opener command format. | |
void | setURLOpenerFormat (const std::string &value) |
const std::string & | getHWAccel () const |
void | setHWAccel (const std::string &x) |
const std::string & | getRenderer () const |
void | setRenderer (const std::string &x) |
const std::string & | getMediaHandler () const |
void | setMediaHandler (const std::string &x) |
const std::string & | getSOLSafeDir () const |
void | setSOLSafeDir (const std::string &x) |
bool | getSOLLocalDomain () const |
void | setSOLLocalDomain (bool x) |
bool | getSOLReadOnly () const |
void | setSOLReadOnly (bool x) |
bool | getLocalConnection () const |
void | setLocalConnection (bool x) |
bool | getLCTrace () const |
Enable tracing all LocalConnection traffic. | |
void | setLCTrace (bool x) |
key_t | getLCShmKey () const |
void | setLCShmKey (bool x) |
bool | ignoreFSCommand () const |
void | ignoreFSCommand (bool value) |
void | saveStreamingMedia (bool value) |
bool | saveStreamingMedia () const |
void | saveLoadedMedia (bool value) |
bool | saveLoadedMedia () const |
void | setMediaDir (const std::string &value) |
const std::string & | getMediaDir () const |
void | setWebcamDevice (int value) |
int | getWebcamDevice () const |
void | setAudioInputDevice (int value) |
int | getAudioInputDevice () |
const std::string & | getRootCert () const |
Get the Root SSL certificate. | |
void | setRootCert (const std::string &value) |
Set the Root SSL certificate. | |
const std::string & | getCertFile () const |
Get the Client SSL certificate. | |
void | setCertFile (const std::string &value) |
Set the Client SSL certificate. | |
const std::string & | getCertDir () const |
Get the directory for client SSL certificates. | |
void | setCertDir (const std::string &value) |
Set the directory for client SSL certificates. | |
void | ignoreShowMenu (bool value) |
bool | ignoreShowMenu () const |
int | getScriptsTimeout () const |
void | setScriptsTimeout (int x) |
int | getScriptsRecursionLimit () const |
void | setScriptsRecursionLimit (int x) |
void | lockScriptLimits (bool x) |
bool | lockScriptLimits () const |
void | dump () |
Static Public Member Functions | |
static RcInitFile & | getDefaultInstance () |
Return the default instance of RC file. | |
Protected Types | |
typedef boost::char_separator < char > | Sep |
typedef boost::tokenizer< Sep > | Tok |
Protected Member Functions | |
void | writeList (const PathList &list, std::ostream &o) |
RcInitFile () | |
Construct only by getDefaultInstance() | |
~RcInitFile () | |
Never destroy (TODO: add a destroyDefaultInstance) | |
void | parseList (std::vector< std::string > &list, const std::string &action, const std::string &items) |
parses a space-separated list into std::vector list | |
Static Protected Member Functions | |
static void | expandPath (std::string &path) |
static bool | extractSetting (bool &var, const std::string &pattern, const std::string &variable, const std::string &value) |
If variable matches pattern (case-insensitive) set var according to value. | |
template<typename T > | |
static bool | extractNumber (T &num, const std::string &pattern, const std::string &variable, const std::string &value) |
If variable matches pattern (case-insensitive) set num according to value. | |
static bool | extractDouble (double &out, const std::string &pattern, const std::string &variable, const std::string &value) |
If variable matches pattern (case-insensitive) set out according to value. | |
Protected Attributes | |
boost::uint32_t | _delay |
The timer delay. | |
boost::uint32_t | _movieLibraryLimit |
Max number of movie clips to store in the library. | |
bool | _debug |
Enable debugging of this class. | |
bool | _debugger |
Enable the Flash movie debugger. | |
boost::uint32_t | _verbosity |
Level of debugging output. | |
std::string | _urlOpenerFormat |
Command format to use to open urls. | |
std::string | _flashVersionString |
String to pass as $version in Actionscript. | |
std::string | _gstaudiosink |
String representing the first GStreamer audio output pipeline to try. | |
std::string | _flashSystemOS |
String to pass as System.capabilities.os in Actionscript. If empty, leaves detection to System.cpp (default). | |
std::string | _flashSystemManufacturer |
String to pass as System.capabilities.manufacturer in Actionscript. | |
bool | _actionDump |
Enable dumping actionscript classes. | |
bool | _parserDump |
Enable dumping parser data. | |
bool | _verboseASCodingErrors |
Enable ActionScript errors verbosity. | |
bool | _verboseMalformedSWF |
Enable Malformed SWF verbosity. | |
bool | _verboseMalformedAMF |
Enable Malformed AMF verbosity. | |
bool | _splashScreen |
Display a splash screen when loading a movie. | |
bool | _localdomainOnly |
Only access network resources in the local domain. | |
bool | _localhostOnly |
Only access network resources on the local host. | |
bool | _showMouse |
Show the mouse pointer. | |
PathList | _whitelist |
Allowed domains. | |
PathList | _blacklist |
Blocked Domains. | |
std::string | _log |
The name of the debug log. | |
bool | _writeLog |
Enable writing the debug log to disk. | |
std::string | _wwwroot |
The root path for the streaming server. | |
int | _retries |
the number of retries for a thread | |
bool | _sound |
Enable the sound handler at startup. | |
bool | _pluginSound |
Enable sound for the plugin. | |
bool | _extensionsEnabled |
Enable scanning plugin path for extensions. | |
bool | _startStopped |
Start the gui in "stop" mode. | |
bool | _insecureSSL |
Allow SSL connections without verifying the certificate. | |
double | _streamsTimeout |
The number of seconds of inactivity triggering download timeout. | |
PathList | _localSandboxPath |
Local sandbox: the set of resources on the filesystem we want to give the current movie access to. | |
std::string | _solsandbox |
SOL Sandbox: This is the only dir .sol (Shared Object) files can be written in, or read from. | |
bool | _solreadonly |
Whether SOL files can be written. | |
bool | _sollocaldomain |
bool | _lcdisabled |
bool | _lctrace |
Trace local connection activity (in log) | |
boost::uint32_t | _lcshmkey |
bool | _ignoreFSCommand |
int | _quality |
The quality to display SWFs in. -1 to allow the SWF to override. | |
bool | _saveStreamingMedia |
bool | _saveLoadedMedia |
std::string | _mediaCacheDir |
bool | _popups |
bool | _useXv |
int | _webcamDevice |
int | _microphoneDevice |
std::string | _certfile |
std::string | _certdir |
std::string | _rootcert |
bool | _ignoreShowMenu |
std::string | _hwaccel |
std::string | _renderer |
std::string | _mediahandler |
int | _scriptsTimeout |
int | _scriptsRecursionLimit |
The max actionscript function call stack depth. | |
bool | _lockScriptLimits |
Whether to ignore SWF ScriptLimits tags. |
typedef std::vector<std::string> gnash::RcInitFile::PathList |
typedef boost::char_separator<char> gnash::RcInitFile::Sep [protected] |
typedef boost::tokenizer< Sep > gnash::RcInitFile::Tok [protected] |
gnash::RcInitFile::RcInitFile | ( | ) | [protected] |
Construct only by getDefaultInstance()
References expandPath(), _solsandbox, loadFiles(), _urlOpenerFormat, and LONG.
gnash::RcInitFile::~RcInitFile | ( | ) | [protected] |
Never destroy (TODO: add a destroyDefaultInstance)
void gnash::RcInitFile::addLocalSandboxPath | ( | const std::string & | dir | ) | [inline] |
Add a directory to the local sandbox list.
void gnash::RcInitFile::dump | ( | ) |
References _delay, _debugger, _verbosity, _actionDump, _parserDump, _verboseASCodingErrors, _splashScreen, _localdomainOnly, _localhostOnly, _writeLog, _insecureSSL, _sound, _pluginSound, _extensionsEnabled, _log, _flashVersionString, _gstaudiosink, writeList(), _whitelist, _blacklist, and _localSandboxPath.
bool gnash::RcInitFile::enableExtensions | ( | ) | const [inline] |
void gnash::RcInitFile::expandPath | ( | std::string & | path | ) | [static, protected] |
Substitutes user's home directory for ~ on a path string according to POSIX standard.
path | the path to expand. |
Referenced by RcInitFile(), and parseFile().
bool gnash::RcInitFile::extractDouble | ( | double & | out, |
const std::string & | pattern, | ||
const std::string & | variable, | ||
const std::string & | value | ||
) | [static, protected] |
If variable matches pattern (case-insensitive) set out according to value.
out | the variable to change |
pattern | the pattern for matching the variable to match to pattern the value to adopt if variable matches pattern. |
Referenced by parseFile().
static bool gnash::RcInitFile::extractNumber | ( | T & | num, |
const std::string & | pattern, | ||
const std::string & | variable, | ||
const std::string & | value | ||
) | [inline, static, protected] |
If variable matches pattern (case-insensitive) set num according to value.
num | the variable to change |
pattern | the pattern for matching the variable to match to pattern the value to adopt if variable matches pattern. |
Referenced by parseFile().
bool gnash::RcInitFile::extractSetting | ( | bool & | var, |
const std::string & | pattern, | ||
const std::string & | variable, | ||
const std::string & | value | ||
) | [static, protected] |
If variable matches pattern (case-insensitive) set var according to value.
var | the variable to change |
pattern | the pattern for matching the variable to match to pattern the value to adopt if variable matches pattern. |
Referenced by parseFile().
int gnash::RcInitFile::getAudioInputDevice | ( | ) | [inline] |
const PathList& gnash::RcInitFile::getBlackList | ( | ) | const [inline] |
Get the current RcInitFile blacklist of domains to block.
const std::string& gnash::RcInitFile::getCertDir | ( | ) | const [inline] |
Get the directory for client SSL certificates.
const std::string& gnash::RcInitFile::getCertFile | ( | ) | const [inline] |
Get the Client SSL certificate.
const std::string& gnash::RcInitFile::getDebugLog | ( | ) | const [inline] |
RcInitFile & gnash::RcInitFile::getDefaultInstance | ( | ) | [static] |
Return the default instance of RC file.
Referenced by gnash::AOS4Gui::run(), gnash::AOS4Gui::ReadPrefs(), gnash::media::gst::GstUtil::get_audiosink_element(), gnash::GtkGui::error(), gnash::GtkGui::showMouse(), gnash::GtkGui::showMenu(), gnash::movie_root::movie_root(), gnash::movie_root::setQuality(), gnash::movie_root::getURL(), gnash::movie_root::setScriptLimits(), gnash::MovieLibrary::MovieLibrary(), gnash::NetConnection_as::getStream(), gnash::Player::run(), gnash::Player::CallbacksHandler::notify(), and nsPluginInstance::threadMain().
std::string gnash::RcInitFile::getDocumentRoot | ( | ) | [inline] |
const std::string& gnash::RcInitFile::getFlashSystemManufacturer | ( | ) | const [inline] |
const std::string& gnash::RcInitFile::getFlashSystemOS | ( | ) | const [inline] |
const std::string& gnash::RcInitFile::getFlashVersionString | ( | ) | const [inline] |
const std::string& gnash::RcInitFile::getGstAudioSink | ( | ) | const [inline] |
Referenced by gnash::media::gst::GstUtil::get_audiosink_element().
const std::string& gnash::RcInitFile::getHWAccel | ( | ) | const [inline] |
key_t gnash::RcInitFile::getLCShmKey | ( | ) | const [inline] |
bool gnash::RcInitFile::getLCTrace | ( | ) | const [inline] |
Enable tracing all LocalConnection traffic.
Referenced by gnash::AOS4Gui::ReadPrefs().
bool gnash::RcInitFile::getLocalConnection | ( | ) | const [inline] |
const PathList& gnash::RcInitFile::getLocalSandboxPath | ( | ) | const [inline] |
Return the list of directories to be used as the 'local' sandbox.
Local sendbox is the set of resources on the filesystem we want to give the current movie access to.
const std::string& gnash::RcInitFile::getMediaDir | ( | ) | const [inline] |
const std::string& gnash::RcInitFile::getMediaHandler | ( | ) | const [inline] |
int gnash::RcInitFile::getMovieLibraryLimit | ( | ) | const [inline] |
const std::string& gnash::RcInitFile::getRenderer | ( | ) | const [inline] |
References _renderer.
int gnash::RcInitFile::getRetries | ( | ) | const [inline] |
const std::string& gnash::RcInitFile::getRootCert | ( | ) | const [inline] |
Get the Root SSL certificate.
int gnash::RcInitFile::getScriptsRecursionLimit | ( | ) | const [inline] |
Referenced by gnash::movie_root::movie_root().
int gnash::RcInitFile::getScriptsTimeout | ( | ) | const [inline] |
Referenced by gnash::movie_root::movie_root().
bool gnash::RcInitFile::getSOLLocalDomain | ( | ) | const [inline] |
bool gnash::RcInitFile::getSOLReadOnly | ( | ) | const [inline] |
const std::string& gnash::RcInitFile::getSOLSafeDir | ( | ) | const [inline] |
double gnash::RcInitFile::getStreamsTimeout | ( | ) | const [inline] |
The number of seconds of inactivity before timing out streams downloads.
Referenced by gnash::AOS4Gui::ReadPrefs(), and gnash::Qt4GuiPrefs::PreferencesDialog::PreferencesDialog().
int gnash::RcInitFile::getTimerDelay | ( | ) | const [inline] |
const std::string& gnash::RcInitFile::getURLOpenerFormat | ( | ) | const [inline] |
Get the URL opener command format.
The u label will need to be substituted by the actual url properly escaped.
Referenced by gnash::AOS4Gui::ReadPrefs(), and gnash::Qt4GuiPrefs::PreferencesDialog::PreferencesDialog().
int gnash::RcInitFile::getWebcamDevice | ( | ) | const [inline] |
const PathList& gnash::RcInitFile::getWhiteList | ( | ) | const [inline] |
Get the current RcInitFile whitelist of domains to allow.
bool gnash::RcInitFile::ignoreFSCommand | ( | ) | const [inline] |
Referenced by gnash::Player::CallbacksHandler::notify().
void gnash::RcInitFile::ignoreFSCommand | ( | bool | value | ) | [inline] |
void gnash::RcInitFile::ignoreShowMenu | ( | bool | value | ) | [inline] |
Referenced by gnash::GtkGui::showMenu().
bool gnash::RcInitFile::ignoreShowMenu | ( | ) | const [inline] |
bool gnash::RcInitFile::insecureSSL | ( | ) | const [inline] |
void gnash::RcInitFile::insecureSSL | ( | bool | value | ) | [inline] |
void gnash::RcInitFile::interfacePopups | ( | bool | value | ) | [inline] |
void gnash::RcInitFile::loadFiles | ( | ) |
Load and parse files, looking in the usual places.
References parseFile(), _, gnash::key::t, gnash::key::l, gnash::key::i, and gnash::key::e.
Referenced by RcInitFile().
void gnash::RcInitFile::lockScriptLimits | ( | bool | x | ) | [inline] |
References x.
bool gnash::RcInitFile::lockScriptLimits | ( | ) | const [inline] |
bool gnash::RcInitFile::parseFile | ( | const std::string & | filespec | ) |
References _, _urlOpenerFormat, _flashVersionString, _gstaudiosink, _flashSystemOS, _flashSystemManufacturer, expandPath(), _log, _mediaCacheDir, _wwwroot, parseList(), _blacklist, _whitelist, _localSandboxPath, _solsandbox, _hwaccel, _renderer, _mediahandler, _certdir, _certfile, _rootcert, extractSetting(), _splashScreen, _localhostOnly, _showMouse, _localdomainOnly, _insecureSSL, _debugger, _actionDump, _parserDump, _writeLog, _popups, _sound, _pluginSound, _verboseASCodingErrors, _verboseMalformedSWF, _verboseMalformedAMF, _extensionsEnabled, _startStopped, _solreadonly, _sollocaldomain, _lcdisabled, _lctrace, extractNumber(), _movieLibraryLimit, _delay, _verbosity, _lcshmkey, extractDouble(), _streamsTimeout, _quality, _saveLoadedMedia, _saveStreamingMedia, _ignoreFSCommand, _webcamDevice, _microphoneDevice, _ignoreShowMenu, _scriptsTimeout, _scriptsRecursionLimit, and _lockScriptLimits.
Referenced by loadFiles().
void gnash::RcInitFile::parseList | ( | std::vector< std::string > & | list, |
const std::string & | action, | ||
const std::string & | items | ||
) | [protected] |
parses a space-separated list into std::vector list
list | the vector to modify or generate. |
action | either 'set' or 'append': whether to add to or clear the vector. |
items | string of space-separated values. This gets nuked. |
References gnash::key::t, gnash::key::i, and gnash::key::e.
Referenced by parseFile().
bool gnash::RcInitFile::popupMessages | ( | ) | const [inline] |
Referenced by gnash::GtkGui::error().
int gnash::RcInitFile::qualityLevel | ( | ) | const [inline] |
References _quality.
Referenced by gnash::movie_root::setQuality().
void gnash::RcInitFile::qualityLevel | ( | int | value | ) | [inline] |
References _quality.
void gnash::RcInitFile::saveLoadedMedia | ( | bool | value | ) | [inline] |
bool gnash::RcInitFile::saveLoadedMedia | ( | ) | const [inline] |
void gnash::RcInitFile::saveStreamingMedia | ( | bool | value | ) | [inline] |
bool gnash::RcInitFile::saveStreamingMedia | ( | ) | const [inline] |
void gnash::RcInitFile::setAudioInputDevice | ( | int | value | ) | [inline] |
void gnash::RcInitFile::setBlacklist | ( | const std::vector< std::string > & | list | ) | [inline] |
Sets the RcInitFile blacklist of domains to block.
list | a std::vector of strings containing domains without protocol |
void gnash::RcInitFile::setCertDir | ( | const std::string & | value | ) | [inline] |
Set the directory for client SSL certificates.
void gnash::RcInitFile::setCertFile | ( | const std::string & | value | ) | [inline] |
Set the Client SSL certificate.
void gnash::RcInitFile::setDebugLog | ( | const std::string & | x | ) | [inline] |
References x.
Referenced by gnash::AOS4Gui::run(), and nsPluginInstance::threadMain().
void gnash::RcInitFile::setDocumentRoot | ( | const std::string & | x | ) | [inline] |
References x.
void gnash::RcInitFile::setFlashSystemManufacturer | ( | const std::string & | value | ) | [inline] |
void gnash::RcInitFile::setFlashSystemOS | ( | const std::string & | value | ) | [inline] |
Referenced by gnash::AOS4Gui::run().
void gnash::RcInitFile::setFlashVersionString | ( | const std::string & | value | ) | [inline] |
Referenced by gnash::AOS4Gui::run().
void gnash::RcInitFile::setGstAudioSink | ( | const std::string & | value | ) | [inline] |
void gnash::RcInitFile::setHWAccel | ( | const std::string & | x | ) | [inline] |
References x.
void gnash::RcInitFile::setLCShmKey | ( | bool | x | ) | [inline] |
References x.
void gnash::RcInitFile::setLCTrace | ( | bool | x | ) | [inline] |
References x.
Referenced by gnash::AOS4Gui::run().
void gnash::RcInitFile::setLocalConnection | ( | bool | x | ) | [inline] |
References x.
Referenced by gnash::AOS4Gui::run().
void gnash::RcInitFile::setLocalSandboxPath | ( | const PathList & | path | ) | [inline] |
Sets a list of sandbox paths. Gnash will only allow movies access to files in these paths. The path of the movie playing is automatically added.
list | a std::vector of strings containing paths to allow |
References path.
void gnash::RcInitFile::setMediaDir | ( | const std::string & | value | ) | [inline] |
Referenced by gnash::AOS4Gui::run().
void gnash::RcInitFile::setMediaHandler | ( | const std::string & | x | ) | [inline] |
References x.
void gnash::RcInitFile::setMovieLibraryLimit | ( | int | value | ) | [inline] |
Referenced by gnash::AOS4Gui::run().
void gnash::RcInitFile::setRetries | ( | int | x | ) | [inline] |
References x.
void gnash::RcInitFile::setRootCert | ( | const std::string & | value | ) | [inline] |
Set the Root SSL certificate.
void gnash::RcInitFile::setScriptsRecursionLimit | ( | int | x | ) | [inline] |
References x.
void gnash::RcInitFile::setScriptsTimeout | ( | int | x | ) | [inline] |
References x.
void gnash::RcInitFile::setSOLLocalDomain | ( | bool | x | ) | [inline] |
References x.
Referenced by gnash::AOS4Gui::run().
void gnash::RcInitFile::setSOLReadOnly | ( | bool | x | ) | [inline] |
References x.
Referenced by gnash::AOS4Gui::run().
void gnash::RcInitFile::setSOLSafeDir | ( | const std::string & | x | ) | [inline] |
References x.
Referenced by gnash::AOS4Gui::run().
void gnash::RcInitFile::setStreamsTimeout | ( | const double & | x | ) | [inline] |
Set seconds of inactivity before timing out streams downloads.
References x.
Referenced by gnash::AOS4Gui::run().
void gnash::RcInitFile::setTimerDelay | ( | int | x | ) | [inline] |
References x.
void gnash::RcInitFile::setURLOpenerFormat | ( | const std::string & | value | ) | [inline] |
Referenced by gnash::AOS4Gui::run().
void gnash::RcInitFile::setWebcamDevice | ( | int | value | ) | [inline] |
void gnash::RcInitFile::setWhitelist | ( | const std::vector< std::string > & | list | ) | [inline] |
Sets the RcInitFile whitelist of domains to allow.
list | a std::vector of strings containing domains without protocol |
bool gnash::RcInitFile::showASCodingErrors | ( | ) | const [inline] |
void gnash::RcInitFile::showASCodingErrors | ( | bool | value | ) |
References _verboseASCodingErrors.
bool gnash::RcInitFile::showMalformedAMFErrors | ( | ) | const [inline] |
void gnash::RcInitFile::showMalformedAMFErrors | ( | bool | value | ) |
bool gnash::RcInitFile::showMalformedSWFErrors | ( | ) | const [inline] |
void gnash::RcInitFile::showMalformedSWFErrors | ( | bool | value | ) |
References _verboseMalformedSWF.
bool gnash::RcInitFile::showMouse | ( | ) | const [inline] |
Whether to forcibly show the mouse pointer even if the SWF file disables it. THis allows touchscreen based SWF files to work on a normal non-touchscreen desktop.
Referenced by gnash::GtkGui::showMouse().
bool gnash::RcInitFile::startStopped | ( | ) | const [inline] |
Return true if user is willing to start the gui in "stop" mode.
defaults to false.
Referenced by gnash::AOS4Gui::run(), gnash::AOS4Gui::ReadPrefs(), gnash::Player::run(), and gnash::Qt4GuiPrefs::PreferencesDialog::PreferencesDialog().
void gnash::RcInitFile::startStopped | ( | bool | value | ) | [inline] |
bool gnash::RcInitFile::updateFile | ( | const std::string & | filespec | ) |
Writes a valid gnashrc file. If the file already exists, is is overwritten.
filespec | the file to write |
References _, _splashScreen, _localhostOnly, _showMouse, _localdomainOnly, _insecureSSL, _debugger, _actionDump, _parserDump, _writeLog, _sound, _popups, _pluginSound, _verboseASCodingErrors, _verboseMalformedSWF, _verboseMalformedAMF, _extensionsEnabled, _startStopped, _streamsTimeout, _movieLibraryLimit, _quality, _delay, _verbosity, _solreadonly, _sollocaldomain, _solsandbox, _lcdisabled, _lctrace, _lcshmkey, _ignoreFSCommand, _ignoreShowMenu, _saveStreamingMedia, _saveLoadedMedia, _scriptsTimeout, _scriptsRecursionLimit, _lockScriptLimits, _mediaCacheDir, _log, _wwwroot, _flashSystemOS, _flashVersionString, _urlOpenerFormat, _gstaudiosink, writeList(), _whitelist, and _blacklist.
Referenced by gnash::AOS4Gui::run().
bool gnash::RcInitFile::updateFile | ( | ) |
Writes a gnashrc file to the file specified in the GNASHRC environment variable OR to the user's home directory.
References _.
bool gnash::RcInitFile::useActionDump | ( | ) | const [inline] |
void gnash::RcInitFile::useActionDump | ( | bool | value | ) |
References _actionDump.
bool gnash::RcInitFile::useDebugger | ( | ) | const [inline] |
void gnash::RcInitFile::useDebugger | ( | bool | value | ) | [inline] |
bool gnash::RcInitFile::useLocalDomain | ( | ) | const [inline] |
void gnash::RcInitFile::useLocalDomain | ( | bool | value | ) |
References _localdomainOnly.
bool gnash::RcInitFile::useLocalHost | ( | ) | const [inline] |
Whether to restrict access to the local host.
Referenced by gnash::AOS4Gui::run(), gnash::AOS4Gui::ReadPrefs(), and gnash::Qt4GuiPrefs::PreferencesDialog::PreferencesDialog().
void gnash::RcInitFile::useLocalHost | ( | bool | value | ) |
Set whether to restrict access to the local host.
References _localhostOnly.
bool gnash::RcInitFile::useParserDump | ( | ) | const [inline] |
void gnash::RcInitFile::useParserDump | ( | bool | value | ) |
References _parserDump.
bool gnash::RcInitFile::usePluginSound | ( | ) | const [inline] |
void gnash::RcInitFile::usePluginSound | ( | bool | value | ) | [inline] |
bool gnash::RcInitFile::useSound | ( | ) | const [inline] |
void gnash::RcInitFile::useSound | ( | bool | value | ) | [inline] |
bool gnash::RcInitFile::useSplashScreen | ( | ) | const [inline] |
void gnash::RcInitFile::useSplashScreen | ( | bool | value | ) |
References _splashScreen.
bool gnash::RcInitFile::useWriteLog | ( | ) | const [inline] |
void gnash::RcInitFile::useWriteLog | ( | bool | value | ) |
References _writeLog.
int gnash::RcInitFile::verbosityLevel | ( | ) | const [inline] |
void gnash::RcInitFile::verbosityLevel | ( | int | value | ) | [inline] |
void gnash::RcInitFile::writeList | ( | const PathList & | list, |
std::ostream & | o | ||
) | [protected] |
Referenced by updateFile(), and dump().
bool gnash::RcInitFile::_actionDump [protected] |
Enable dumping actionscript classes.
Referenced by parseFile(), updateFile(), useActionDump(), and dump().
PathList gnash::RcInitFile::_blacklist [protected] |
Blocked Domains.
Referenced by parseFile(), updateFile(), and dump().
gnash::RcInitFile::_certdir [protected] |
This is the path to the directory containing cert files
Referenced by parseFile().
gnash::RcInitFile::_certfile [protected] |
This is the name of the client certificate file
Referenced by parseFile().
bool gnash::RcInitFile::_debug [protected] |
Enable debugging of this class.
bool gnash::RcInitFile::_debugger [protected] |
Enable the Flash movie debugger.
Referenced by parseFile(), updateFile(), and dump().
boost::uint32_t gnash::RcInitFile::_delay [protected] |
The timer delay.
Referenced by parseFile(), updateFile(), and dump().
bool gnash::RcInitFile::_extensionsEnabled [protected] |
Enable scanning plugin path for extensions.
Referenced by parseFile(), updateFile(), and dump().
std::string gnash::RcInitFile::_flashSystemManufacturer [protected] |
String to pass as System.capabilities.manufacturer in Actionscript.
Referenced by parseFile().
std::string gnash::RcInitFile::_flashSystemOS [protected] |
String to pass as System.capabilities.os in Actionscript. If empty, leaves detection to System.cpp (default).
Referenced by parseFile(), and updateFile().
std::string gnash::RcInitFile::_flashVersionString [protected] |
String to pass as $version in Actionscript.
Referenced by parseFile(), updateFile(), and dump().
std::string gnash::RcInitFile::_gstaudiosink [protected] |
String representing the first GStreamer audio output pipeline to try.
Referenced by parseFile(), updateFile(), and dump().
std::string gnash::RcInitFile::_hwaccel [protected] |
Whether to use HW video decoding support, no value means disabled. The only currently supported values are: none, vaapi, or xv. omap support is coming.
Referenced by parseFile().
bool gnash::RcInitFile::_ignoreFSCommand [protected] |
Whether the player should respond to fscommands (showmenu, quit etc)
Referenced by parseFile(), and updateFile().
bool gnash::RcInitFile::_ignoreShowMenu [protected] |
Whether the player will recognize changes to Stage.showMenu in AS default value is true
Referenced by parseFile(), and updateFile().
bool gnash::RcInitFile::_insecureSSL [protected] |
Allow SSL connections without verifying the certificate.
Referenced by parseFile(), updateFile(), and dump().
bool gnash::RcInitFile::_lcdisabled [protected] |
Referenced by parseFile(), and updateFile().
boost::uint32_t gnash::RcInitFile::_lcshmkey [protected] |
Shared memory segment key (can be set for compatibility with other players.)
Referenced by parseFile(), and updateFile().
bool gnash::RcInitFile::_lctrace [protected] |
Trace local connection activity (in log)
Referenced by parseFile(), and updateFile().
bool gnash::RcInitFile::_localdomainOnly [protected] |
Only access network resources in the local domain.
Referenced by parseFile(), updateFile(), useLocalDomain(), and dump().
bool gnash::RcInitFile::_localhostOnly [protected] |
Only access network resources on the local host.
Referenced by parseFile(), updateFile(), useLocalHost(), and dump().
PathList gnash::RcInitFile::_localSandboxPath [protected] |
Local sandbox: the set of resources on the filesystem we want to give the current movie access to.
Referenced by parseFile(), and dump().
bool gnash::RcInitFile::_lockScriptLimits [protected] |
Whether to ignore SWF ScriptLimits tags.
Referenced by parseFile(), and updateFile().
std::string gnash::RcInitFile::_log [protected] |
The name of the debug log.
Referenced by parseFile(), updateFile(), and dump().
std::string gnash::RcInitFile::_mediaCacheDir [protected] |
Referenced by parseFile(), and updateFile().
std::string gnash::RcInitFile::_mediahandler [protected] |
Which media player backend to use, no value means use the default. The default is set in the MediaFactory initialization table.
Referenced by parseFile().
int gnash::RcInitFile::_microphoneDevice [protected] |
Referenced by parseFile().
boost::uint32_t gnash::RcInitFile::_movieLibraryLimit [protected] |
Max number of movie clips to store in the library.
Referenced by parseFile(), and updateFile().
bool gnash::RcInitFile::_parserDump [protected] |
Enable dumping parser data.
Referenced by parseFile(), updateFile(), useParserDump(), and dump().
bool gnash::RcInitFile::_pluginSound [protected] |
Enable sound for the plugin.
Referenced by parseFile(), updateFile(), and dump().
bool gnash::RcInitFile::_popups [protected] |
Referenced by parseFile(), and updateFile().
int gnash::RcInitFile::_quality [protected] |
The quality to display SWFs in. -1 to allow the SWF to override.
Referenced by parseFile(), and updateFile().
std::string gnash::RcInitFile::_renderer [protected] |
Which renderer backend to use, no value means use the default. The currently supported values are agg, opengl, or cairo. AGG being the default.
Referenced by parseFile().
int gnash::RcInitFile::_retries [protected] |
the number of retries for a thread
gnash::RcInitFile::_rootcert [protected] |
This is the name of the root certificate
Referenced by parseFile().
bool gnash::RcInitFile::_saveLoadedMedia [protected] |
Referenced by parseFile(), and updateFile().
bool gnash::RcInitFile::_saveStreamingMedia [protected] |
Referenced by parseFile(), and updateFile().
int gnash::RcInitFile::_scriptsRecursionLimit [protected] |
The max actionscript function call stack depth.
Referenced by parseFile(), and updateFile().
int gnash::RcInitFile::_scriptsTimeout [protected] |
The number of seconds after which action execution is considered to be slow enough to prompt the user for aborting
Referenced by parseFile(), and updateFile().
bool gnash::RcInitFile::_showMouse [protected] |
Show the mouse pointer.
Referenced by parseFile(), and updateFile().
bool gnash::RcInitFile::_sollocaldomain [protected] |
Referenced by parseFile(), and updateFile().
bool gnash::RcInitFile::_solreadonly [protected] |
Whether SOL files can be written.
Referenced by parseFile(), and updateFile().
std::string gnash::RcInitFile::_solsandbox [protected] |
SOL Sandbox: This is the only dir .sol (Shared Object) files can be written in, or read from.
Referenced by RcInitFile(), parseFile(), and updateFile().
bool gnash::RcInitFile::_sound [protected] |
Enable the sound handler at startup.
Referenced by parseFile(), updateFile(), and dump().
bool gnash::RcInitFile::_splashScreen [protected] |
Display a splash screen when loading a movie.
Referenced by parseFile(), updateFile(), useSplashScreen(), and dump().
bool gnash::RcInitFile::_startStopped [protected] |
Start the gui in "stop" mode.
Referenced by parseFile(), and updateFile().
double gnash::RcInitFile::_streamsTimeout [protected] |
The number of seconds of inactivity triggering download timeout.
Referenced by parseFile(), and updateFile().
std::string gnash::RcInitFile::_urlOpenerFormat [protected] |
Command format to use to open urls.
The u label will need to be substituted by the url (properly escaped)
Referenced by RcInitFile(), parseFile(), and updateFile().
bool gnash::RcInitFile::_useXv [protected] |
bool gnash::RcInitFile::_verboseASCodingErrors [protected] |
Enable ActionScript errors verbosity.
Referenced by parseFile(), updateFile(), showASCodingErrors(), and dump().
bool gnash::RcInitFile::_verboseMalformedAMF [protected] |
Enable Malformed AMF verbosity.
Referenced by parseFile(), and updateFile().
bool gnash::RcInitFile::_verboseMalformedSWF [protected] |
Enable Malformed SWF verbosity.
Referenced by parseFile(), updateFile(), and showMalformedSWFErrors().
boost::uint32_t gnash::RcInitFile::_verbosity [protected] |
Level of debugging output.
Referenced by parseFile(), updateFile(), and dump().
int gnash::RcInitFile::_webcamDevice [protected] |
FIXME: this should probably eventually be changed to a more readable config option instead of an integer
Referenced by parseFile().
PathList gnash::RcInitFile::_whitelist [protected] |
Allowed domains.
Referenced by parseFile(), updateFile(), and dump().
bool gnash::RcInitFile::_writeLog [protected] |
Enable writing the debug log to disk.
Referenced by parseFile(), updateFile(), useWriteLog(), and dump().
std::string gnash::RcInitFile::_wwwroot [protected] |
The root path for the streaming server.
Referenced by parseFile(), and updateFile().