28 #include <boost/cstdint.hpp>
29 #include <boost/tokenizer.hpp>
33 #if !defined(_WIN32) && !defined(__HAIKU__) && !defined(ANDROID)
37 typedef boost::uint32_t key_t;
39 #endif // _WIN32 and __HAIKU__
54 bool parseFile(
const std::string& filespec);
62 bool updateFile(
const std::string& filespec);
72 void useSplashScreen(
bool value);
75 void useActionDump(
bool value);
78 void useParserDump(
bool value);
81 void useWriteLog(
bool value);
87 void showASCodingErrors(
bool value);
90 void showMalformedSWFErrors(
bool value);
93 void showMalformedAMFErrors(
bool value);
136 void useLocalDomain(
bool value);
142 void useLocalHost(
bool value);
154 void setWhitelist (
const std::vector<std::string>& list) { _whitelist = list; }
183 _localSandboxPath.push_back(dir);
193 _localSandboxPath =
path;
197 return _flashVersionString;
201 _flashVersionString = value;
205 return _flashSystemOS;
209 _flashSystemOS = value;
213 return _flashSystemManufacturer;
217 _flashSystemManufacturer = value;
241 return _urlOpenerFormat;
246 _urlOpenerFormat = value;
290 key_t
getLCShmKey()
const {
return static_cast<key_t
>(_lcshmkey); }
306 void setMediaDir(
const std::string& value) { _mediaCacheDir = value; }
366 void writeList(
const PathList& list, std::ostream&
o);
378 static void expandPath(std::string&
path);
389 static bool extractSetting(
bool &var,
const std::string& pattern,
390 const std::string &variable,
const std::string &value);
403 const std::string &variable,
const std::string &value)
408 if (noCaseCompare(variable, pattern)) {
409 std::istringstream in(value);
410 if (in >> num)
return true;
428 static bool extractDouble(
double &out,
const std::string& pattern,
429 const std::string &variable,
const std::string &value);
438 void parseList(std::vector<std::string>& list,
const std::string &action,
439 const std::string &items);
441 typedef boost::char_separator<char>
Sep;
442 typedef boost::tokenizer< Sep >
Tok;