Go to the documentation of this file.
20 #ifndef GNASH_MOVIE_FACTORY_H
21 #define GNASH_MOVIE_FACTORY_H
25 #include <boost/intrusive_ptr.hpp>
32 class movie_definition;
86 const char* real_url =
nullptr,
bool startLoaderThread =
true,
87 const std::string* postdata =
nullptr);
114 std::unique_ptr<IOChannel> in,
const std::string&
url,
115 const RunResources& runResources,
bool startLoaderThread);
128 #endif // GNASH_IMPL_H
static DSOEXPORT boost::intrusive_ptr< movie_definition > makeMovie(const URL &url, const RunResources &runResources, const char *real_url=nullptr, bool startLoaderThread=true, const std::string *postdata=nullptr)
Create a gnash::movie_definition from the given URL.
Definition: MovieFactory.cpp:109
void add(const std::string &key, movie_definition *mov)
Definition: MovieLibrary.h:78
Library of SWF movies indexed by URL strings.
Definition: MovieLibrary.h:38
virtual bool eof() const =0
Return true if the end of the stream has been reached.
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
FileType
Definition: GnashEnums.h:25
@ GNASH_FILETYPE_JPEG
Definition: GnashEnums.h:26
@ m
Definition: GnashKey.h:159
virtual bool seek(std::streampos p)=0
Seek to the specified position.
void log_error(StringType msg, Args... args)
Definition: log.h:283
static DSOEXPORT void clear()
Clear the MovieFactory resources.
Definition: MovieFactory.cpp:157
@ r
Definition: GnashKey.h:164
A virtual IO channel.
Definition: IOChannel.h:43
bool get(const std::string &key, boost::intrusive_ptr< movie_definition > *ret)
Definition: MovieLibrary.h:66
type
Definition: GnashKey.h:330
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
@ GNASH_FILETYPE_PNG
Definition: GnashEnums.h:27
Definition: MovieFactory.h:40
std::string url
Definition: gnash.cpp:59
static RcInitFile & getDefaultInstance()
Return the default instance of RC file.
Definition: rc.cpp:61
std::uint8_t read_byte()
Read a single byte from the stream.
Definition: IOChannel.cpp:63
@ GNASH_FILETYPE_FLV
Definition: GnashEnums.h:30
@ GNASH_FILETYPE_GIF
Definition: GnashEnums.h:28
#define DSOEXPORT
Definition: dsodefs.h:55
@ GNASH_FILETYPE_SWF
Definition: GnashEnums.h:29
bool equal(string_table &st, string_table::key a, string_table::key b, bool caseless)
Check whether two keys are equivalent.
Definition: string_table.cpp:174
virtual std::streampos tell() const =0
Return current stream position.
void clear()
Definition: MovieLibrary.h:95
Uniform Resource Locator.
Definition: URL.h:35
@ GNASH_FILETYPE_UNKNOWN
Definition: GnashEnums.h:31
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
std::string str() const
Return the full absolute URL as a string.
Definition: URL.cpp:272
@ e
Definition: GnashKey.h:151
static MovieLibrary movieLibrary
Definition: MovieFactory.h:122
virtual std::streamsize read(void *dst, std::streamsize num)=0
Read the given number of bytes from the stream.