2 * Copyright (C) 2008 Zeeshan Ali <zeenix@gmail.com>.
3 * Copyright (C) 2008 Nokia Corporation, all rights reserved.
5 * Author: Zeeshan Ali <zeenix@gmail.com>
7 * This file is part of Rygel.
9 * Rygel is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * Rygel is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29 * Represents Tracker item.
31 public abstract class Rygel.TrackerItem : MediaItem {
32 protected string path;
34 public TrackerItem (string id,
36 TrackerCategory parent,
38 base (id, parent, "", parent.child_class);
42 this.init_from_metadata (metadata);
45 protected string seconds_to_iso8601 (string seconds) {
49 TimeVal tv = TimeVal ();
51 tv.tv_sec = seconds.to_int ();
54 date = tv.to_iso8601 ();
62 protected abstract void init_from_metadata (string[] values);