Gnash  0.8.10
MovieFactory.h
Go to the documentation of this file.
00001 // 
00002 //   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
00003 //   Free Software Foundation, Inc
00004 // 
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 3 of the License, or
00008 // (at your option) any later version.
00009 // 
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019 
00020 #ifndef GNASH_MOVIE_FACTORY_H
00021 #define GNASH_MOVIE_FACTORY_H
00022 
00023 #include "dsodefs.h"
00024 
00025 #include <boost/intrusive_ptr.hpp>
00026 #include <string>
00027 #include <memory>
00028 
00029 namespace gnash {
00030     class IOChannel;
00031     class RunResources;
00032     class movie_definition;
00033     class URL;
00034     class MovieLibrary;
00035 }
00036 
00037 namespace gnash {
00038 
00039 class MovieFactory
00040 {
00041 public:
00042    
00044     //
00084     static DSOEXPORT boost::intrusive_ptr<movie_definition> makeMovie(
00085         const URL& url, const RunResources& runResources,
00086         const char* real_url = 0, bool startLoaderThread = true,
00087         const std::string* postdata = 0);
00088     
00090     //
00113     static DSOEXPORT boost::intrusive_ptr<movie_definition> makeMovie(
00114             std::auto_ptr<IOChannel> in, const std::string& url,
00115             const RunResources& runResources, bool startLoaderThread);
00116 
00118     //
00120     static DSOEXPORT void clear();
00121 
00122     static MovieLibrary movieLibrary;
00123 };
00124 
00125 } // namespace gnash
00126 
00127 
00128 #endif // GNASH_IMPL_H
00129 
00130 
00131 // Local Variables:
00132 // mode: C++
00133 // indent-tabs-mode: t
00134 // End: