3
// This program is free software; you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation; either version 3 of the License, or
6
// (at your option) any later version.
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License
14
// along with this program; if not, see <http://www.gnu.org/licenses/> or
15
// write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
16
// Boston, MA 02111-1307 USA
20
using System.Collections.Generic;
21
using System.Collections;
25
using Tasque.Category.Item;
29
public static class Tasque
31
public static List<IItem> GetCategoryItems ()
33
List<IItem> items = new List<IItem> ();
34
TasqueDBus tasque = new TasqueDBus ();
35
ArrayList categories = new ArrayList ();
38
categories = tasque.GetCategoryNames ();
40
foreach (string category in categories)
41
items.Add (new TasqueCategoryItem (category));
43
Console.Error.WriteLine ("Could not read Tasque's category");