Gnash  0.8.11dev
AsBroadcaster.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 // Free Software Foundation, Inc
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 
19 #ifndef GNASH_ASBROADCASTER_H
20 #define GNASH_ASBROADCASTER_H
21 
22 // Forward declarations
23 namespace gnash {
24  class as_value;
25  class as_object;
26  class fn_call;
27  struct ObjectURI;
28 }
29 
30 namespace gnash {
31 
34 
35 public:
36 
38  //
49  static void initialize(as_object& obj);
50 
55 
56  static void registerNative(as_object &global);
57 
58  static void init(as_object& global, const ObjectURI& uri);
59 
60 };
61 
62 } // end of gnash namespace
63 
64 #endif
65 
gnash::AsBroadcaster::registerNative
static void registerNative(as_object &global)
Definition: AsBroadcaster.cpp:208
gnash::toInt
std::int32_t toInt(const as_value &v, const VM &vm)
AS2-compatible conversion to 32bit integer.
Definition: VM.cpp:463
gnash::as_object
The base class for all ActionScript objects.
Definition: as_object.h:162
ObjectURI.h
gnash::toObject
as_object * toObject(const as_value &v, VM &vm)
Convert an as_value to an object.
Definition: VM.cpp:457
gnash::NSV::PROP_BROADCAST_MESSAGE
@ PROP_BROADCAST_MESSAGE
Definition: namedStrings.h:139
gnash::key::i
@ i
Definition: GnashKey.h:155
gnash::AsBroadcaster
AsBroadcaster facilities.
Definition: AsBroadcaster.h:33
gnash::NSV::PROP_LENGTH
@ PROP_LENGTH
Definition: namedStrings.h:83
_
#define _(String)
Definition: log.h:44
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::PropFlags::dontEnum
@ dontEnum
Protect from enumeration.
Definition: PropFlags.h:36
gnash::PropFlags::dontDelete
@ dontDelete
Protect from deletion.
Definition: PropFlags.h:39
gnash::key::s
@ s
Definition: GnashKey.h:165
NativeFunction.h
Global_as.h
gnash::NSV::PROP_SPLICE
@ PROP_SPLICE
Definition: namedStrings.h:91
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
AsBroadcaster.h
gnash::getMember
as_value getMember(as_object &o, const ObjectURI &uri)
Get a member of an object using AS lookup rules.
Definition: as_object.h:756
gnash::key::k
@ k
Definition: GnashKey.h:157
gnash::NSV::PROP_PUSH
@ PROP_PUSH
Definition: namedStrings.h:88
gnash::fn_call
Parameters/environment for builtin or user-defined functions callable from ActionScript.
Definition: fn_call.h:118
gnash::as_object::DefaultFlags
static const int DefaultFlags
The most common flags for built-in properties.
Definition: as_object.h:192
Stats.h
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::NSV::PROP_ADD_LISTENER
@ PROP_ADD_LISTENER
Definition: namedStrings.h:135
gnash::Global_as::createFunction
as_function * createFunction(Global_as::ASFunction function)
Create an ActionScript function.
Definition: Global_as.cpp:159
IF_VERBOSE_ASCODING_ERRORS
#define IF_VERBOSE_ASCODING_ERRORS(x)
Definition: log.h:397
length
@ length
Definition: klash_part.cpp:329
gnash::attachAsBroadcasterStaticInterface
void attachAsBroadcasterStaticInterface(as_object &o)
Definition: AsBroadcaster.cpp:185
gnash::emptyFunction
as_value emptyFunction(const fn_call &)
Definition: Global_as.h:256
gnash::VM::registerNative
void registerNative(as_c_function_ptr fun, unsigned int x, unsigned int y)
Definition: VM.cpp:268
gnash::fn_call::nargs
Args::size_type nargs
Number of arguments to this ActionScript function call.
Definition: fn_call.h:178
gnash::VM::getNative
NativeFunction * getNative(unsigned int x, unsigned int y) const
Return a native function or null.
Definition: VM.cpp:276
gnash::NSV::PROP_uLISTENERS
@ PROP_uLISTENERS
Definition: namedStrings.h:107
gnash::as_value
ActionScript value type.
Definition: as_value.h:95
gnash::Global_as::createArray
as_object * createArray()
Construct an Array.
Definition: Global_as.cpp:207
gnash::AsBroadcaster::getAsBroadcaster
static as_object * getAsBroadcaster()
gnash::fn_call::arg
const Args::value_type & arg(unsigned int n) const
Access a particular argument.
Definition: fn_call.h:194
gnash::log_aserror
void log_aserror(StringType msg, Args... args)
Definition: log.h:331
gnash::AsBroadcaster::initialize
static void initialize(as_object &obj)
Initialize the given object as an AsBroadcaster.
Definition: AsBroadcaster.cpp:145
log.h
fn_call.h
gnash::PropFlags::onlySWF6Up
@ onlySWF6Up
Only visible by VM initialized for version 6 or higher.
Definition: PropFlags.h:45
gnash::NSV::PROP_AS_NATIVE
@ PROP_AS_NATIVE
Definition: namedStrings.h:136
namedStrings.h
gnash::Global_as
The Global object ultimately contains all objects in an ActionScript run.
Definition: Global_as.h:50
gnash::registerBuiltinClass
as_object * registerBuiltinClass(as_object &where, Global_as::ASFunction ctor, Global_as::Properties p, Global_as::Properties c, const ObjectURI &uri)
Register a built-in class.
Definition: Global_as.h:144
test.uri
uri
Definition: test.py:12
gnash::AsBroadcaster::init
static void init(as_object &global, const ObjectURI &uri)
Definition: AsBroadcaster.cpp:216
gnash::getURI
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
Array_as.h
gnash::NSV::PROP_REMOVE_LISTENER
@ PROP_REMOVE_LISTENER
Definition: namedStrings.h:184
gnash::NSV::CLASS_AS_BROADCASTER
@ CLASS_AS_BROADCASTER
Definition: namedStrings.h:199
gnash::key::o
@ o
Definition: GnashKey.h:161
gnash::foreachArray
void foreachArray(as_object &array, T &pred)
Definition: Array_as.h:78
gnash::ObjectURI
A URI for describing as_objects.
Definition: ObjectURI.h:45
test.v
v
Definition: test.py:11
gnash::key::e
@ e
Definition: GnashKey.h:151
gnash::equals
bool equals(const as_value &a, const as_value &b, const VM &vm)
Check if two values are equal.
Definition: VM.cpp:439