~do-core/do/trunk

« back to all changes in this revision

Viewing changes to PluginLib/src/Builtin/BookmarkItem.cs

  • Committer: djsiegel at gmail
  • Date: 2007-09-14 17:56:28 UTC
  • Revision ID: djsiegel@gmail.com-20070914175628-687padig4f0feh5f
adding Monodevelop-managed branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using System.Collections.Generic;
 
3
 
 
4
using Do.PluginLib;
 
5
 
 
6
namespace Do.PluginLib.Builtin
 
7
{
 
8
 
 
9
        public class BookmarkItem : IOpenableItem
 
10
        {
 
11
                
 
12
                protected string name, url;
 
13
                
 
14
                public BookmarkItem (string name, string url)
 
15
                {
 
16
                        this.name = name;
 
17
                        this.url = url;
 
18
                }
 
19
                
 
20
                public string Name {
 
21
                        get { return name; }
 
22
                }
 
23
                
 
24
                public string Icon {
 
25
                        get { return "www"; }
 
26
                }
 
27
                
 
28
                public string Url {
 
29
                        get { return url; }
 
30
                }
 
31
 
 
32
                public void Open ()
 
33
                {
 
34
                        Gnome.Url.Show (Url);
 
35
                }
 
36
        }
 
37
}