Gnash  0.8.11dev
LoadableObject.h
Go to the documentation of this file.
1 // LoadableObject.h: abstraction of network-loadable AS object functions.
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 
21 #ifndef GNASH_LOADABLE_OBJECT_H
22 #define GNASH_LOADABLE_OBJECT_H
23 
24 
25 namespace gnash {
26  class as_object;
27 }
28 
29 namespace gnash {
30 
32 void registerLoadableNative(as_object& global);
33 
35 //
37 void attachLoadableInterface(as_object& where, int flags);
38 
39 }
40 
41 #endif
movie_root.h
name
std::string name
Definition: LocalConnection_as.cpp:149
gnash::attachLoadableInterface
void attachLoadableInterface(as_object &o, int flags)
Attach some common AS code for Loadable objects.
Definition: LoadableObject.cpp:55
gnash::as_object
The base class for all ActionScript objects.
Definition: as_object.h:162
gnash::NSV::PROP_uBYTES_TOTAL
@ PROP_uBYTES_TOTAL
Definition: namedStrings.h:141
as_object.h
gnash::NSV::PROP_uBYTES_LOADED
@ PROP_uBYTES_LOADED
Definition: namedStrings.h:142
gnash::MovieClip::METHOD_POST
@ METHOD_POST
Definition: MovieClip.h:422
gnash::toObject
as_object * toObject(const as_value &v, VM &vm)
Convert an as_value to an object.
Definition: VM.cpp:457
gnash::log_debug
void log_debug(StringType msg, Args... args)
Definition: log.h:301
_
#define _(String)
Definition: log.h:44
gnash::as_object::init_member
void init_member(const std::string &name, const as_value &val, int flags=DefaultFlags)
Initialize a member value by string.
Definition: as_object.cpp:669
gnash::VM
The AVM1 virtual machine.
Definition: VM.h:72
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::key::m
@ m
Definition: GnashKey.h:159
NativeFunction.h
Global_as.h
gnash::getGlobal
Global_as & getGlobal(const as_environment &env)
Definition: as_environment.cpp:651
gnash::getVM
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
gnash::NSV::PROP_PUSH
@ PROP_PUSH
Definition: namedStrings.h:88
gnash::callMethod
as_value callMethod(fn_call::Args &args, as_object *obj, const ObjectURI &uri)
Call a member function of this object in an AS-compatible way.
Definition: Global_as.h:219
gnash::getRunResources
const RunResources & getRunResources(const as_object &o)
Get the RunResources from an as_object.
Definition: as_object.cpp:1142
gnash::registerLoadableNative
void registerLoadableNative(as_object &o)
Register methods as native for use by XML_as and LoadVars_as.
Definition: LoadableObject.cpp:68
gnash::URL::decode
static void decode(std::string &str)
Decode a string from URL-encoded format converting all hexadecimal sequences to ASCII characters.
Definition: URL.cpp:418
gnash::Global_as::createFunction
as_function * createFunction(Global_as::ASFunction function)
Create an ActionScript function.
Definition: Global_as.cpp:159
GnashAlgorithm.h
IF_VERBOSE_ASCODING_ERRORS
#define IF_VERBOSE_ASCODING_ERRORS(x)
Definition: log.h:397
gnash::VM::registerNative
void registerNative(as_c_function_ptr fun, unsigned int x, unsigned int y)
Definition: VM.cpp:268
URL.h
gnash::Global_as::createArray
as_object * createArray()
Construct an Array.
Definition: Global_as.cpp:207
VM.h
gnash::MovieClip::VariablesMethod
VariablesMethod
The various methods for sending data in requests.
Definition: MovieClip.h:419
gnash::log_aserror
void log_aserror(StringType msg, Args... args)
Definition: log.h:331
gnash::NSV::PROP_CONTENT_TYPE
@ PROP_CONTENT_TYPE
Definition: namedStrings.h:143
log.h
utf8.h
gnash::getRoot
movie_root & getRoot(const as_environment &env)
Definition: as_environment.cpp:645
fn_call.h
gnash::NSV::PROP_LOADED
@ PROP_LOADED
Definition: namedStrings.h:84
url
std::string url
Definition: gnash.cpp:59
namedStrings.h
gnash::Global_as
The Global object ultimately contains all objects in an ActionScript run.
Definition: Global_as.h:50
gnash::getSWFVersion
int getSWFVersion(const as_environment &env)
Definition: as_environment.cpp:657
RunResources.h
gnash::log_security
void log_security(StringType msg, Args... args)
Definition: log.h:319
gnash::getURI
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
gnash::NetworkAdapter::RequestHeaders
std::map< std::string, std::string, StringNoCaseLessThan > RequestHeaders
Definition: NetworkAdapter.h:43
Array_as.h
gnash::MovieClip::METHOD_GET
@ METHOD_GET
Definition: MovieClip.h:421
StreamProvider.h
gnash::key::o
@ o
Definition: GnashKey.h:161
gnash::foreachArray
void foreachArray(as_object &array, T &pred)
Definition: Array_as.h:78
LoadableObject.h
data
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
IOChannel.h
gnash::NSV::PROP_uCUSTOM_HEADERS
@ PROP_uCUSTOM_HEADERS
Definition: namedStrings.h:192