1
/* PingFMServiceItemSource.cs
3
* GNOME Do is the legal property of its developers. Please refer to the
4
* COPYRIGHT file distributed with this source distribution.
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1
// PingFMServiceItemSource.cs
3
// Copyright (C) 2009 GNOME Do
5
// This program is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
15
// You should have received a copy of the GNU General Public License
16
// along with this program. If not, see <http://www.gnu.org/licenses/>.
21
19
using System.Collections.Generic;
23
21
using System.Threading;
26
24
using Do.Platform.Linux;
32
30
public sealed class PingFMServiceItemSource : ItemSource, IConfigurable
34
32
public override string Name {
35
get { return Catalog.GetString ("Ping.FM Services");}
33
get { return AddinManager.CurrentLocalizer.GetString ("Ping.FM Services");}
38
36
public override string Description {
39
get { return Catalog.GetString ("Web services suppported by Ping.FM"); }
37
get { return AddinManager.CurrentLocalizer.GetString ("Web services suppported by Ping.FM"); }
42
40
public override string Icon {
43
41
get { return "pingfm.png@" + GetType ().Assembly.FullName; }
46
44
public override IEnumerable<Type> SupportedItemTypes {
49
typeof (PingFMServiceItem),
45
get { yield return typeof (PingFMServiceItem); }
54
48
public override IEnumerable<Item> Items {
55
49
get { return PingFM.Services.Cast<Item> (); }
58
52
public override void UpdateItems ()
60
54
Thread updateServices = new Thread (new ThreadStart (PingFM.UpdateServices));