Gnash
0.8.10
|
A movie load request. More...
Public Member Functions | |
Request (const URL &u, const std::string &t, const std::string *postdata, as_object *handler) | |
const std::string & | getTarget () const |
const URL & | getURL () const |
const std::string & | getPostData () const |
bool | usePost () const |
as_object * | getHandler () const |
void | setReachable () const |
bool | getCompleted (boost::intrusive_ptr< movie_definition > &md) const |
Get the loaded movie definition, if any. | |
bool | pending () const |
Only check if request is completed. | |
bool | completed () const |
Only check if request is completed. | |
void | setCompleted (boost::intrusive_ptr< movie_definition > md) |
Complete the request. |
A movie load request.
gnash::MovieLoader::Request::Request | ( | const URL & | u, |
const std::string & | t, | ||
const std::string * | postdata, | ||
as_object * | handler | ||
) | [inline] |
postdata | If not null POST method will be used for HTTP. |
bool gnash::MovieLoader::Request::completed | ( | ) | const [inline] |
Only check if request is completed.
Referenced by gnash::MovieLoader::processCompletedRequests().
bool gnash::MovieLoader::Request::getCompleted | ( | boost::intrusive_ptr< movie_definition > & | md | ) | const [inline] |
Get the loaded movie definition, if any.
md | the loaded movie_definition is copied here if it was impossible to create one. |
RULE: if return is FALSE param 'md' will be set to 0. RULE: if return is TRUE param 'md' may be set to 0 or non 0. RULE: if parameter 'md' is set to non 0, TRUE must be returned.
locks _mutex
const std::string& gnash::MovieLoader::Request::getPostData | ( | ) | const [inline] |
const std::string& gnash::MovieLoader::Request::getTarget | ( | ) | const [inline] |
References _target.
Referenced by gnash::MovieLoader::processCompletedRequests().
bool gnash::MovieLoader::Request::pending | ( | ) | const [inline] |
Only check if request is completed.
void gnash::MovieLoader::Request::setCompleted | ( | boost::intrusive_ptr< movie_definition > | md | ) | [inline] |
Complete the request.
md | the loaded movie_definition, or 0 if it was impossible to create one. |
locks _mutex
void gnash::MovieLoader::Request::setReachable | ( | ) | const [inline] |
References _handler.
Referenced by gnash::MovieLoader::setReachable().
bool gnash::MovieLoader::Request::usePost | ( | ) | const [inline] |