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 94fff2d  Added LocalConnection.as,Font.as and Endian.as and Changes in 
Capabilities.as
94fff2d is described below

commit 94fff2deb35fcd582bd5d1e26eff7636d45e00fd
Author: pashminakazi <[email protected]>
AuthorDate: Sun Jul 11 09:38:34 2021 -0700

    Added LocalConnection.as,Font.as and Endian.as and Changes in 
Capabilities.as
---
 .../MXRoyale/src/main/royale/MXRoyaleClasses.as    |  3 ++
 .../Capabilities.as => net/LocalConnection.as}     | 53 +++++--------------
 .../src/main/royale/mx/system/Capabilities.as      |  4 ++
 .../MXRoyale/src/main/royale/mx/text/Font.as       | 46 +++++++++++++++++
 .../mx/{system/Capabilities.as => utils/Endian.as} | 59 +++++++---------------
 5 files changed, 85 insertions(+), 80 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as 
b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index 0594280..e790057 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -401,6 +401,9 @@ internal class MXRoyaleClasses
        import mx.filesystem.FileMode; FileMode;
        import mx.filesystem.FileStream; FileStream;
        import mx.net.Socket; Socket;
+       import mx.utils.Endian; Endian;
+       import mx.text.Font; Font;
+       import mx.net.LocalConnection; LocalConnection;
 
 
 }
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/net/LocalConnection.as
similarity index 57%
copy from frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as
copy to frameworks/projects/MXRoyale/src/main/royale/mx/net/LocalConnection.as
index 3d77a34..cb0e815 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/net/LocalConnection.as
@@ -17,48 +17,23 @@
 //
 
////////////////////////////////////////////////////////////////////////////////
 
-package mx.system
+
+package mx.net
 {
-       
-       public class Capabilities
-       {
-               /**
-                *  Constructor.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 9
-                *  @playerversion AIR 1.0
-                *  @productversion Royale 0.9.8
-                */
 
-               public function Capabilities()
-               {
-                       super();
-               }
-               
-               //----------------------------------
-               //  os
-               //----------------------------------
 
-               /**
-                *  @private
-                *  Storage for the <code>os</code> property.
-                */
-               private var _os:String = "OS";
+import org.apache.royale.events.EventDispatcher;
 
-               /**
-                *  @inheritDoc
-                *  
-                *  @langversion 3.0
-                *  @playerversion Flash 9
-                *  @playerversion AIR 1.1
-                *  @productversion Flex 3
-                */
-               public static function get os():String
-               {
-                       trace("os in Capabilities is not implemented");
-                       return "OS";
-               }
-               
+    public class LocalConnection extends EventDispatcher
+    {
+                  public function LocalConnection()
+                  {
+                               super();
+                  }
+                  
+                  public function connect(connectionName:String):void {
+                               trace("connect in LocalConnection is not 
implemented");
+                  }
        }
+       
 }
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as
index 3d77a34..521b291 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as
@@ -60,5 +60,9 @@ package mx.system
                        return "OS";
                }
                
+               public static function get serverString():String {
+                       trace("serverString in Capabilities is not 
implemented");
+                       return "";
+               }
        }
 }
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/text/Font.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/text/Font.as
new file mode 100644
index 0000000..de134ea
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/text/Font.as
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
 
+// 
+//  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.text 
+{ 
+       
+       public class Font
+       { 
+               
+               public function get fontName():String {
+                       trace("fontName in Font is not implemented");
+                       return "";
+               }
+               
+               public function get fontStyle():String {
+                       trace("fontStyle in Font is not implemented");
+                       return "";
+               }
+               
+               public function get fontType():String {
+                       trace("fontType in Font is not implemented");
+                       return "";
+               }
+               
+               public static function 
enumerateFonts(enumerateDeviceFonts:Boolean = false):Array {
+                       trace("enumerateFonts in Font is not implemented");
+                       return [];
+               }
+       } 
+
+} 
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/utils/Endian.as
similarity index 57%
copy from frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as
copy to frameworks/projects/MXRoyale/src/main/royale/mx/utils/Endian.as
index 3d77a34..395cbe2 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/system/Capabilities.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/utils/Endian.as
@@ -17,48 +17,25 @@
 //
 
////////////////////////////////////////////////////////////////////////////////
 
-package mx.system
+package mx.utils
 {
-       
-       public class Capabilities
-       {
-               /**
-                *  Constructor.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 9
-                *  @playerversion AIR 1.0
-                *  @productversion Royale 0.9.8
-                */
 
-               public function Capabilities()
-               {
-                       super();
-               }
-               
-               //----------------------------------
-               //  os
-               //----------------------------------
 
-               /**
-                *  @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
-               {
-                       trace("os in Capabilities is not implemented");
-                       return "OS";
-               }
-               
-       }
+/**
+ *  The XMLUtil class is an all-static class
+ *  with methods for working with XML within Flex.
+ *  You do not create instances of XMLUtil;
+ *  instead you simply call static methods such as
+ *  the <code>XMLUtil.qnamesEqual()</code> method.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class Endian
+{
+       public static const BIG_ENDIAN:String = "bigEndian";
+       public static const LITTLE_ENDIAN:String = "littleEndian";
+}
 }

Reply via email to