System.h

Go to the documentation of this file.
00001 // 
00002 //   Copyright (C) 2005, 2006 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 2 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 // You should have received a copy of the GNU General Public License
00014 // along with this program; if not, write to the Free Software
00015 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00016 
00017 // 
00018 //
00019 //
00020 
00021 #ifndef __SYSTEM_H__
00022 #define __SYSTEM_H__
00023 
00024 #ifdef HAVE_CONFIG_H
00025 #include "config.h"
00026 #endif
00027 
00028 #include "as_object.h" // for inheritance
00029 #include "fn_call.h"
00030 
00031 namespace gnash {
00032   
00033 class System {
00034 public:
00035     System();
00036     ~System();
00037    void security_allowDomain();
00038    void security_allowInsecureDomain();
00039    void security_loadPolicyFile();
00040    void setClipboard();
00041    void showSettings();
00042 private:
00043     bool _capabilities;
00044     bool _object;
00045     bool _capabilities_avHardwareDisable;
00046     bool _capabilities_hasAccessibility;
00047     bool _capabilities_hasAudio;
00048     bool _capabilities_hasAudioEncoder;
00049     bool _capabilities_hasEmbeddedVideo;
00050     bool _capabilities_hasMP3;
00051     bool _capabilities_hasPrinting;
00052     bool _capabilities_hasScreenBroadcast;
00053     bool _capabilities_hasScreenPlayback;
00054     bool _capabilities_hasStreamingAudio;
00055     bool _capabilities_hasStreamingVideo;
00056     bool _capabilities_hasVideoEncoder;
00057     bool _capabilities_isDebugger;
00058     bool _capabilities_language;
00059     bool _capabilities_localFileReadDisable;
00060     bool _capabilities_manufacturer;
00061     bool _capabilities_os;
00062     bool _capabilities_pixelAspectRatio;
00063     bool _capabilities_playerType;
00064     bool _capabilities_screenColor;
00065     bool _capabilities_screenDPI;
00066     bool _capabilities_screenResolutionX;
00067     bool _capabilities_screenResolutionY;
00068     bool _capabilities_serverString;
00069     bool _capabilities_version;
00070     bool _security;
00071     bool _exactSettings;
00072     bool _onStatus;
00073     bool _useCodepage;
00074 };
00075 
00076 class system_as_object : public as_object
00077 {
00078     //System obj;
00079 public:
00080         system_as_object();
00081 };
00082 
00083 void system_new(const fn_call& fn);
00084 void system_security_allowdomain(const fn_call& fn);
00085 void system_security_allowinsecuredomain(const fn_call& fn);
00086 void system_security_loadpolicyfile(const fn_call& fn);
00087 void system_setclipboard(const fn_call& fn);
00088 void system_showsettings(const fn_call& fn);
00089 
00090 void system_init(as_object* global);
00091 
00092 } // end of gnash namespace
00093 
00094 // __SYSTEM_H__
00095 #endif
00096 

Generated on Thu Nov 23 22:31:31 2006 for Gnash by  doxygen 1.4.6