2 * Copyright (C) 2009 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
3 * Copyright (C) 2009 Nokia Corporation.
5 * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
6 * <zeeshan.ali@nokia.com>
8 * This file is part of Rygel.
10 * Rygel is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * Rygel is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28 private Tracker.PluginFactory plugin_factory;
30 public void module_init (PluginLoader loader) {
32 plugin_factory = new Tracker.PluginFactory (loader);
33 } catch (IOError err) {
34 warning (_("Failed to start Tracker service: %s. Plugin disabled.") +
39 public class Rygel.Tracker.PluginFactory {
40 private const string TRACKER_SERVICE = "org.freedesktop.Tracker1";
41 private const string STATISTICS_OBJECT =
42 "/org/freedesktop/Tracker1/Statistics";
47 public PluginFactory (PluginLoader loader) throws IOError {
48 this.stats = Bus.get_proxy_sync (BusType.SESSION,
53 this.stats.get_statistics ();
55 this.loader.add_plugin (new Tracker.Plugin ());