~iwarford/do-plugins/fart-plugin-fwiw

« back to all changes in this revision

Viewing changes to SqueezeCenter/src/BrowseMusicItem.cs

  • Committer: Jason Jones
  • Date: 2008-12-24 04:45:02 UTC
  • mfrom: (335.1.9 do-plugins)
  • Revision ID: jasonedwardjones@gmail.com-20081224044502-ra56ym06cp1iqs7t
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  This program is free software: you can redistribute it and/or modify
 
2
//  it under the terms of the GNU General Public License as published by
 
3
//  the Free Software Foundation, either version 3 of the License, or
 
4
//  (at your option) any later version.
 
5
//
 
6
//  This program is distributed in the hope that it will be useful,
 
7
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
8
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
9
//  GNU General Public License for more details.
 
10
//
 
11
//  You should have received a copy of the GNU General Public License
 
12
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
13
 
 
14
using System;
 
15
using System.Threading;
 
16
using System.Diagnostics;
 
17
 
 
18
 
 
19
using Do.Universe;
 
20
 
 
21
namespace SqueezeCenter
 
22
{
 
23
 
 
24
        abstract class BrowseMusicItem: Item
 
25
        {
 
26
                string name, description;
 
27
 
 
28
                public BrowseMusicItem (string name, string description)
 
29
                {
 
30
                        this.name = name;
 
31
                        this.description = description;
 
32
                }
 
33
 
 
34
                public override string Name { get { return name; } }
 
35
                public override string Description { get { return description; } }
 
36
                public override string Icon { get { return "gtk-cdrom"; } }
 
37
        }
 
38
 
 
39
        class BrowseArtistsMusicItem : BrowseMusicItem
 
40
        {
 
41
                public BrowseArtistsMusicItem ():
 
42
                        base ("Browse Artists", "Browse SqueezeCenter Music by Artist")
 
43
                {
 
44
                }
 
45
        }
 
46
 
 
47
        class BrowseAlbumsMusicItem : BrowseMusicItem
 
48
        {
 
49
                public BrowseAlbumsMusicItem ():
 
50
                        base ("Browse Albums", "Browse SqueezeCenter Music by Album")
 
51
                {
 
52
                }
 
53
        }       
 
54
}