Go to the documentation of this file.
21 #ifndef GNASH_LOADVARIABLESTHREAD_H
22 #define GNASH_LOADVARIABLESTHREAD_H
51 typedef std::map<std::string, std::string>
ValuesMap;
77 const std::string& postdata);
100 void startThread(std::unique_ptr<IOChannel> stream);
106 static ValuesMap completeLoad(std::unique_ptr<IOChannel> stream,
107 const std::atomic<int8_t>& status);
112 std::atomic<int8_t> _status;
117 #endif // GNASH_LOADVARIABLESTHREAD_H
const char * textEncodingName(TextEncoding enc)
Return name of a text encoding.
Definition: utf8.cpp:262
LoadVariablesThread(const StreamProvider &sp, const URL &url)
Construct a LoadVariablesThread opening a stream for the given URL.
Definition: LoadVariablesThread.cpp:137
std::map< std::string, std::string > ValuesMap
Definition: LoadVariablesThread.h:51
void log_debug(StringType msg, Args... args)
Definition: log.h:301
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
@ encUNSPECIFIED
Definition: utf8.h:115
static void parse_querystring(const std::string &query_string, std::map< std::string, std::string > &target_map)
Parse a query string filling the provided map.
Definition: URL.cpp:354
void log_error(StringType msg, Args... args)
Definition: log.h:283
Status
Definition: LoadVariablesThread.h:53
@ encUTF8
Definition: utf8.h:116
A StreamProvider makes IOChannels available to the core on request.
Definition: StreamProvider.h:50
virtual std::unique_ptr< IOChannel > getStream(const URL &url, bool namedCacheFile=false) const
Returned stream ownership is transferred to caller.
Definition: StreamProvider.cpp:61
bool completed()
Definition: LoadVariablesThread.h:89
const char * stripBOM(const char *in, size_t &size, TextEncoding &encoding)
Interpret (and skip) Byte Order Mark in input stream.
Definition: utf8.cpp:208
ValuesMap getValues()
Return the name,value map parsed out of the loaded stream.
Definition: LoadVariablesThread.h:83
A manager for loadVariable requests.
Definition: LoadVariablesThread.h:49
~LoadVariablesThread()
Destroy the LoadVariablesThread, joining the thread if spawned.
Definition: LoadVariablesThread.cpp:157
std::string url
Definition: gnash.cpp:59
TextEncoding
Definition: utf8.h:114
Definition: LoadVariablesThread.h:41
Uniform Resource Locator.
Definition: URL.h:35
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289