~ubuntu-branches/ubuntu/trusty/gnome-do/trusty

« back to all changes in this revision

Viewing changes to Do.Universe/src/Do.Universe/ItemSource.cs

  • Committer: Package Import Robot
  • Author(s): Christopher James Halse Rogers
  • Date: 2012-03-26 11:12:21 UTC
  • mfrom: (0.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120326111221-1jk143fy37zxi3e4
Tags: 0.9-1
* New upstream version no longer uses deprecated internal glib headers.
  (Closes: #665537)
* [59fa37b9] Fix watch file
* [63486516] Imported Upstream version 0.9
* [8c636d84] Disable testsuite for now; requires running dbus and gconf daemons
* [e46de4b9] Remove inaccurate README.Source
* [4591d677] Add git-buildpackage configuration to default to pristine-tar

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        /// Example: A "EpiphanyBookmarkItemSource" could provide Items representing
31
31
        /// Epiphany web browser bookmarks.
32
32
        /// </summary>
33
 
        public abstract class ItemSource : Item
 
33
        public abstract class ItemSource : Item, IChildItemSource
34
34
        {
35
35
 
36
36
                static SafeItemSource safe_item_source = new SafeItemSource ();
69
69
                {
70
70
                        return new SafeItemSource (this);
71
71
                }
72
 
                
 
72
 
73
73
                /// <value>
74
74
                /// Item sub-types provided/supported by this source. These include any
75
75
                /// types of items provided by the Items property, and the types of items
79
79
                /// BookmarkItem).
80
80
                /// </value>
81
81
                public abstract IEnumerable<Type> SupportedItemTypes { get; }
82
 
                
 
82
 
83
83
                /// <value>
84
84
                /// The Items provided by this source.
85
85
                /// null is ok---it signifies that no items are provided.
88
88
                        get { yield break; }
89
89
                }
90
90
                
91
 
                /// <summary>
92
 
                /// Provides a collection of children of an item. Item is guaranteed to be a
93
 
                /// subtype of a type in SupportedItemTypes.
94
 
                /// null is ok---it signifies that no children are provided for the Item
95
 
                /// argument.
96
 
                /// </summary>
97
91
                public virtual IEnumerable<Item> ChildrenOfItem (Item item)
98
92
                {
99
93
                        yield break;