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 15:27:40 UTC

[royale-asjs] branch develop updated: Added Socket.as and Changes in ProgressEvent.as and File.as

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 2e29145  Added Socket.as and Changes in ProgressEvent.as and File.as
2e29145 is described below

commit 2e291454017d397aedba69023c42022fe7f1261f
Author: pashminakazi <pa...@gmail.com>
AuthorDate: Sun Jul 11 08:27:27 2021 -0700

    Added Socket.as and Changes in ProgressEvent.as and File.as
---
 .../MXRoyale/src/main/royale/MXRoyaleClasses.as    |  1 +
 .../src/main/royale/mx/events/ProgressEvent.as     |  7 ++-
 .../MXRoyale/src/main/royale/mx/filesystem/File.as |  2 +-
 .../MXRoyale/src/main/royale/mx/net/Socket.as      | 65 ++++++++++++++++++++++
 4 files changed, 72 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index da7c444..0594280 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -400,6 +400,7 @@ internal class MXRoyaleClasses
 	import mx.system.Capabilities; Capabilities;
 	import mx.filesystem.FileMode; FileMode;
 	import mx.filesystem.FileStream; FileStream;
+	import mx.net.Socket; Socket;
 
 
 }
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/events/ProgressEvent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/events/ProgressEvent.as
index 1cccc07..46ec129 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/events/ProgressEvent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/events/ProgressEvent.as
@@ -48,8 +48,11 @@ package mx.events
       
 
         
-		 public static const PROGRESS:String = "progress";
-		 
+		public static const PROGRESS:String = "progress";
+		public static const SOCKET_DATA:String = "socketData";
+		public static const STANDARD_ERROR_DATA:String = "standardErrorData";
+		public static const STANDARD_INPUT_PROGRESS:String = "standardInputProgress";
+		public static const STANDARD_OUTPUT_DATA:String = "standardOutputData";
 		 
 		 public function get bytesTotal():Number{
 		    return null;
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/filesystem/File.as b/frameworks/projects/MXRoyale/src/main/royale/mx/filesystem/File.as
index e525465..cb1f8fc 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/filesystem/File.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/filesystem/File.as
@@ -38,7 +38,7 @@ package mx.filesystem
 		 *  @private
 		 *  Storage for the <code>modificationDate</code> property.
 		 */
-		private var _modificationDate:Date = "";
+		private var _modificationDate:Date = null;
 
 		/**
 		 *  @inheritDoc
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/net/Socket.as b/frameworks/projects/MXRoyale/src/main/royale/mx/net/Socket.as
new file mode 100644
index 0000000..dbdc144
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/net/Socket.as
@@ -0,0 +1,65 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.net
+{
+
+
+import org.apache.royale.events.EventDispatcher;
+
+    public class Socket extends EventDispatcher
+    {
+		   public function Socket(host:String = null, port:int = 0)
+		   {
+				super();
+		   }
+		   
+		   public function get bytesAvailable():uint {
+				trace("bytesAvailable in Socket is not implemented");
+				return 0;
+		   }
+		   
+		   public function connect(host:String, port:int):void {
+				trace("connect in Socket is not implemented");
+		   }
+		   
+			public function flush():void {
+				trace("flush in Socket is not implemented");
+		   }
+		   
+		   public function readUTFBytes(length:uint):String {
+				trace("readUTFBytes in Socket is not implemented");
+				return "";
+		   }
+		   public function writeUTFBytes(value:String):void {
+				trace("writeUTFBytes in Socket is not implemented");
+		   }
+		   
+		   public function get connected():Boolean {
+				trace("connected in Socket is not implemented");
+				return false;
+		   }
+		   
+		   public function close():void {
+				trace("close in Socket is not implemented");
+		   }
+	}
+	
+}