Merge pull request #2832 from razzfazz/handle_eintr
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / SiteMapDataSourceView.cs
index 0956fc4c37e10f4f2415ef637ed348eb2bfb978d..071578a04104ef1808f73082281f8f843ff187ff 100644 (file)
@@ -3,8 +3,11 @@
 //
 // Authors:
 //     Ben Maurer (bmaurer@users.sourceforge.net)
+//     Sanjay Gupta (gsanjay@novell.com)
+//     Lluis Sanchez Gual (lluis@novell.com)
 //
 // (C) 2003 Ben Maurer
+// (C) 2004 Novell, Inc. (http://www.novell.com)
 //
 
 //
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 using System.Collections;
 using System.Collections.Specialized;
 using System.Text;
+using System.Web.UI;
 
-namespace System.Web.UI.WebControls {
-       public class SiteMapDataSourceView : HierarchicalDataSourceView {
-               public SiteMapDataSourceView (SiteMapNode node) : this (new SiteMapNodeCollection (node)) {}
-               public SiteMapDataSourceView (SiteMapNodeCollection collection)
+namespace System.Web.UI.WebControls
+{
+       public class SiteMapDataSourceView : DataSourceView
+       {
+               SiteMapNodeCollection collection;
+               
+               public SiteMapDataSourceView (SiteMapDataSource owner, string viewName, SiteMapNode node)
+               : this (owner, viewName, new SiteMapNodeCollection (node))
+               {
+               }
+               
+               public SiteMapDataSourceView (SiteMapDataSource owner, string viewName, SiteMapNodeCollection collection)
+               : base (owner, viewName)
                {
                        this.collection = collection;
                }
-               public override IHierarchicalEnumerable GetHierarchicalList ()
+               
+               public IEnumerable Select (DataSourceSelectArguments arguments)
                {
+                       return ExecuteSelect (arguments);
+               }
+
+               protected internal override IEnumerable ExecuteSelect (DataSourceSelectArguments arguments)
+               {
+                       arguments.RaiseUnsupportedCapabilitiesError (this);
                        return collection;
                }
-               
-               SiteMapNodeCollection collection;
+
+               protected override void OnDataSourceViewChanged (EventArgs e)
+               {
+                       base.OnDataSourceViewChanged (e);
+               }
+
        }
 }
-#endif