Skip to content

Commit

Permalink
Common and WinRT NetworkManager improvements
Browse files Browse the repository at this point in the history
General naming
  • Loading branch information
madd0 committed May 3, 2013
1 parent 5f84093 commit 3295af1
Show file tree
Hide file tree
Showing 20 changed files with 1,244 additions and 931 deletions.
33 changes: 33 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#Microsoft Public License (MS-PL)
[OSI Approved License]

This license governs use of the accompanying software. If you use the software, you
accept this license. If you do not accept the license, do not use the software.

##1. Definitions

The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
same meaning here as under U.S. copyright law.

A "contribution" is the original software, or any additions or changes to the software.

A "contributor" is any person that distributes its contribution under this license.
"Licensed patents" are a contributor's patent claims that read directly on its contribution.

##2. Grant of Rights

(A) Copyright Grant – Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.

(B) Patent Grant – Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.

##3. Conditions and Limitations

(A) No Trademark License – This license does not grant you rights to use any contributors' name, logo, or trademarks.

(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.

(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.

(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.

(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
84 changes: 42 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
#WygwamToolkit

Toolkit published by the [Wygwam](http://www.wygwam.com) team.

You can use the nuget package: [https://nuget.org/packages/Wygwam.Toolkit/](https://nuget.org/packages/Wygwam.Toolkit/)

#Summary

Provides some useful stuff for your developments on WinRT and Windows Phone.
You can use our Interfaces or Abstract Classes to get some tools like:

##AStorageManager

Implemented on Windows Phone 8 and WinRT (*StorageManager* classes)

Allows you to manage your file and settings in a easy way
```csharp
Task<bool> SaveSettingAsync(string key, object data)
Task<T> LoadSettingAsync<T>(string key)
Task<bool> ClearSettingAsync(string key)
Task<bool> SaveDataAsync(string path, object data)
Task<T> LoadDataAsync<T>(string path)
Task<bool> ClearDataAsync(string path)
```
##ILocationManager

Implemented on Windows Phone 8 and WinRT (*LocationManager* classes)

Allows you to manage geoposition in a easy way
```csharp
GeoPosition LastKnowPosition { get; set; }
Task<GeoPosition> GetLocationAsync();
Task<bool> AskForRightAsync();
```
##ANetworkManager

Implemented on Windows Phone 8 and WinRT (*NetworkManager* classes)

Allows you to know if network is available
```csharp
bool IsNetworkAvailable { get; }
```
#WygwamToolkit

Toolkit published by the [Wygwam](http://www.wygwam.com) team.

You can use the nuget package: [https://nuget.org/packages/Wygwam.Toolkit/](https://nuget.org/packages/Wygwam.Toolkit/)

#Summary

Provides some useful stuff for your developments on WinRT and Windows Phone.
You can use our Interfaces or Abstract Classes to get some tools like:

##AStorageManager

Implemented on Windows Phone 8 and WinRT (*StorageManager* classes)

Allows you to manage your file and settings in a easy way
```csharp
Task<bool> SaveSettingAsync(string key, object data)
Task<T> LoadSettingAsync<T>(string key)
Task<bool> ClearSettingAsync(string key)
Task<bool> SaveDataAsync(string path, object data)
Task<T> LoadDataAsync<T>(string path)
Task<bool> ClearDataAsync(string path)
```
##ILocationManager

Implemented on Windows Phone 8 and WinRT (*LocationManager* classes)

Allows you to manage geoposition in a easy way
```csharp
GeoPosition LastKnowPosition { get; set; }
Task<GeoPosition> GetLocationAsync();
Task<bool> AskForRightAsync();
```
##ANetworkManager

Implemented on Windows Phone 8 and WinRT (*NetworkManager* classes)

Allows you to know if network is available
```csharp
bool IsNetworkAvailable { get; }
```
138 changes: 72 additions & 66 deletions WygwamToolkit.sln → Wygwam.Windows.sln
Original file line number Diff line number Diff line change
@@ -1,66 +1,72 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WygwamToolkit.Common", "WygwamToolkit.Common\WygwamToolkit.Common.csproj", "{C7C6E456-EF0F-455F-A21D-567E3B5676B7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WygwamToolkit.Phone", "WygwamToolkit.Phone\WygwamToolkit.Phone.csproj", "{BFC3B021-B066-4194-AE6E-21217F43576A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WygwamToolkit.WinRT", "WygwamToolkit.WinRT\WygwamToolkit.WinRT.csproj", "{8AD870BE-26B6-4290-92D8-6DACDA602512}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Debug|ARM.ActiveCfg = Debug|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Debug|x64.ActiveCfg = Debug|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Debug|x86.ActiveCfg = Debug|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Release|Any CPU.Build.0 = Release|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Release|ARM.ActiveCfg = Release|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Release|x64.ActiveCfg = Release|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Release|x86.ActiveCfg = Release|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|ARM.ActiveCfg = Debug|ARM
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|ARM.Build.0 = Debug|ARM
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|x64.ActiveCfg = Debug|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|x86.ActiveCfg = Debug|x86
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|x86.Build.0 = Debug|x86
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|Any CPU.Build.0 = Release|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|ARM.ActiveCfg = Release|ARM
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|ARM.Build.0 = Release|ARM
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|x64.ActiveCfg = Release|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|x86.ActiveCfg = Release|x86
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|x86.Build.0 = Release|x86
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|ARM.ActiveCfg = Debug|ARM
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|ARM.Build.0 = Debug|ARM
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|x64.ActiveCfg = Debug|x64
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|x64.Build.0 = Debug|x64
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|x86.ActiveCfg = Debug|x86
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|x86.Build.0 = Debug|x86
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|Any CPU.Build.0 = Release|Any CPU
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|ARM.ActiveCfg = Release|ARM
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|ARM.Build.0 = Release|ARM
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|x64.ActiveCfg = Release|x64
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|x64.Build.0 = Release|x64
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|x86.ActiveCfg = Release|x86
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wygwam.Windows", "WygwamToolkit.Common\Wygwam.Windows.csproj", "{C7C6E456-EF0F-455F-A21D-567E3B5676B7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wygwam.Windows.Phone", "WygwamToolkit.Phone\Wygwam.Windows.Phone.csproj", "{BFC3B021-B066-4194-AE6E-21217F43576A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wygwam.Windows.WinRT", "WygwamToolkit.WinRT\Wygwam.Windows.WinRT.csproj", "{8AD870BE-26B6-4290-92D8-6DACDA602512}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AC537702-9371-4EAB-901C-2AEBF5F0DDD4}"
ProjectSection(SolutionItems) = preProject
LICENSE.md = LICENSE.md
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Debug|ARM.ActiveCfg = Debug|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Debug|x64.ActiveCfg = Debug|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Debug|x86.ActiveCfg = Debug|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Release|Any CPU.Build.0 = Release|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Release|ARM.ActiveCfg = Release|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Release|x64.ActiveCfg = Release|Any CPU
{C7C6E456-EF0F-455F-A21D-567E3B5676B7}.Release|x86.ActiveCfg = Release|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|ARM.ActiveCfg = Debug|ARM
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|ARM.Build.0 = Debug|ARM
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|x64.ActiveCfg = Debug|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|x86.ActiveCfg = Debug|x86
{BFC3B021-B066-4194-AE6E-21217F43576A}.Debug|x86.Build.0 = Debug|x86
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|Any CPU.Build.0 = Release|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|ARM.ActiveCfg = Release|ARM
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|ARM.Build.0 = Release|ARM
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|x64.ActiveCfg = Release|Any CPU
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|x86.ActiveCfg = Release|x86
{BFC3B021-B066-4194-AE6E-21217F43576A}.Release|x86.Build.0 = Release|x86
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|ARM.ActiveCfg = Debug|ARM
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|ARM.Build.0 = Debug|ARM
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|x64.ActiveCfg = Debug|x64
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|x64.Build.0 = Debug|x64
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|x86.ActiveCfg = Debug|x86
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Debug|x86.Build.0 = Debug|x86
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|Any CPU.Build.0 = Release|Any CPU
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|ARM.ActiveCfg = Release|ARM
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|ARM.Build.0 = Release|ARM
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|x64.ActiveCfg = Release|x64
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|x64.Build.0 = Release|x64
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|x86.ActiveCfg = Release|x86
{8AD870BE-26B6-4290-92D8-6DACDA602512}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
28 changes: 0 additions & 28 deletions WygwamToolkit.Common/Managers/ANetworkManager.cs

This file was deleted.

Loading

0 comments on commit 3295af1

Please sign in to comment.