00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __ASBROADCASTER_H__
00019 #define __ASBROADCASTER_H__
00020
00021 #ifdef HAVE_CONFIG_H
00022 #include "gnashconfig.h"
00023 #endif
00024
00025
00026 namespace gnash {
00027 class as_value;
00028 class as_object;
00029 class fn_call;
00030 }
00031
00032 namespace gnash {
00033
00035 class AsBroadcaster {
00036
00037 public:
00038
00040
00051 static void initialize(as_object& obj);
00052
00054 static as_value initialize_method(const fn_call& fn);
00055
00059 static as_object* getAsBroadcaster();
00060
00061 private:
00062
00063 static as_value addListener_method(const fn_call& fn);
00064 static as_value removeListener_method(const fn_call& fn);
00065 static as_value broadcastMessage_method(const fn_call& fn);
00066
00067 };
00068
00069 void AsBroadcaster_init(as_object& global);
00070
00071 }
00072
00073
00074 #endif
00075