2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 // Free Software Foundation, Inc
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.
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.
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
19 #ifndef GNASH_ASBROADCASTER_H
20 #define GNASH_ASBROADCASTER_H
22 // Forward declarations
32 /// AsBroadcaster facilities
37 /// Initialize the given object as an AsBroadcaster
39 /// This method set the addListener,removeListener and broadcastMessage
40 /// AS methods with the object, and set the _listners array member.
42 /// It is exposed so that Stage,TextField,Key,Mouse and Selection
43 /// can call this internally.
45 /// The AsBroadcaster_init will take care of registering
46 /// the _global.AsBroadcaster object and its 'initialize'
47 /// method for user-defined broadcasters initialization
49 static void initialize(as_object
& obj
);
51 /// Return the global AsBroadcaster
52 /// (the native one, immune to any override)
54 static as_object
* getAsBroadcaster();
56 static void registerNative(as_object
&global
);
58 static void init(as_object
& global
, const ObjectURI
& uri
);
62 } // end of gnash namespace