You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2021/07/11 09:59:29 UTC
[royale-asjs] branch develop updated: Changes in ContextMenuItem.as
and Added EncryptedLocalStore.as, File.as and Capabilities.as in MXRoyale
This is an automated email from the ASF dual-hosted git repository.
pushminakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new c14a7f5 Changes in ContextMenuItem.as and Added EncryptedLocalStore.as,File.as and Capabilities.as in MXRoyale
c14a7f5 is described below
commit c14a7f5e22d821635a566094291ea8ab5124819c
Author: pashminakazi <pa...@gmail.com>
AuthorDate: Sun Jul 11 02:59:14 2021 -0700
Changes in ContextMenuItem.as and Added EncryptedLocalStore.as,File.as and Capabilities.as in MXRoyale
---
.../MXRoyale/src/main/royale/MXRoyaleClasses.as | 3 +
.../src/main/royale/mx/data/EncryptedLocalStore.as | 37 ++++++
.../src/main/royale/mx/dummy/ContextMenuItem.as | 8 ++
.../MXRoyale/src/main/royale/mx/filesystem/File.as | 125 +++++++++++++++++++++
.../ContextMenuItem.as => system/Capabilities.as} | 49 ++++++--
5 files changed, 214 insertions(+), 8 deletions(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index d0d9baf..2cac223 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -395,6 +395,9 @@ internal class MXRoyaleClasses
import mx.binding.Binding; Binding;
import mx.binding.IBindingClient; IBindingClient;
import mx.binding.BindingManager; BindingManager;
+ import mx.data.EncryptedLocalStore; EncryptedLocalStore;
+ import mx.filesystem.File; File;
+ import mx.system.Capabilities; Capabilities;
}
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/data/EncryptedLocalStore.as b/frameworks/projects/MXRoyale/src/main/royale/mx/data/EncryptedLocalStore.as
new file mode 100644
index 0000000..9759671
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/data/EncryptedLocalStore.as
@@ -0,0 +1,37 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package mx.data
+{
+ import mx.utils.ByteArray;
+
+ public class EncryptedLocalStore
+ {
+ public static function getItem(name:String):ByteArray {
+ var _data:ByteArray = name as ByteArray;
+ return _data;
+ }
+
+ public static function setItem(name:String, data:ByteArray, stronglyBound:Boolean = false):void {
+ if (data) {
+
+ }
+ }
+ }
+
+}
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as b/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as
index c495d9c..f574d4a 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as
@@ -25,6 +25,14 @@ package mx.dummy
public function ContextMenuItem(caption:String, separatorBefore:Boolean = false, enabled:Boolean = true, visible:Boolean = true) {
//super(caption, separatorBefore, enabled,visible);
}
+
+ public var _caption:String = "";
+ public function get caption():String {
+ return _caption;
+ }
+ public function set caption(value:String):void {
+ _caption = value;
+ }
}
}
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/filesystem/File.as b/frameworks/projects/MXRoyale/src/main/royale/mx/filesystem/File.as
new file mode 100644
index 0000000..0e5c557
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/filesystem/File.as
@@ -0,0 +1,125 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+
+package mx.filesystem
+{
+ import mx.net.FileReference;
+
+ public class File extends FileReference
+ {
+ public function File(path:String = null)
+ {
+ super();
+ }
+
+
+ //----------------------------------
+ // modificationDate
+ //----------------------------------
+
+ /**
+ * @private
+ * Storage for the <code>modificationDate</code> property.
+ */
+ private var _modificationDate:Date = "";
+
+ /**
+ * @inheritDoc
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get modificationDate():Date
+ {
+ return _modificationDate;
+ }
+
+ //----------------------------------
+ // exists
+ //----------------------------------
+
+ /**
+ * @private
+ * Storage for the <code>exists</code> property.
+ */
+ private var _exists:Boolean = false;
+
+ /**
+ * @inheritDoc
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get exists():Boolean
+ {
+ return _exists;
+ }
+
+ //----------------------------------
+ // getRootDirectories
+ //----------------------------------
+
+ /**
+ * @private
+ * Storage for the <code>getRootDirectories</code> property.
+ */
+ /**
+ * @inheritDoc
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public static function getRootDirectories():Array {
+ return [];
+ }
+
+ //----------------------------------
+ // resolvePath
+ //----------------------------------
+
+ /**
+ * @private
+ * Storage for the <code>resolvePath</code> property.
+ */
+
+ private var _resolvePath:String = "";
+ /**
+ * @inheritDoc
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function resolvePath(path:String):File {
+ path = _resolvePath;
+ return path as File;
+ }
+
+
+ }
+
+}
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as b/frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as
similarity index 59%
copy from frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as
copy to frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as
index c495d9c..d8500e2 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/dummy/ContextMenuItem.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as
@@ -16,15 +16,48 @@
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
-package mx.dummy
+
+package mx.system
{
- import org.apache.royale.events.EventDispatcher;
+
+ public class Capabilities
+ {
+ /**
+ * Constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.0
+ * @productversion Royale 0.9.8
+ */
+
+ public function Capabilities()
+ {
+ super();
+ }
+
+ //----------------------------------
+ // os
+ //----------------------------------
- public class ContextMenuItem extends EventDispatcher
- {
- public function ContextMenuItem(caption:String, separatorBefore:Boolean = false, enabled:Boolean = true, visible:Boolean = true) {
- //super(caption, separatorBefore, enabled,visible);
- }
+ /**
+ * @private
+ * Storage for the <code>os</code> property.
+ */
+ private var _os:String = "OS";
- }
+ /**
+ * @inheritDoc
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public static function get os():String
+ {
+ return "OS";
+ }
+
+ }
}