incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [33/34] wp7 commit: actually this was a rename ...
Date Mon, 09 Apr 2012 22:40:30 GMT
actually this was a rename ...


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/05a2c586
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/05a2c586
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/05a2c586

Branch: refs/heads/master
Commit: 05a2c5865411f41214cc4082ea89e586e934ac12
Parents: f123d4d
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Fri Mar 30 12:52:19 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Fri Mar 30 12:52:19 2012 -0700

----------------------------------------------------------------------
 framework/Cordova/Commands/Connection.cs |   89 -------------------------
 1 files changed, 0 insertions(+), 89 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/05a2c586/framework/Cordova/Commands/Connection.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Connection.cs b/framework/Cordova/Commands/Connection.cs
deleted file mode 100644
index 0bd8d21..0000000
--- a/framework/Cordova/Commands/Connection.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-/*  
-	Licensed 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.
-*/
-
-using System;
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-using Microsoft.Phone.Net.NetworkInformation;
-
-namespace WP7CordovaClassLib.Cordova.Commands
-{
-
-    // http://msdn.microsoft.com/en-us/library/microsoft.phone.net.networkinformation(v=VS.92).aspx
-    // http://msdn.microsoft.com/en-us/library/microsoft.phone.net.networkinformation.devicenetworkinformation(v=VS.92).aspx
-
-    public class Connection : BaseCommand
-    {
-        const string UNKNOWN = "unknown";
-        const string ETHERNET = "ethernet";
-        const string WIFI = "wifi";
-        const string CELL_2G = "2g";
-        const string CELL_3G = "3g";
-        const string CELL_4G = "4g";
-        const string NONE = "none";
-        const string CELL = "cellular";
-
-
-        public void getConnectionInfo(string empty)
-        {
-
-            //DeviceNetworkInformation.NetworkAvailabilityChanged += new EventHandler<NetworkNotificationEventArgs>(DeviceNetworkInformation_NetworkAvailabilityChanged);
-
-            DispatchCommandResult(new PluginResult(PluginResult.Status.OK, checkConnectionType()));
-        }
-
-        //void DeviceNetworkInformation_NetworkAvailabilityChanged(object sender, NetworkNotificationEventArgs
e)
-        //{
-        //    throw new NotImplementedException();
-        //}
-
-        private string checkConnectionType()
-        {
-
-            if (DeviceNetworkInformation.IsNetworkAvailable)
-            {
-                if (DeviceNetworkInformation.IsWiFiEnabled)
-                {
-                    return WIFI;
-                }
-                else
-                {
-                    if (DeviceNetworkInformation.IsCellularDataEnabled)
-                    {
-                        // WP7 doesn't let us determine which type of cell data network
-                        // DeviceNetworkInformation.CellularMobileOperator
-                        return CELL;
-                    }
-                    else
-                    {
-                        return UNKNOWN;
-                    }
-                }
-            }
-            else
-            {
-                return NONE;
-            }
-        }
-
-        
-    }
-}


Mime
View raw message