gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/avm2 r9715: missed in last checkin


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9715: missed in last checkin
Date: Thu, 30 Apr 2009 16:37:10 -0600
User-agent: Bazaar (1.13.1)

------------------------------------------------------------
revno: 9715
committer: address@hidden
branch nick: avm2
timestamp: Thu 2009-04-30 16:37:10 -0600
message:
  missed in last checkin
added:
  libcore/asobj3/desktop/EncryptedLocalStore_as3.cpp
  libcore/asobj3/desktop/EncryptedLocalStore_as3.h
  libcore/asobj3/flashclasses.h
=== added file 'libcore/asobj3/desktop/EncryptedLocalStore_as3.cpp'
--- a/libcore/asobj3/desktop/EncryptedLocalStore_as3.cpp        1970-01-01 
00:00:00 +0000
+++ b/libcore/asobj3/desktop/EncryptedLocalStore_as3.cpp        2009-04-30 
22:37:10 +0000
@@ -0,0 +1,95 @@
+// EncryptedLocalStore_as3.cpp:  ActionScript "EncryptedLocalStore" class, for 
Gnash.
+//
+//   Copyright (C) 2009 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+//
+
+#ifdef HAVE_CONFIG_H
+#include "gnashconfig.h"
+#endif
+
+#include "desktop/EncryptedLocalStore_as3.h"
+#include "log.h"
+#include "fn_call.h"
+#include "smart_ptr.h" // for boost intrusive_ptr
+#include "builtin_function.h" // need builtin_function
+#include "GnashException.h" // for ActionException
+
+namespace gnash {
+
+// Forward declarations
+namespace {
+    as_value encryptedlocalstore_ctor(const fn_call& fn);
+    void attachEncryptedLocalStoreInterface(as_object& o);
+    void attachEncryptedLocalStoreStaticInterface(as_object& o);
+    as_object* getEncryptedLocalStoreInterface();
+
+}
+
+// extern (used by Global.cpp)
+void encryptedlocalstore_class_init(as_object& global)
+{
+    static boost::intrusive_ptr<builtin_function> cl;
+
+    if (!cl) {
+        cl = new builtin_function(&encryptedlocalstore_ctor, 
getEncryptedLocalStoreInterface());
+        attachEncryptedLocalStoreStaticInterface(*cl);
+    }
+
+    // Register _global.EncryptedLocalStore
+    global.init_member("EncryptedLocalStore", cl.get());
+}
+
+namespace {
+
+void
+attachEncryptedLocalStoreInterface(as_object& o)
+{
+}
+
+void
+attachEncryptedLocalStoreStaticInterface(as_object& o)
+{
+
+}
+
+as_object*
+getEncryptedLocalStoreInterface()
+{
+    static boost::intrusive_ptr<as_object> o;
+    if ( ! o ) {
+        o = new as_object();
+        attachEncryptedLocalStoreInterface(*o);
+    }
+    return o.get();
+}
+
+as_value
+encryptedlocalstore_ctor(const fn_call& fn)
+{
+    boost::intrusive_ptr<as_object> obj = new EncryptedLocalStore_as3;
+
+    return as_value(obj.get()); // will keep alive
+}
+
+} // anonymous namespace 
+} // gnash namespace
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+

=== added file 'libcore/asobj3/desktop/EncryptedLocalStore_as3.h'
--- a/libcore/asobj3/desktop/EncryptedLocalStore_as3.h  1970-01-01 00:00:00 
+0000
+++ b/libcore/asobj3/desktop/EncryptedLocalStore_as3.h  2009-04-30 22:37:10 
+0000
@@ -0,0 +1,61 @@
+// EncryptedLocalStore_as3.h:  ActionScript 3 "EncryptedLocalStore" class, for 
Gnash.
+//
+//   Copyright (C) 2009 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+//
+
+#ifndef GNASH_ASOBJ3_ENCRYPTEDLOCALSTORE_H
+#define GNASH_ASOBJ3_ENCRYPTEDLOCALSTORE_H
+
+#ifdef HAVE_CONFIG_H
+#include "gnashconfig.h"
+#endif
+
+#include "fn_call.h"
+
+namespace gnash {
+
+// Forward declarations
+class as_object;
+namespace {
+    as_object* getEncryptedLocalStoreInterface();
+}
+
+class EncryptedLocalStore_as3: public as_object
+{
+
+public:
+
+    EncryptedLocalStore_as3()
+        :
+        as_object(getEncryptedLocalStoreInterface())
+    {}
+
+};
+
+/// Initialize the global EncryptedLocalStore class
+void encryptedlocalstore_class_init(as_object& global);
+
+} // gnash namespace
+
+// GNASH_ASOBJ3_ENCRYPTEDLOCALSTORE_H
+#endif
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:
+

=== added file 'libcore/asobj3/flashclasses.h'
--- a/libcore/asobj3/flashclasses.h     1970-01-01 00:00:00 +0000
+++ b/libcore/asobj3/flashclasses.h     2009-04-30 22:37:10 +0000
@@ -0,0 +1,74 @@
+// 
+//   Copyright (C) 2009 Free Software Foundation, Inc.
+// 
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+#ifndef GNASH_ASOBJ3_FLASH_H
+#define GNASH_ASOBJ3_FLASH_H 1
+
+#include "accessibility/accessibility_pkg.h"
+#include "data/data_pkg.h"
+#include "desktop/desktop_pkg.h"
+#include "display/display_pkg.h"
+#include "errors/errors_pkg.h"
+#include "events/events_pkg.h"
+#include "external/external_pkg.h"
+#include "filesystem/filesystem_pkg.h"
+#include "filters/filters_pkg.h"
+#include "geom/geom_pkg.h"
+#include "html/html_pkg.h"
+#include "media/media_pkg.h"
+#include "net/net_pkg.h"
+#include "printing/printing_pkg.h"
+#include "sampler/sampler_pkg.h"
+#include "security/security_pkg.h"
+#include "system/system_pkg.h"
+#include "text/text_pkg.h"
+#include "ui/ui_pkg.h"
+#include "utils/utils_pkg.h"
+#include "xml/xml_pkg.h"
+
+#include <sharedlib.h>
+static gnash::SharedLib::initentry *asclasses[] = {
+    gnash::flash_data_package_init,
+    gnash::flash_data_package_init,
+    gnash::flash_desktop_package_init,
+    gnash::flash_display_package_init,
+    gnash::flash_errors_package_init,
+    gnash::flash_events_package_init,
+    gnash::flash_external_package_init,
+    gnash::flash_filesystem_package_init,
+    gnash::flash_filters_package_init,
+    gnash::flash_geom_package_init,
+    gnash::flash_html_package_init,
+    gnash::flash_media_package_init,
+    gnash::flash_net_package_init,
+    gnash::flash_printing_package_init,
+    gnash::flash_samplar_package_init,
+    gnash::flash_security_package_init,
+    gnash::flash_data_package_init,
+    gnash::flash_text_package_init,
+    gnash::flash_ui_package_init,
+    gnash::flash_utils_package_init,
+    gnash::flash_xml_package_init,
+    0
+};
+
+#endif // end of GNASH_ASOBJ3_FLASH_H
+
+// local Variables:
+// mode: C++
+// indent-tabs-mode: t
+// End:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]