diff options
author | Gaurav Vaish <gvaish@mono-cvs.ximian.com> | 2003-04-05 14:42:20 +0400 |
---|---|---|
committer | Gaurav Vaish <gvaish@mono-cvs.ximian.com> | 2003-04-05 14:42:20 +0400 |
commit | a5dfb07fd8e67a784e036fcd1e12c71e12f73bd7 (patch) | |
tree | 374f0f9ecb8a98382ca50928106a45475f4c0491 /mcs/class/System.Web.Mobile | |
parent | 5f4782a70f097d95e9b4cafed023afdbcab46194 (diff) |
2003-04-05 Gaurav Vaish <gvaish_mono AT lycos.com>
* MobileCapabilities.cs : HasCapability(string, string)
- In words how to implement it.
svn path=/trunk/mcs/; revision=13196
Diffstat (limited to 'mcs/class/System.Web.Mobile')
-rw-r--r-- | mcs/class/System.Web.Mobile/System.Web.Mobile/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.Web.Mobile/System.Web.Mobile/MobileCapabilities.cs | 44 |
2 files changed, 49 insertions, 0 deletions
diff --git a/mcs/class/System.Web.Mobile/System.Web.Mobile/ChangeLog b/mcs/class/System.Web.Mobile/System.Web.Mobile/ChangeLog index a1f76fbb078..b11d86f0b03 100644 --- a/mcs/class/System.Web.Mobile/System.Web.Mobile/ChangeLog +++ b/mcs/class/System.Web.Mobile/System.Web.Mobile/ChangeLog @@ -1,6 +1,11 @@ 2003-04-05 Gaurav Vaish <gvaish_mono AT lycos.com> + * MobileCapabilities.cs : HasCapability(string, string) + - In words how to implement it. + +2003-04-05 Gaurav Vaish <gvaish_mono AT lycos.com> + * MobileCapabilities.cs : More methods. * DeviceFilterDictionary.cs: Used by MobCaps for filtering the capabilities. Init impl. diff --git a/mcs/class/System.Web.Mobile/System.Web.Mobile/MobileCapabilities.cs b/mcs/class/System.Web.Mobile/System.Web.Mobile/MobileCapabilities.cs index 41d48b4ba57..1b67ca93327 100644 --- a/mcs/class/System.Web.Mobile/System.Web.Mobile/MobileCapabilities.cs +++ b/mcs/class/System.Web.Mobile/System.Web.Mobile/MobileCapabilities.cs @@ -9,6 +9,7 @@ */ using System; +using System.Collections; using System.Web; using System.Web.UI; @@ -20,6 +21,9 @@ namespace System.Web.Mobile EvaluateCapabilitiesHandler(MobileCapabilities capabilities, string evaluationParam); + private Hashtable evaluatorResults = + Hashtable.Synchronized(new Hashtable()); + private bool canCombineFormsInDeck = false; public MobileCapabilities() @@ -1308,6 +1312,46 @@ namespace System.Web.Mobile { throw new ArgumentException("MobCap_DelegateNameNoValue"); } + DeviceFilterDictionary dict = GetCurrentFilters(); + // check if delegateName is ComparisonEvaluator + // search for it in this.evaluatorResults, if failed: + // HasProperty(??), HasItem(??) + // -> add to this.evaluatorResults + // else throw not found exception! + throw new NotImplementedException(); + } + + private bool HasComparisonEvaluator(string evalName, + out bool result) + { + throw new NotImplementedException(); + } + + private bool HasDelegateEvaluator(string evalName, + out bool result) + { + throw new NotImplementedException(); + } + + private bool HasProperty(string evalName, string param, + out bool result) + { + throw new NotImplementedException(); + } + + private bool HasItem(string evalName, string param, + out bool result) + { + throw new NotImplementedException(); + } + + private bool IsComparisonEvaluator(string evalName) + { + throw new NotImplementedException(); + } + + private DeviceFilterDictionary GetCurrentFilters() + { throw new NotImplementedException(); } } |