2 * Copyright (C) 2009 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
3 * Copyright (C) 2009 Nokia Corporation.
4 * Copyright (C) 2012 Collabora Ltd.
6 * This library is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 2.1 of the License, or
9 * (at your option) any later version.
11 * This library 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 Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this library. If not, see <http://www.gnu.org/licenses/>.
20 * Jeremy Whiting <jeremy.whiting@collabora.co.uk>
22 * Based on kf-backend-factory.vala by:
23 * Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
24 * Travis Reitter <travis.reitter@collabora.co.uk>
25 * Philip Withnall <philip.withnall@collabora.co.uk>
29 using Folks.Backends.Ofono;
31 private BackendFactory? _backend_factory = null;
34 * The backend module entry point.
36 * @param backend_store the {@link BackendStore} to use in this factory.
40 public void module_init (BackendStore backend_store)
42 _backend_factory = new BackendFactory (backend_store);
46 * The backend module exit point.
48 * @param backend_store the {@link BackendStore} used in this factory.
52 public void module_finalize (BackendStore backend_store)
54 _backend_factory = null;
58 * A backend factory to create a single {@link Backend}.
62 public class Folks.Backends.Ofono.BackendFactory : Object
67 public BackendFactory (BackendStore backend_store)
69 backend_store.add_backend (new Backend ());