Gnash  0.8.10
swf_event.h
Go to the documentation of this file.
00001 // swf_event.h -- clip events (PlaceObject-defined)
00002 // 
00003 //   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
00004 //   Free Software Foundation, Inc
00005 // 
00006 // This program is free software; you can redistribute it and/or modify
00007 // it under the terms of the GNU General Public License as published by
00008 // the Free Software Foundation; either version 3 of the License, or
00009 // (at your option) any later version.
00010 // 
00011 // This program is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 // 
00016 // You should have received a copy of the GNU General Public License
00017 // along with this program; if not, write to the Free Software
00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019 
00020 #ifndef GNASH_SWF_EVENT_H
00021 #define GNASH_SWF_EVENT_H
00022 
00023 #include "event_id.h" // for composition
00024 
00025 namespace gnash {
00026     class action_buffer;
00027 }
00028 
00029 namespace gnash {
00030 
00031 //
00032 // swf_event
00033 //
00034 
00036 //
00039 class swf_event
00040 {
00041 public:
00042 
00043         swf_event(const event_id& ev, action_buffer& buf)
00044                 :
00045                 m_event(ev),
00046                 m_action_buffer(buf)
00047         {
00048         }
00049 
00050         swf_event(const swf_event& o)
00051                 :
00052                 m_event(o.m_event),
00053                 m_action_buffer(o.m_action_buffer)
00054         {
00055         }
00056 
00057         const action_buffer& action() const {
00058                 return m_action_buffer;
00059         }
00060 
00061         const event_id& event() const {
00062                 return m_event;
00063         }
00064 
00065 private:
00066 
00068         event_id m_event;
00069 
00071         //
00076         const action_buffer& m_action_buffer;
00077 
00079         void operator=(const swf_event& /*s*/);
00080 };
00081 
00082 
00083 }       // end namespace gnash
00084 
00085 
00086 #endif // GNASH_SWF_EVENT_H