Gnash  0.8.11dev
rc.h
Go to the documentation of this file.
1 // rc.h: "Run Command" configuration file declarations, for Gnash.
2 //
3 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
4 // Free Software Foundation, Inc
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 
20 #ifndef GNASH_RC_H
21 #define GNASH_RC_H
22 
23 #include "dsodefs.h"
24 #include <string>
25 #include <vector>
26 #include <iosfwd>
27 #include <sstream>
28 #include <cstdint>
29 #include <boost/tokenizer.hpp>
30 
31 #include "StringPredicates.h"
32 
33 #if !defined(_WIN32) && !defined(__HAIKU__) && !defined(ANDROID)
34 #include <sys/shm.h>
35 #else
36 #ifdef _WIN32
37  typedef std::uint32_t key_t;
38 #endif // _WIN32
39 #endif // _WIN32 and __HAIKU__
40 
41 namespace gnash {
42 
44 {
45 public:
46 
48  static RcInitFile& getDefaultInstance();
49 
51  //
52  void loadFiles();
53 
54  bool parseFile(const std::string& filespec);
55 
59  //
62  bool updateFile(const std::string& filespec);
63 
67  //
69  bool updateFile();
70 
71  bool useSplashScreen() const { return _splashScreen; }
72  void useSplashScreen(bool value);
73 
74  bool useActionDump() const { return _actionDump; }
75  void useActionDump(bool value);
76 
77  bool useParserDump() const { return _parserDump; }
78  void useParserDump(bool value);
79 
80  bool useWriteLog() const { return _writeLog; }
81  void useWriteLog(bool value);
82 
83  int getTimerDelay() const { return _delay; }
84  void setTimerDelay(int x) { _delay = x; }
85 
86  bool showASCodingErrors() const { return _verboseASCodingErrors; }
87  void showASCodingErrors(bool value);
88 
89  bool showMalformedSWFErrors() const { return _verboseMalformedSWF; }
90  void showMalformedSWFErrors(bool value);
91 
92  bool showMalformedAMFErrors() const { return _verboseMalformedAMF; }
93  void showMalformedAMFErrors(bool value);
94 
95  int getMovieLibraryLimit() const { return _movieLibraryLimit; }
96  void setMovieLibraryLimit(int value) { _movieLibraryLimit = value; }
97 
98  bool enableExtensions() const { return _extensionsEnabled; }
99 
101  //
103  bool startStopped() const { return _startStopped; }
104  void startStopped(bool value) { _startStopped = value; }
105 
106  bool insecureSSL() const { return _insecureSSL; }
107  void insecureSSL(bool value) { _insecureSSL = value; }
108 
109  int qualityLevel() const { return _quality; }
110  void qualityLevel(int value) { _quality = value; }
111 
112  int verbosityLevel() const { return _verbosity; }
113  void verbosityLevel(int value) { _verbosity = value; }
114 
115  void setDebugLog(const std::string &x) { _log = x; }
116  const std::string& getDebugLog() const { return _log; }
117 
118  void setDocumentRoot(const std::string &x) { _wwwroot = x; }
119  std::string getDocumentRoot() { return _wwwroot; }
120 
121  bool useDebugger() const { return _debugger; }
122  void useDebugger(bool value) { _debugger = value; }
123 
124  bool useSound() const { return _sound; }
125  void useSound(bool value) { _sound = value; }
126 
127  // strk: I'd drop this, and allow an -f switch to select
128  // the gnashrc file to use instead
129  bool usePluginSound() const { return _pluginSound; }
130  void usePluginSound(bool value) { _pluginSound = value; }
131 
132  bool popupMessages() const { return _popups; }
133  void interfacePopups(bool value) { _popups = value; }
134 
135  bool useLocalDomain() const { return _localdomainOnly; }
136  void useLocalDomain(bool value);
137 
139  bool useLocalHost() const { return _localhostOnly; }
140 
142  void useLocalHost(bool value);
143 
144  typedef std::vector<std::string> PathList;
145 
147  //
149  const PathList& getWhiteList() const { return _whitelist; }
150 
152  //
154  void setWhitelist (const std::vector<std::string>& list) { _whitelist = list; }
155 
157  //
159  const PathList& getBlackList() const { return _blacklist; }
160 
164  bool showMouse() const { return _showMouse; }
165 
167  //
169  void setBlacklist (const std::vector<std::string>& list) {
170  _blacklist = list;
171  }
172 
174  //
178  const PathList& getLocalSandboxPath() const { return _localSandboxPath; }
179 
181  void addLocalSandboxPath(const std::string& dir)
182  {
183  _localSandboxPath.push_back(dir);
184  }
185 
189  //
192  {
193  _localSandboxPath = path;
194  }
195 
196  const std::string& getFlashVersionString() const {
197  return _flashVersionString;
198  }
199 
200  void setFlashVersionString(const std::string& value) {
201  _flashVersionString = value;
202  }
203 
204  const std::string& getFlashSystemOS() const {
205  return _flashSystemOS;
206  }
207 
208  void setFlashSystemOS(const std::string& value) {
209  _flashSystemOS = value;
210  }
211 
212  const std::string& getFlashSystemManufacturer() const {
213  return _flashSystemManufacturer;
214  }
215 
216  void setFlashSystemManufacturer(const std::string& value) {
217  _flashSystemManufacturer = value;
218  }
219 
220  const std::string& getGstAudioSink() const { return _gstaudiosink; }
221 
222  void setGstAudioSink(const std::string& value) { _gstaudiosink = value; }
223 
224  int getRetries() const { return _retries; }
225 
226  void setRetries(int x) { _retries = x; }
227 
229  double getStreamsTimeout() const { return _streamsTimeout; }
230 
232  void setStreamsTimeout(const double &x) { _streamsTimeout = x; }
233 
235  //
239  const std::string &getURLOpenerFormat() const
240  {
241  return _urlOpenerFormat;
242  }
243 
244  void setURLOpenerFormat(const std::string& value)
245  {
246  _urlOpenerFormat = value;
247  }
248 
249  // Get the name of the hardware acclerator to use for video
250  const std::string &getHWAccel() const { return _hwaccel; }
251 
252  // Set the name of the hardware acclerator to use for video
253  void setHWAccel(const std::string &x) { _hwaccel = x; }
254 
255  // Get the name of the renderer to draw the display
256  const std::string& getRenderer() const { return _renderer; }
257 
258  // Set the name of the renderer to draw the display
259  void setRenderer(const std::string& x) { _renderer = x; }
260 
261  // Get the name of the media handler to use for video/audio
262  const std::string& getMediaHandler() const { return _mediahandler; }
263 
264  // Set the name of the media handler to use for video/audio
265  void setMediaHandler(const std::string& x) { _mediahandler = x; }
266 
267  // Get the location of the sandbox for .sol files
268  const std::string &getSOLSafeDir() const { return _solsandbox; }
269 
270  // Set the location of the sandbox for .sol files
271  void setSOLSafeDir(const std::string &x) { _solsandbox = x; }
272 
273  bool getSOLLocalDomain() const { return _sollocaldomain; }
274 
275  void setSOLLocalDomain(bool x) { _sollocaldomain = x; }
276 
277  bool getSOLReadOnly() const { return _solreadonly; }
278 
279  void setSOLReadOnly(bool x) { _solreadonly = x; }
280 
281  bool getLocalConnection() const { return _lcdisabled; }
282 
283  void setLocalConnection(bool x) { _lcdisabled = x; }
284 
286  bool getLCTrace() const { return _lctrace; }
287 
288  void setLCTrace(bool x) { _lctrace = x; }
289 
290  key_t getLCShmKey() const { return static_cast<key_t>(_lcshmkey); }
291 
292  void setLCShmKey(bool x) { _lcshmkey = x; }
293 
294  bool ignoreFSCommand() const { return _ignoreFSCommand; }
295 
296  void ignoreFSCommand(bool value) { _ignoreFSCommand = value; }
297 
298  void saveStreamingMedia(bool value) { _saveStreamingMedia = value; }
299 
300  bool saveStreamingMedia() const { return _saveStreamingMedia; }
301 
302  void saveLoadedMedia(bool value) { _saveLoadedMedia = value; }
303 
304  bool saveLoadedMedia() const { return _saveLoadedMedia; }
305 
306  void setMediaDir(const std::string& value) { _mediaCacheDir = value; }
307 
308  const std::string& getMediaDir() const { return _mediaCacheDir; }
309 
310  void setWebcamDevice(int value) {_webcamDevice = value;}
311 
312  int getWebcamDevice() const {return _webcamDevice;}
313 
314  void setAudioInputDevice(int value) {_microphoneDevice = value;}
315 
316  int getAudioInputDevice() {return _microphoneDevice;}
317 
319  const std::string& getRootCert() const {
320  return _rootcert;
321  }
323  void setRootCert(const std::string& value) {
324  _rootcert = value;
325  }
326 
328  const std::string& getCertFile() const {
329  return _certfile;
330  }
332  void setCertFile(const std::string& value) {
333  _certfile = value;
334  }
335 
337  const std::string& getCertDir() const {
338  return _certdir;
339  }
341  void setCertDir(const std::string& value) {
342  _certdir = value;
343  }
344 
345  void ignoreShowMenu(bool value) { _ignoreShowMenu=value; }
346 
347  bool ignoreShowMenu() const { return _ignoreShowMenu; }
348 
349  int getScriptsTimeout() const { return _scriptsTimeout; }
350 
351  void setScriptsTimeout(int x) { _scriptsTimeout = x; }
352 
353  int getScriptsRecursionLimit() const { return _scriptsRecursionLimit; }
354 
355  void setScriptsRecursionLimit(int x) { _scriptsRecursionLimit = x; }
356 
357  void lockScriptLimits(bool x) { _lockScriptLimits = x; }
358 
359  bool lockScriptLimits() const { return _lockScriptLimits; }
360 
361  void dump();
362 
363 protected:
364 
365  // A function only for writing path lists to an outstream.
366  void writeList(const PathList& list, std::ostream& o);
367 
369  RcInitFile();
370 
372  ~RcInitFile();
373 
378  static void expandPath(std::string& path);
379 
383  //
389  static bool extractSetting(bool &var, const std::string& pattern,
390  const std::string &variable, const std::string &value);
391 
395  //
401  template<typename T>
402  static bool extractNumber(T& num, const std::string& pattern,
403  const std::string &variable, const std::string &value)
404  {
405 
406  StringNoCaseEqual noCaseCompare;
407 
408  if (noCaseCompare(variable, pattern)) {
409  std::istringstream in(value);
410  if (in >> num) return true;
411 
412  num = 0;
413  return true;
414  }
415 
416  return false;
417  }
418 
422  //
428  static bool extractDouble(double &out, const std::string& pattern,
429  const std::string &variable, const std::string &value);
430 
431 
433  //
438  void parseList(std::vector<std::string>& list, const std::string &action,
439  const std::string &items);
440 
441  typedef boost::char_separator<char> Sep;
442  typedef boost::tokenizer< Sep > Tok;
443 
445  std::uint32_t _delay;
446 
448  std::uint32_t _movieLibraryLimit;
449 
451  bool _debug;
452 
454  bool _debugger;
455 
457  std::uint32_t _verbosity;
458 
460  //
464  std::string _urlOpenerFormat;
465 
467  std::string _flashVersionString;
468 
470  std::string _gstaudiosink;
471 
475  std::string _flashSystemOS;
476 
481 
484 
487 
490 
493 
496 
499 
502 
505 
508 
511 
514 
516  std::string _log;
517 
519  bool _writeLog;
520 
522  std::string _wwwroot;
523 
525  int _retries;
526 
528  bool _sound;
529 
532 
535 
538 
541 
544 
548 
551  std::string _solsandbox;
552 
556 
557  // Disable local connection
559 
561  bool _lctrace;
562 
565  std::uint32_t _lcshmkey;
566 
570 
572  int _quality;
573 
575 
577 
578  std::string _mediaCacheDir;
579 
580  bool _popups;
581 
585 
587 
590  std::string _certfile;
591 
594  std::string _certdir;
595 
598  std::string _rootcert;
599 
603 
607  std::string _hwaccel;
608 
612  std::string _renderer;
613 
616  std::string _mediahandler;
617 
621 
624 
627 };
628 
629 // End of gnash namespace
630 }
631 
632 #endif
633 
634 
635 // local Variables:
636 // mode: C++
637 // indent-tabs-mode: t
638 // End:
gnash::RcInitFile::verbosityLevel
int verbosityLevel() const
Definition: rc.h:112
gnash::RcInitFile::getGstAudioSink
const std::string & getGstAudioSink() const
Definition: rc.h:220
gnash::RcInitFile::_showMouse
bool _showMouse
Show the mouse pointer.
Definition: rc.h:507
gnash::RcInitFile::Tok
boost::tokenizer< Sep > Tok
Definition: rc.h:442
gnash::RcInitFile::_writeLog
bool _writeLog
Enable writing the debug log to disk.
Definition: rc.h:519
gnash::RcInitFile::useActionDump
bool useActionDump() const
Definition: rc.h:74
path
VGPath path
Definition: testr_gtk.cpp:84
gnash::RcInitFile::RcInitFile
RcInitFile()
Construct only by getDefaultInstance()
Definition: rc.cpp:70
gnash::key::l
@ l
Definition: GnashKey.h:158
gnash::RcInitFile::setLCTrace
void setLCTrace(bool x)
Definition: rc.h:288
gnash::RcInitFile::getTimerDelay
int getTimerDelay() const
Definition: rc.h:83
gnash::RcInitFile::_actionDump
bool _actionDump
Enable dumping actionscript classes.
Definition: rc.h:483
gnash::RcInitFile::_verbosity
std::uint32_t _verbosity
Level of debugging output.
Definition: rc.h:457
gnash::RcInitFile::_popups
bool _popups
Definition: rc.h:580
DEFAULT_STREAMS_TIMEOUT
#define DEFAULT_STREAMS_TIMEOUT
Definition: gnashconfig.h:69
gnash::RcInitFile::dump
void dump()
Definition: rc.cpp:890
gnash::RcInitFile::_insecureSSL
bool _insecureSSL
Allow SSL connections without verifying the certificate.
Definition: rc.h:540
gnash::RcInitFile::interfacePopups
void interfacePopups(bool value)
Definition: rc.h:133
gnash::RcInitFile::useSound
void useSound(bool value)
Definition: rc.h:125
gnash::RcInitFile::_wwwroot
std::string _wwwroot
The root path for the streaming server
Definition: rc.h:522
gnash::RcInitFile::useDebugger
void useDebugger(bool value)
Definition: rc.h:122
gnash::RcInitFile::_lcshmkey
std::uint32_t _lcshmkey
Definition: rc.h:565
gnash::RcInitFile::getRetries
int getRetries() const
Definition: rc.h:224
gnash::key::T
@ T
Definition: GnashKey.h:132
gnash::RcInitFile::setLCShmKey
void setLCShmKey(bool x)
Definition: rc.h:292
gnash::RcInitFile::_lockScriptLimits
bool _lockScriptLimits
Whether to ignore SWF ScriptLimits tags.
Definition: rc.h:626
DEFAULT_SOL_SAFEDIR
#define DEFAULT_SOL_SAFEDIR
Definition: gnashconfig.h:66
dsodefs.h
gnash::RcInitFile::setWhitelist
void setWhitelist(const std::vector< std::string > &list)
Sets the RcInitFile whitelist of domains to allow.
Definition: rc.h:154
gnash::RcInitFile::setStreamsTimeout
void setStreamsTimeout(const double &x)
Set seconds of inactivity before timing out streams downloads.
Definition: rc.h:232
gnash::RcInitFile::getScriptsRecursionLimit
int getScriptsRecursionLimit() const
Definition: rc.h:353
gnash::RcInitFile::setFlashSystemOS
void setFlashSystemOS(const std::string &value)
Definition: rc.h:208
gnash::RcInitFile::_sollocaldomain
bool _sollocaldomain
Definition: rc.h:555
gnash::key::i
@ i
Definition: GnashKey.h:155
gnash::RcInitFile::setSOLReadOnly
void setSOLReadOnly(bool x)
Definition: rc.h:279
gnash::RcInitFile::loadFiles
void loadFiles()
Load and parse files, looking in the usual places.
Definition: rc.cpp:146
gnash::RcInitFile::setLocalConnection
void setLocalConnection(bool x)
Definition: rc.h:283
gnash::RcInitFile::getBlackList
const PathList & getBlackList() const
Get the current RcInitFile blacklist of domains to block.
Definition: rc.h:159
gnash::RcInitFile::_solreadonly
bool _solreadonly
Whether SOL files can be written.
Definition: rc.h:554
rc.h
gnash::RcInitFile::getMediaHandler
const std::string & getMediaHandler() const
Definition: rc.h:262
_
#define _(String)
Definition: log.h:44
gnash::RcInitFile::_lctrace
bool _lctrace
Trace local connection activity (in log)
Definition: rc.h:561
gnash::RcInitFile::_mediahandler
std::string _mediahandler
Definition: rc.h:616
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::RcInitFile::_ignoreFSCommand
bool _ignoreFSCommand
Definition: rc.h:569
gnash::RcInitFile::_urlOpenerFormat
std::string _urlOpenerFormat
Command format to use to open urls.
Definition: rc.h:464
gnash::RcInitFile::showMalformedAMFErrors
void showMalformedAMFErrors(bool value)
gnash::RcInitFile::_debug
bool _debug
Enable debugging of this class.
Definition: rc.h:451
gnash::RcInitFile::_retries
int _retries
the number of retries for a thread
Definition: rc.h:525
gnash::RcInitFile::enableExtensions
bool enableExtensions() const
Definition: rc.h:98
gnash::RcInitFile::saveStreamingMedia
bool saveStreamingMedia() const
Definition: rc.h:300
gnash::RcInitFile::setMovieLibraryLimit
void setMovieLibraryLimit(int value)
Definition: rc.h:96
gnash::RcInitFile::parseFile
bool parseFile(const std::string &filespec)
Definition: rc.cpp:353
gnash::RcInitFile::getMovieLibraryLimit
int getMovieLibraryLimit() const
Definition: rc.h:95
gnash::RcInitFile::popupMessages
bool popupMessages() const
Definition: rc.h:132
gnash::RcInitFile::getWebcamDevice
int getWebcamDevice() const
Definition: rc.h:312
gnash::RcInitFile::setRetries
void setRetries(int x)
Definition: rc.h:226
gnash::RcInitFile::setScriptsRecursionLimit
void setScriptsRecursionLimit(int x)
Definition: rc.h:355
gnash::RcInitFile::showMalformedSWFErrors
bool showMalformedSWFErrors() const
Definition: rc.h:89
gnash::RcInitFile::updateFile
bool updateFile()
Writes a gnashrc file to the file specified in the GNASHRC environment variable OR to the user's home...
Definition: rc.cpp:663
gnash::RcInitFile::getDebugLog
const std::string & getDebugLog() const
Definition: rc.h:116
gnash::log_error
void log_error(StringType msg, Args... args)
Definition: log.h:283
gnash::RcInitFile::_pluginSound
bool _pluginSound
Enable sound for the plugin.
Definition: rc.h:531
gnash::RcInitFile::saveLoadedMedia
void saveLoadedMedia(bool value)
Definition: rc.h:302
gnash::RcInitFile::_verboseMalformedSWF
bool _verboseMalformedSWF
Enable Malformed SWF verbosity.
Definition: rc.h:492
gnash::RcInitFile::saveLoadedMedia
bool saveLoadedMedia() const
Definition: rc.h:304
gnash::RcInitFile::_saveStreamingMedia
bool _saveStreamingMedia
Definition: rc.h:574
gnash::RcInitFile::_log
std::string _log
The name of the debug log.
Definition: rc.h:516
gnash::RcInitFile::getSOLLocalDomain
bool getSOLLocalDomain() const
Definition: rc.h:273
gnash::RcInitFile::_mediaCacheDir
std::string _mediaCacheDir
Definition: rc.h:578
gnash::RcInitFile::_renderer
std::string _renderer
Definition: rc.h:612
gnash::key::t
@ t
Definition: GnashKey.h:166
gnash::RcInitFile::getLocalConnection
bool getLocalConnection() const
Definition: rc.h:281
gnash::RcInitFile::useLocalDomain
bool useLocalDomain() const
Definition: rc.h:135
gnash::RcInitFile::setDocumentRoot
void setDocumentRoot(const std::string &x)
Definition: rc.h:118
gnash::RcInitFile::_verboseASCodingErrors
bool _verboseASCodingErrors
Enable ActionScript errors verbosity.
Definition: rc.h:489
gnash::RcInitFile::extractDouble
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.
Definition: rc.cpp:260
StringPredicates.h
gnash::RcInitFile::Sep
boost::char_separator< char > Sep
Definition: rc.h:441
gnash::RcInitFile::setRootCert
void setRootCert(const std::string &value)
Set the Root SSL certificate.
Definition: rc.h:323
gnash::RcInitFile::getSOLReadOnly
bool getSOLReadOnly() const
Definition: rc.h:277
gnash::RcInitFile::parseList
void parseList(std::vector< std::string > &list, const std::string &action, const std::string &items)
parses a space-separated list into std::vector list
Definition: rc.cpp:231
gnash::RcInitFile::_solsandbox
std::string _solsandbox
SOL Sandbox: This is the only dir .sol (Shared Object) files can be written in, or read from.
Definition: rc.h:551
gnash::RcInitFile::_microphoneDevice
int _microphoneDevice
Definition: rc.h:586
gnash::RcInitFile::setWebcamDevice
void setWebcamDevice(int value)
Definition: rc.h:310
gnash::RcInitFile::_lcdisabled
bool _lcdisabled
Definition: rc.h:558
gnash::RcInitFile::insecureSSL
void insecureSSL(bool value)
Definition: rc.h:107
gnash::RcInitFile::ignoreShowMenu
bool ignoreShowMenu() const
Definition: rc.h:347
gnash::RcInitFile::_flashVersionString
std::string _flashVersionString
String to pass as $version in Actionscript.
Definition: rc.h:467
gnash::StringNoCaseEqual
A case-insensitive string equality operator.
Definition: StringPredicates.h:42
gnash::RcInitFile::useSound
bool useSound() const
Definition: rc.h:124
gnash::RcInitFile::_webcamDevice
int _webcamDevice
Definition: rc.h:584
gnash::RcInitFile::_localSandboxPath
PathList _localSandboxPath
Local sandbox: the set of resources on the filesystem we want to give the current movie access to.
Definition: rc.h:547
gnash::RcInitFile::_debugger
bool _debugger
Enable the Flash movie debugger.
Definition: rc.h:454
gnash::RcInitFile::getLocalSandboxPath
const PathList & getLocalSandboxPath() const
Return the list of directories to be used as the 'local' sandbox.
Definition: rc.h:178
gnash::RcInitFile::showMouse
bool showMouse() const
Definition: rc.h:164
gnash::RcInitFile::getURLOpenerFormat
const std::string & getURLOpenerFormat() const
Get the URL opener command format.
Definition: rc.h:239
DEFAULT_FLASH_SYSTEM_OS
#define DEFAULT_FLASH_SYSTEM_OS
Definition: gnashconfig.h:60
gnash::RcInitFile::startStopped
void startStopped(bool value)
Definition: rc.h:104
gnash::RcInitFile::useLocalHost
bool useLocalHost() const
Whether to restrict access to the local host
Definition: rc.h:139
gnash::RcInitFile::saveStreamingMedia
void saveStreamingMedia(bool value)
Definition: rc.h:298
gnash::RcInitFile::qualityLevel
int qualityLevel() const
Definition: rc.h:109
gnash::RcInitFile::setGstAudioSink
void setGstAudioSink(const std::string &value)
Definition: rc.h:222
gnash::RcInitFile::_scriptsTimeout
int _scriptsTimeout
Definition: rc.h:620
gnash::RcInitFile::getMediaDir
const std::string & getMediaDir() const
Definition: rc.h:308
gnash::RcInitFile::getFlashSystemManufacturer
const std::string & getFlashSystemManufacturer() const
Definition: rc.h:212
gnash::RcInitFile::_gstaudiosink
std::string _gstaudiosink
String representing the first GStreamer audio output pipeline to try.
Definition: rc.h:470
gnash::RcInitFile::lockScriptLimits
void lockScriptLimits(bool x)
Definition: rc.h:357
gnash::RcInitFile::_certdir
std::string _certdir
Definition: rc.h:594
gnash::RcInitFile::verbosityLevel
void verbosityLevel(int value)
Definition: rc.h:113
gnash::RcInitFile::_whitelist
PathList _whitelist
Allowed domains.
Definition: rc.h:510
gnash::RcInitFile::useParserDump
bool useParserDump() const
Definition: rc.h:77
gnash::RcInitFile::PathList
std::vector< std::string > PathList
Definition: rc.h:144
gnash::RcInitFile::_localhostOnly
bool _localhostOnly
Only access network resources on the local host.
Definition: rc.h:504
gnash::RcInitFile::setAudioInputDevice
void setAudioInputDevice(int value)
Definition: rc.h:314
gnash::RcInitFile::ignoreFSCommand
void ignoreFSCommand(bool value)
Definition: rc.h:296
gnash::RcInitFile::_quality
int _quality
The quality to display SWFs in. -1 to allow the SWF to override.
Definition: rc.h:572
gnash::RcInitFile::addLocalSandboxPath
void addLocalSandboxPath(const std::string &dir)
Add a directory to the local sandbox list.
Definition: rc.h:181
log.h
gnash::RcInitFile::getRootCert
const std::string & getRootCert() const
Get the Root SSL certificate.
Definition: rc.h:319
gnash::RcInitFile::setHWAccel
void setHWAccel(const std::string &x)
Definition: rc.h:253
gnash::RcInitFile::_delay
std::uint32_t _delay
The timer delay.
Definition: rc.h:445
gnash::RcInitFile::getDocumentRoot
std::string getDocumentRoot()
Definition: rc.h:119
gnash::RcInitFile::_hwaccel
std::string _hwaccel
Definition: rc.h:607
gnash::RcInitFile::_startStopped
bool _startStopped
Start the gui in "stop" mode.
Definition: rc.h:537
gnash::RcInitFile::setSOLSafeDir
void setSOLSafeDir(const std::string &x)
Definition: rc.h:271
gnash::RcInitFile::ignoreFSCommand
bool ignoreFSCommand() const
Definition: rc.h:294
gnash::RcInitFile::showMalformedAMFErrors
bool showMalformedAMFErrors() const
Definition: rc.h:92
gnash::RcInitFile::_rootcert
std::string _rootcert
Definition: rc.h:598
gnashconfig.h
gnash::RcInitFile::getDefaultInstance
static RcInitFile & getDefaultInstance()
Return the default instance of RC file.
Definition: rc.cpp:61
gnash::RcInitFile::getLCShmKey
key_t getLCShmKey() const
Definition: rc.h:290
gnash::RcInitFile::extractSetting
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.
Definition: rc.cpp:209
DEFAULT_FLASH_MAJOR_VERSION
#define DEFAULT_FLASH_MAJOR_VERSION
Definition: gnashconfig.h:48
gnash::RcInitFile::expandPath
static void expandPath(std::string &path)
Definition: rc.cpp:279
gnash::RcInitFile::qualityLevel
void qualityLevel(int value)
Definition: rc.h:110
gnash::RcInitFile::getWhiteList
const PathList & getWhiteList() const
Get the current RcInitFile whitelist of domains to allow.
Definition: rc.h:149
gnash::RcInitFile::writeList
void writeList(const PathList &list, std::ostream &o)
Definition: rc.cpp:342
gnash::RcInitFile::setBlacklist
void setBlacklist(const std::vector< std::string > &list)
Sets the RcInitFile blacklist of domains to block.
Definition: rc.h:169
gnash::RcInitFile::setMediaHandler
void setMediaHandler(const std::string &x)
Definition: rc.h:265
LONG
#define LONG(x)
Definition: evtest.c:369
gnash::RcInitFile::setScriptsTimeout
void setScriptsTimeout(int x)
Definition: rc.h:351
gnash::RcInitFile::_certfile
std::string _certfile
Definition: rc.h:590
gnash::RcInitFile::extractNumber
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.
Definition: rc.h:402
DSOEXPORT
#define DSOEXPORT
Definition: dsodefs.h:55
gnash::RcInitFile::getAudioInputDevice
int getAudioInputDevice()
Definition: rc.h:316
gnash::RcInitFile::getCertDir
const std::string & getCertDir() const
Get the directory for client SSL certificates.
Definition: rc.h:337
gnash::RcInitFile::ignoreShowMenu
void ignoreShowMenu(bool value)
Definition: rc.h:345
gnash::RcInitFile::_streamsTimeout
double _streamsTimeout
The number of seconds of inactivity triggering download timeout.
Definition: rc.h:543
gnash::RcInitFile::getFlashVersionString
const std::string & getFlashVersionString() const
Definition: rc.h:196
gnash::RcInitFile::startStopped
bool startStopped() const
Return true if user is willing to start the gui in "stop" mode.
Definition: rc.h:103
gnash::RcInitFile::getSOLSafeDir
const std::string & getSOLSafeDir() const
Definition: rc.h:268
gnash::RcInitFile::setLocalSandboxPath
void setLocalSandboxPath(const PathList &path)
Definition: rc.h:191
gnash::RcInitFile::_verboseMalformedAMF
bool _verboseMalformedAMF
Enable Malformed AMF verbosity.
Definition: rc.h:495
gnash::RcInitFile::_saveLoadedMedia
bool _saveLoadedMedia
Definition: rc.h:576
gnash::RcInitFile::getHWAccel
const std::string & getHWAccel() const
Definition: rc.h:250
gnash::RcInitFile::insecureSSL
bool insecureSSL() const
Definition: rc.h:106
gnash::RcInitFile::setCertFile
void setCertFile(const std::string &value)
Set the Client SSL certificate.
Definition: rc.h:332
gnash::RcInitFile::setURLOpenerFormat
void setURLOpenerFormat(const std::string &value)
Definition: rc.h:244
gnash::RcInitFile::setDebugLog
void setDebugLog(const std::string &x)
Definition: rc.h:115
gnash::RcInitFile::setFlashVersionString
void setFlashVersionString(const std::string &value)
Definition: rc.h:200
DEFAULT_FLASH_REV_NUMBER
#define DEFAULT_FLASH_REV_NUMBER
Definition: gnashconfig.h:57
gnash::RcInitFile::~RcInitFile
~RcInitFile()
Never destroy (TODO: add a destroyDefaultInstance)
Definition: rc.cpp:140
DEFAULT_FLASH_PLATFORM_ID
#define DEFAULT_FLASH_PLATFORM_ID
Definition: gnashconfig.h:54
gnash::key::o
@ o
Definition: GnashKey.h:161
gnash::RcInitFile::useDebugger
bool useDebugger() const
Definition: rc.h:121
gnash::RcInitFile::getLCTrace
bool getLCTrace() const
Enable tracing all LocalConnection traffic.
Definition: rc.h:286
gnash::RcInitFile::getStreamsTimeout
double getStreamsTimeout() const
The number of seconds of inactivity before timing out streams downloads.
Definition: rc.h:229
gnash::RcInitFile::_sound
bool _sound
Enable the sound handler at startup
Definition: rc.h:528
gnash::RcInitFile::setCertDir
void setCertDir(const std::string &value)
Set the directory for client SSL certificates.
Definition: rc.h:341
gnash::RcInitFile::_blacklist
PathList _blacklist
Blocked Domains.
Definition: rc.h:513
gnash::RcInitFile::useWriteLog
bool useWriteLog() const
Definition: rc.h:80
gnash::RcInitFile::_ignoreShowMenu
bool _ignoreShowMenu
Definition: rc.h:602
gnash::RcInitFile::usePluginSound
bool usePluginSound() const
Definition: rc.h:129
gnash::RcInitFile::getRenderer
const std::string & getRenderer() const
Definition: rc.h:256
x
std::int32_t x
Definition: BitmapData_as.cpp:434
gnash::RcInitFile::_splashScreen
bool _splashScreen
Display a splash screen when loading a movie.
Definition: rc.h:498
gnash::RcInitFile::_parserDump
bool _parserDump
Enable dumping parser data.
Definition: rc.h:486
gnash::RcInitFile::showASCodingErrors
bool showASCodingErrors() const
Definition: rc.h:86
gnash::RcInitFile::getCertFile
const std::string & getCertFile() const
Get the Client SSL certificate.
Definition: rc.h:328
gnash::RcInitFile::lockScriptLimits
bool lockScriptLimits() const
Definition: rc.h:359
gnash::RcInitFile::usePluginSound
void usePluginSound(bool value)
Definition: rc.h:130
gnash::RcInitFile::_flashSystemManufacturer
std::string _flashSystemManufacturer
String to pass as System.capabilities.manufacturer in Actionscript.
Definition: rc.h:480
gnash::key::e
@ e
Definition: GnashKey.h:151
gnash::RcInitFile::setMediaDir
void setMediaDir(const std::string &value)
Definition: rc.h:306
gnash::RcInitFile::useSplashScreen
bool useSplashScreen() const
Definition: rc.h:71
gnash::RcInitFile::setFlashSystemManufacturer
void setFlashSystemManufacturer(const std::string &value)
Definition: rc.h:216
gnash::RcInitFile::_extensionsEnabled
bool _extensionsEnabled
Enable scanning plugin path for extensions.
Definition: rc.h:534
gnash::RcInitFile::_scriptsRecursionLimit
int _scriptsRecursionLimit
The max actionscript function call stack depth.
Definition: rc.h:623
gnash::RcInitFile::setTimerDelay
void setTimerDelay(int x)
Definition: rc.h:84
gnash::RcInitFile
Definition: rc.h:44
gnash::RcInitFile::_movieLibraryLimit
std::uint32_t _movieLibraryLimit
Max number of movie clips to store in the library
Definition: rc.h:448
gnash::RcInitFile::getFlashSystemOS
const std::string & getFlashSystemOS() const
Definition: rc.h:204
gnash::RcInitFile::getScriptsTimeout
int getScriptsTimeout() const
Definition: rc.h:349
gnash::RcInitFile::setSOLLocalDomain
void setSOLLocalDomain(bool x)
Definition: rc.h:275
gnash::RcInitFile::_flashSystemOS
std::string _flashSystemOS
String to pass as System.capabilities.os in Actionscript. If empty, leaves detection to System....
Definition: rc.h:475
DEFAULT_FLASH_MINOR_VERSION
#define DEFAULT_FLASH_MINOR_VERSION
Definition: gnashconfig.h:51
gnash::RcInitFile::_localdomainOnly
bool _localdomainOnly
Only access network resources in the local domain.
Definition: rc.h:501
gnash::RcInitFile::setRenderer
void setRenderer(const std::string &x)
Definition: rc.h:259