~ubuntu-branches/ubuntu/quantal/shotwell/quantal

« back to all changes in this revision

Viewing changes to src/alien_db/f_spot/AlienDb.FSpot.vala

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-02-21 13:52:58 UTC
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: package-import@ubuntu.com-20120221135258-ao9jiib5qicomq7q
Tags: upstream-0.11.92
ImportĀ upstreamĀ versionĀ 0.11.92

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2011 Yorba Foundation
2
 
 *
3
 
 * This software is licensed under the GNU Lesser General Public License
4
 
 * (version 2.1 or later).  See the COPYING file in this distribution. 
5
 
 */
6
 
 
7
 
/* This file is the master unit file for the AlienDb.FSpot unit.  It should be edited to include
8
 
 * whatever code is deemed necessary.
9
 
 *
10
 
 * The init() and terminate() methods are mandatory.
11
 
 *
12
 
 * If the unit needs to be configured prior to initialization, add the proper parameters to
13
 
 * the preconfigure() method, implement it, and ensure in init() that it's been called.
14
 
 */
15
 
 
16
 
namespace AlienDb.FSpot {
17
 
 
18
 
// preconfigure may be deleted if not used.
19
 
public void preconfigure() {
20
 
}
21
 
 
22
 
public void init() throws Error {
23
 
    FSpotDatabaseDriver.init();
24
 
    AlienDb.AlienDatabaseHandler.get_instance().register_driver(
25
 
        FSpotDatabaseDriver.get_instance()
26
 
    );
27
 
}
28
 
 
29
 
public void terminate() {
30
 
    AlienDb.AlienDatabaseHandler.get_instance().unregister_driver(
31
 
        FSpotDatabaseDriver.get_instance()
32
 
    );
33
 
    FSpotDatabaseDriver.terminate();
34
 
}
35
 
 
36
 
}
37