1
/* RTMListItemSource.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
// RTMListItemSource.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
20
using System.Collections.Generic;
22
21
using System.Threading;
24
25
using Do.Platform.Linux;
27
28
namespace RememberTheMilk
31
/// ItemSource class for the Remember The Milk lists
29
33
public class RTMListItemSource : ItemSource, IConfigurable
31
35
public override string Name {
32
get { return "Remember The Milk Task Lists"; }
36
get { return AddinManager.CurrentLocalizer.GetString ("Remember The Milk Lists"); }
35
39
public override string Description {
36
get { return "Task Lists in your Remember The Milk account."; }
40
get { return AddinManager.CurrentLocalizer.GetString ("Task Lists in your Remember The Milk account."); }
39
43
public override string Icon {
64
64
Thread updateLists = new Thread (new ThreadStart (RTM.UpdateLists));
65
65
updateLists.IsBackground = true;
66
66
updateLists.Start ();
68
Thread updateTasks = new Thread (new ThreadStart (RTM.UpdateTasks));
69
updateTasks.IsBackground = true;
73
69
public Gtk.Bin GetConfiguration ()