AsBroadcaster.h

Go to the documentation of this file.
00001 // 
00002 //   Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
00003 // 
00004 // This program is free software; you can redistribute it and/or modify
00005 // it under the terms of the GNU General Public License as published by
00006 // the Free Software Foundation; either version 3 of the License, or
00007 // (at your option) any later version.
00008 // 
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 // 
00014 // You should have received a copy of the GNU General Public License
00015 // along with this program; if not, write to the Free Software
00016 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00017 
00018 #ifndef __ASBROADCASTER_H__
00019 #define __ASBROADCASTER_H__
00020 
00021 #ifdef HAVE_CONFIG_H
00022 #include "gnashconfig.h"
00023 #endif
00024 
00025 // Forward declarations
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 } // end of gnash namespace
00072 
00073 // __ASBROADCASTER_H__
00074 #endif
00075 

Generated on Thu Mar 6 18:25:06 2008 for Gnash by  doxygen 1.5.4