/* FSpotImporter.c generated by valac 0.32.0.15-114e9, the Vala compiler
 * generated from FSpotImporter.vala, do not modify */

/* Copyright 2016 Software Freedom Conservancy Inc.
 *
 * This software is licensed under the GNU Lesser General Public License
 * (version 2.1 or later).  See the COPYING file in this distribution.
 */

#include <glib.h>
#include <glib-object.h>
#include <shotwell-plugin-dev-1.0.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include "shotwell-plugin-common.h"
#include <glib/gi18n-lib.h>
#include <time.h>
#include <gee.h>
#include <float.h>
#include <math.h>


#define TYPE_FSPOT_SERVICE (fspot_service_get_type ())
#define FSPOT_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FSPOT_SERVICE, FSpotService))
#define FSPOT_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FSPOT_SERVICE, FSpotServiceClass))
#define IS_FSPOT_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FSPOT_SERVICE))
#define IS_FSPOT_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FSPOT_SERVICE))
#define FSPOT_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FSPOT_SERVICE, FSpotServiceClass))

typedef struct _FSpotService FSpotService;
typedef struct _FSpotServiceClass FSpotServiceClass;
typedef struct _FSpotServicePrivate FSpotServicePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER (data_imports_fspot_fspot_data_importer_get_type ())
#define DATA_IMPORTS_FSPOT_FSPOT_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter))
#define DATA_IMPORTS_FSPOT_FSPOT_DATA_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporterClass))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER))
#define DATA_IMPORTS_FSPOT_FSPOT_DATA_IMPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporterClass))

typedef struct _DataImportsFSpotFSpotDataImporter DataImportsFSpotFSpotDataImporter;
typedef struct _DataImportsFSpotFSpotDataImporterClass DataImportsFSpotFSpotDataImporterClass;

#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY (data_imports_fspot_fspot_importable_library_get_type ())
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibrary))
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_LIBRARY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibraryClass))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_LIBRARY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY))
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_LIBRARY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibraryClass))

typedef struct _DataImportsFSpotFSpotImportableLibrary DataImportsFSpotFSpotImportableLibrary;
typedef struct _DataImportsFSpotFSpotImportableLibraryClass DataImportsFSpotFSpotImportableLibraryClass;
typedef struct _DataImportsFSpotFSpotImportableLibraryPrivate DataImportsFSpotFSpotImportableLibraryPrivate;

#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM (data_imports_fspot_fspot_importable_item_get_type ())
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem))
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItemClass))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM))
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItemClass))

typedef struct _DataImportsFSpotFSpotImportableItem DataImportsFSpotFSpotImportableItem;
typedef struct _DataImportsFSpotFSpotImportableItemClass DataImportsFSpotFSpotImportableItemClass;
typedef struct _DataImportsFSpotFSpotImportableItemPrivate DataImportsFSpotFSpotImportableItemPrivate;

#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW (data_imports_fspot_db_fspot_photo_row_get_type ())
#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRow))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRowClass))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_ROW, DataImportsFSpotDbFSpotPhotoRowClass))

typedef struct _DataImportsFSpotDbFSpotPhotoRow DataImportsFSpotDbFSpotPhotoRow;
typedef struct _DataImportsFSpotDbFSpotPhotoRowClass DataImportsFSpotDbFSpotPhotoRowClass;

#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW (data_imports_fspot_db_fspot_photo_version_row_get_type ())
#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRow))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRowClass))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSION_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSION_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSION_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSION_ROW, DataImportsFSpotDbFSpotPhotoVersionRowClass))

typedef struct _DataImportsFSpotDbFSpotPhotoVersionRow DataImportsFSpotDbFSpotPhotoVersionRow;
typedef struct _DataImportsFSpotDbFSpotPhotoVersionRowClass DataImportsFSpotDbFSpotPhotoVersionRowClass;

#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW (data_imports_fspot_db_fspot_roll_row_get_type ())
#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRow))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRowClass))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLL_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLL_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLL_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLL_ROW, DataImportsFSpotDbFSpotRollRowClass))

typedef struct _DataImportsFSpotDbFSpotRollRow DataImportsFSpotDbFSpotRollRow;
typedef struct _DataImportsFSpotDbFSpotRollRowClass DataImportsFSpotDbFSpotRollRowClass;

#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG (data_imports_fspot_fspot_importable_tag_get_type ())
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTag))
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTagClass))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG))
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTagClass))

typedef struct _DataImportsFSpotFSpotImportableTag DataImportsFSpotFSpotImportableTag;
typedef struct _DataImportsFSpotFSpotImportableTagClass DataImportsFSpotFSpotImportableTagClass;

#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT (data_imports_fspot_fspot_importable_event_get_type ())
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, DataImportsFSpotFSpotImportableEvent))
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, DataImportsFSpotFSpotImportableEventClass))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT))
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, DataImportsFSpotFSpotImportableEventClass))

typedef struct _DataImportsFSpotFSpotImportableEvent DataImportsFSpotFSpotImportableEvent;
typedef struct _DataImportsFSpotFSpotImportableEventClass DataImportsFSpotFSpotImportableEventClass;

#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING (data_imports_fspot_fspot_importable_rating_get_type ())
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRating))
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRatingClass))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING))
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRatingClass))

typedef struct _DataImportsFSpotFSpotImportableRating DataImportsFSpotFSpotImportableRating;
typedef struct _DataImportsFSpotFSpotImportableRatingClass DataImportsFSpotFSpotImportableRatingClass;
typedef struct _DataImportsFSpotDbFSpotPhotoRowPrivate DataImportsFSpotDbFSpotPhotoRowPrivate;
typedef struct _DataImportsFSpotDbFSpotPhotoVersionRowPrivate DataImportsFSpotDbFSpotPhotoVersionRowPrivate;
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
typedef struct _DataImportsFSpotFSpotImportableTagPrivate DataImportsFSpotFSpotImportableTagPrivate;

#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW (data_imports_fspot_db_fspot_tag_row_get_type ())
#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRow))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRowClass))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAG_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAG_ROW, DataImportsFSpotDbFSpotTagRowClass))

typedef struct _DataImportsFSpotDbFSpotTagRow DataImportsFSpotDbFSpotTagRow;
typedef struct _DataImportsFSpotDbFSpotTagRowClass DataImportsFSpotDbFSpotTagRowClass;
typedef struct _DataImportsFSpotDbFSpotTagRowPrivate DataImportsFSpotDbFSpotTagRowPrivate;
typedef struct _DataImportsFSpotFSpotImportableEventPrivate DataImportsFSpotFSpotImportableEventPrivate;
typedef struct _DataImportsFSpotFSpotImportableRatingPrivate DataImportsFSpotFSpotImportableRatingPrivate;

#define DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE (data_imports_fspot_fspot_tags_cache_get_type ())
#define DATA_IMPORTS_FSPOT_FSPOT_TAGS_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE, DataImportsFSpotFSpotTagsCache))
#define DATA_IMPORTS_FSPOT_FSPOT_TAGS_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE, DataImportsFSpotFSpotTagsCacheClass))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_TAGS_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE))
#define DATA_IMPORTS_FSPOT_IS_FSPOT_TAGS_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE))
#define DATA_IMPORTS_FSPOT_FSPOT_TAGS_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE, DataImportsFSpotFSpotTagsCacheClass))

typedef struct _DataImportsFSpotFSpotTagsCache DataImportsFSpotFSpotTagsCache;
typedef struct _DataImportsFSpotFSpotTagsCacheClass DataImportsFSpotFSpotTagsCacheClass;
typedef struct _DataImportsFSpotFSpotTagsCachePrivate DataImportsFSpotFSpotTagsCachePrivate;

#define TYPE_IMPORTABLE_DATABASE_TABLE (importable_database_table_get_type ())
#define IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTable))
#define IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))
#define IS_IMPORTABLE_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORTABLE_DATABASE_TABLE))
#define IS_IMPORTABLE_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORTABLE_DATABASE_TABLE))
#define IMPORTABLE_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORTABLE_DATABASE_TABLE, ImportableDatabaseTableClass))

typedef struct _ImportableDatabaseTable ImportableDatabaseTable;
typedef struct _ImportableDatabaseTableClass ImportableDatabaseTableClass;

#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE (data_imports_fspot_db_fspot_database_table_get_type ())
#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTable))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE_TABLE, DataImportsFSpotDbFSpotDatabaseTableClass))

typedef struct _DataImportsFSpotDbFSpotDatabaseTable DataImportsFSpotDbFSpotDatabaseTable;
typedef struct _DataImportsFSpotDbFSpotDatabaseTableClass DataImportsFSpotDbFSpotDatabaseTableClass;

#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE (data_imports_fspot_db_fspot_tags_table_get_type ())
#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTable))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTableClass))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_TAGS_TABLE, DataImportsFSpotDbFSpotTagsTableClass))

typedef struct _DataImportsFSpotDbFSpotTagsTable DataImportsFSpotDbFSpotTagsTable;
typedef struct _DataImportsFSpotDbFSpotTagsTableClass DataImportsFSpotDbFSpotTagsTableClass;
#define _importable_database_table_unref0(var) ((var == NULL) ? NULL : (var = (importable_database_table_unref (var), NULL)))
typedef struct _DataImportsFSpotFSpotDataImporterPrivate DataImportsFSpotFSpotDataImporterPrivate;

#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE (data_imports_fspot_db_fspot_database_get_type ())
#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE, DataImportsFSpotDbFSpotDatabase))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE, DataImportsFSpotDbFSpotDatabaseClass))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_DATABASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_DATABASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_DATABASE, DataImportsFSpotDbFSpotDatabaseClass))

typedef struct _DataImportsFSpotDbFSpotDatabase DataImportsFSpotDbFSpotDatabase;
typedef struct _DataImportsFSpotDbFSpotDatabaseClass DataImportsFSpotDbFSpotDatabaseClass;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _DataImportsFSpotDbFSpotDatabasePrivate DataImportsFSpotDbFSpotDatabasePrivate;

#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE (data_imports_fspot_db_fspot_photos_table_get_type ())
#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, DataImportsFSpotDbFSpotPhotosTable))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, DataImportsFSpotDbFSpotPhotosTableClass))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTOS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTOS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTOS_TABLE, DataImportsFSpotDbFSpotPhotosTableClass))

typedef struct _DataImportsFSpotDbFSpotPhotosTable DataImportsFSpotDbFSpotPhotosTable;
typedef struct _DataImportsFSpotDbFSpotPhotosTableClass DataImportsFSpotDbFSpotPhotosTableClass;

#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE (data_imports_fspot_db_fspot_photo_versions_table_get_type ())
#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, DataImportsFSpotDbFSpotPhotoVersionsTable))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, DataImportsFSpotDbFSpotPhotoVersionsTableClass))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSIONS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_PHOTO_VERSIONS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_PHOTO_VERSIONS_TABLE, DataImportsFSpotDbFSpotPhotoVersionsTableClass))

typedef struct _DataImportsFSpotDbFSpotPhotoVersionsTable DataImportsFSpotDbFSpotPhotoVersionsTable;
typedef struct _DataImportsFSpotDbFSpotPhotoVersionsTableClass DataImportsFSpotDbFSpotPhotoVersionsTableClass;

#define DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE (data_imports_fspot_db_fspot_rolls_table_get_type ())
#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, DataImportsFSpotDbFSpotRollsTable))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, DataImportsFSpotDbFSpotRollsTableClass))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE))
#define DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLLS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE))
#define DATA_IMPORTS_FSPOT_DB_FSPOT_ROLLS_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_FSPOT_DB_TYPE_FSPOT_ROLLS_TABLE, DataImportsFSpotDbFSpotRollsTableClass))

typedef struct _DataImportsFSpotDbFSpotRollsTable DataImportsFSpotDbFSpotRollsTable;
typedef struct _DataImportsFSpotDbFSpotRollsTableClass DataImportsFSpotDbFSpotRollsTableClass;

struct _FSpotService {
	GObject parent_instance;
	FSpotServicePrivate * priv;
};

struct _FSpotServiceClass {
	GObjectClass parent_class;
};

struct _DataImportsFSpotFSpotImportableLibrary {
	GObject parent_instance;
	DataImportsFSpotFSpotImportableLibraryPrivate * priv;
};

struct _DataImportsFSpotFSpotImportableLibraryClass {
	GObjectClass parent_class;
};

struct _DataImportsFSpotFSpotImportableLibraryPrivate {
	GFile* db_file;
};

struct _DataImportsFSpotFSpotImportableItem {
	GObject parent_instance;
	DataImportsFSpotFSpotImportableItemPrivate * priv;
};

struct _DataImportsFSpotFSpotImportableItemClass {
	GObjectClass parent_class;
};

struct _DataImportsFSpotFSpotImportableItemPrivate {
	DataImportsFSpotDbFSpotPhotoRow* photo_row;
	DataImportsFSpotDbFSpotPhotoVersionRow* photo_version_row;
	DataImportsFSpotDbFSpotRollRow* roll_row;
	DataImportsFSpotFSpotImportableTag** tags;
	gint tags_length1;
	gint _tags_size_;
	DataImportsFSpotFSpotImportableEvent* event;
	DataImportsFSpotFSpotImportableRating* rating;
	gchar* folder_path;
	gchar* filename;
	time_t* date_time;
};

struct _DataImportsFSpotDbFSpotPhotoRow {
	GObject parent_instance;
	DataImportsFSpotDbFSpotPhotoRowPrivate * priv;
	gint64 photo_id;
	time_t time;
	GFile* base_path;
	gchar* filename;
	gchar* description;
	gint64 roll_id;
	gint64 default_version_id;
	gint rating;
	gchar* md5_sum;
};

struct _DataImportsFSpotDbFSpotPhotoRowClass {
	GObjectClass parent_class;
};

struct _DataImportsFSpotDbFSpotPhotoVersionRow {
	GObject parent_instance;
	DataImportsFSpotDbFSpotPhotoVersionRowPrivate * priv;
	gint64 photo_id;
	gint64 version_id;
	gchar* name;
	GFile* base_path;
	gchar* filename;
	gchar* md5_sum;
	gboolean is_protected;
};

struct _DataImportsFSpotDbFSpotPhotoVersionRowClass {
	GObjectClass parent_class;
};

struct _DataImportsFSpotFSpotImportableTag {
	GObject parent_instance;
	DataImportsFSpotFSpotImportableTagPrivate * priv;
};

struct _DataImportsFSpotFSpotImportableTagClass {
	GObjectClass parent_class;
};

struct _DataImportsFSpotFSpotImportableTagPrivate {
	DataImportsFSpotDbFSpotTagRow* row;
	DataImportsFSpotFSpotImportableTag* parent;
};

struct _DataImportsFSpotDbFSpotTagRow {
	GObject parent_instance;
	DataImportsFSpotDbFSpotTagRowPrivate * priv;
	gint64 tag_id;
	gchar* name;
	gint64 category_id;
	gboolean is_category;
	gint sort_priority;
	gchar* stock_icon;
};

struct _DataImportsFSpotDbFSpotTagRowClass {
	GObjectClass parent_class;
};

struct _DataImportsFSpotFSpotImportableEvent {
	GObject parent_instance;
	DataImportsFSpotFSpotImportableEventPrivate * priv;
};

struct _DataImportsFSpotFSpotImportableEventClass {
	GObjectClass parent_class;
};

struct _DataImportsFSpotFSpotImportableEventPrivate {
	DataImportsFSpotDbFSpotTagRow* row;
};

struct _DataImportsFSpotFSpotImportableRating {
	GObject parent_instance;
	DataImportsFSpotFSpotImportableRatingPrivate * priv;
};

struct _DataImportsFSpotFSpotImportableRatingClass {
	GObjectClass parent_class;
};

struct _DataImportsFSpotFSpotImportableRatingPrivate {
	gint rating_value;
};

struct _DataImportsFSpotFSpotTagsCache {
	GObject parent_instance;
	DataImportsFSpotFSpotTagsCachePrivate * priv;
};

struct _DataImportsFSpotFSpotTagsCacheClass {
	GObjectClass parent_class;
};

struct _DataImportsFSpotFSpotTagsCachePrivate {
	DataImportsFSpotDbFSpotTagsTable* tags_table;
	GeeHashMap* tags_map;
};

typedef enum  {
	DATABASE_ERROR_ERROR,
	DATABASE_ERROR_BACKING,
	DATABASE_ERROR_MEMORY,
	DATABASE_ERROR_ABORT,
	DATABASE_ERROR_LIMITS,
	DATABASE_ERROR_TYPESPEC
} DatabaseError;
#define DATABASE_ERROR database_error_quark ()
struct _DataImportsFSpotFSpotDataImporter {
	GObject parent_instance;
	DataImportsFSpotFSpotDataImporterPrivate * priv;
};

struct _DataImportsFSpotFSpotDataImporterClass {
	GObjectClass parent_class;
};

struct _DataImportsFSpotFSpotDataImporterPrivate {
	SpitDataImportsPluginHost* host;
	SpitDataImportsService* service;
	gboolean running;
};

struct _DataImportsFSpotDbFSpotDatabase {
	GObject parent_instance;
	DataImportsFSpotDbFSpotDatabasePrivate * priv;
	DataImportsFSpotDbFSpotPhotosTable* photos_table;
	DataImportsFSpotDbFSpotPhotoVersionsTable* photo_versions_table;
	DataImportsFSpotDbFSpotTagsTable* tags_table;
	DataImportsFSpotDbFSpotRollsTable* rolls_table;
	gint64 hidden_tag_id;
};

struct _DataImportsFSpotDbFSpotDatabaseClass {
	GObjectClass parent_class;
};


static gpointer fspot_service_parent_class = NULL;
static GdkPixbuf** fspot_service_icon_pixbuf_set;
static gint fspot_service_icon_pixbuf_set_length1;
static GdkPixbuf** fspot_service_icon_pixbuf_set = NULL;
static gint fspot_service_icon_pixbuf_set_length1 = 0;
static gint _fspot_service_icon_pixbuf_set_size_ = 0;
static SpitPluggableIface* fspot_service_spit_pluggable_parent_iface = NULL;
static SpitDataImportsServiceIface* fspot_service_spit_data_imports_service_parent_iface = NULL;
static gpointer data_imports_fspot_fspot_importable_library_parent_class = NULL;
static SpitDataImportsImportableLibraryIface* data_imports_fspot_fspot_importable_library_spit_data_imports_importable_library_parent_iface = NULL;
static gpointer data_imports_fspot_fspot_importable_item_parent_class = NULL;
static SpitDataImportsImportableMediaItemIface* data_imports_fspot_fspot_importable_item_spit_data_imports_importable_media_item_parent_iface = NULL;
static gpointer data_imports_fspot_fspot_importable_tag_parent_class = NULL;
static SpitDataImportsImportableTagIface* data_imports_fspot_fspot_importable_tag_spit_data_imports_importable_tag_parent_iface = NULL;
static gpointer data_imports_fspot_fspot_importable_event_parent_class = NULL;
static SpitDataImportsImportableEventIface* data_imports_fspot_fspot_importable_event_spit_data_imports_importable_event_parent_iface = NULL;
static gpointer data_imports_fspot_fspot_importable_rating_parent_class = NULL;
static SpitDataImportsImportableRatingIface* data_imports_fspot_fspot_importable_rating_spit_data_imports_importable_rating_parent_iface = NULL;
static gpointer data_imports_fspot_fspot_tags_cache_parent_class = NULL;
static gpointer data_imports_fspot_fspot_data_importer_parent_class = NULL;
static SpitDataImportsDataImporterIface* data_imports_fspot_fspot_data_importer_spit_data_imports_data_importer_parent_iface = NULL;

GType fspot_service_get_type (void) G_GNUC_CONST;
enum  {
	FSPOT_SERVICE_DUMMY_PROPERTY
};
#define FSPOT_SERVICE_ICON_FILENAME "f-spot-24.png"
FSpotService* fspot_service_new (GFile* resource_directory);
FSpotService* fspot_service_construct (GType object_type, GFile* resource_directory);
void data_imports_fspot_db_init (void);
static gint fspot_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface);
static const gchar* fspot_service_real_get_id (SpitPluggable* base);
static const gchar* fspot_service_real_get_pluggable_name (SpitPluggable* base);
static void fspot_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info);
static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length);
static void fspot_service_real_activation (SpitPluggable* base, gboolean enabled);
static SpitDataImportsDataImporter* fspot_service_real_create_data_importer (SpitDataImportsService* base, SpitDataImportsPluginHost* host);
DataImportsFSpotFSpotDataImporter* data_imports_fspot_fspot_data_importer_new (SpitDataImportsService* service, SpitDataImportsPluginHost* host);
DataImportsFSpotFSpotDataImporter* data_imports_fspot_fspot_data_importer_construct (GType object_type, SpitDataImportsService* service, SpitDataImportsPluginHost* host);
GType data_imports_fspot_fspot_data_importer_get_type (void) G_GNUC_CONST;
static void fspot_service_finalize (GObject* obj);
#define DATA_IMPORTS_FSPOT_SERVICE_NAME "F-Spot"
#define DATA_IMPORTS_FSPOT_SERVICE_WELCOME_MESSAGE _ ("Welcome to the F-Spot library import service.\n" \
"\n" \
"Please select a library to import, either by selecting one of the exis" \
"ting libraries found by Shotwell or by selecting an alternative F-Spot" \
" database file.")
#define DATA_IMPORTS_FSPOT_SERVICE_WELCOME_MESSAGE_FILE_ONLY _ ("Welcome to the F-Spot library import service.\n" \
"\n" \
"Please select an F-Spot database file.")
#define DATA_IMPORTS_FSPOT_FILE_IMPORT_LABEL _ ("Manually select an F-Spot database file to import:")
#define DATA_IMPORTS_FSPOT_ERROR_CANT_OPEN_DB_FILE _ ("Cannot open the selected F-Spot database file: the file does not exist" \
" or is not an F-Spot database")
#define DATA_IMPORTS_FSPOT_ERROR_UNSUPPORTED_DB_VERSION _ ("Cannot open the selected F-Spot database file: this version of the F-S" \
"pot database is not supported by Shotwell")
#define DATA_IMPORTS_FSPOT_ERROR_CANT_READ_TAGS_TABLE _ ("Cannot read the selected F-Spot database file: error while reading tag" \
"s table")
#define DATA_IMPORTS_FSPOT_ERROR_CANT_READ_PHOTOS_TABLE _ ("Cannot read the selected F-Spot database file: error while reading pho" \
"tos table")
#define DATA_IMPORTS_FSPOT_MESSAGE_FINAL_SCREEN _ ("Shotwell has found %d photos in the F-Spot library and is currently im" \
"porting them. Duplicates will be automatically detected and removed.\n" \
"\n" \
"You can close this dialog and start using Shotwell while the import is" \
" taking place in the background.")
GType data_imports_fspot_fspot_importable_library_get_type (void) G_GNUC_CONST;
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_LIBRARY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibraryPrivate))
enum  {
	DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_LIBRARY_DUMMY_PROPERTY
};
DataImportsFSpotFSpotImportableLibrary* data_imports_fspot_fspot_importable_library_new (GFile* db_file);
DataImportsFSpotFSpotImportableLibrary* data_imports_fspot_fspot_importable_library_construct (GType object_type, GFile* db_file);
GFile* data_imports_fspot_fspot_importable_library_get_db_file (DataImportsFSpotFSpotImportableLibrary* self);
static gchar* data_imports_fspot_fspot_importable_library_real_get_display_name (SpitDataImportsImportableLibrary* base);
static void data_imports_fspot_fspot_importable_library_finalize (GObject* obj);
GType data_imports_fspot_fspot_importable_item_get_type (void) G_GNUC_CONST;
GType data_imports_fspot_db_fspot_photo_row_get_type (void) G_GNUC_CONST;
GType data_imports_fspot_db_fspot_photo_version_row_get_type (void) G_GNUC_CONST;
GType data_imports_fspot_db_fspot_roll_row_get_type (void) G_GNUC_CONST;
GType data_imports_fspot_fspot_importable_tag_get_type (void) G_GNUC_CONST;
GType data_imports_fspot_fspot_importable_event_get_type (void) G_GNUC_CONST;
GType data_imports_fspot_fspot_importable_rating_get_type (void) G_GNUC_CONST;
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItemPrivate))
enum  {
	DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_ITEM_DUMMY_PROPERTY
};
DataImportsFSpotFSpotImportableItem* data_imports_fspot_fspot_importable_item_new (DataImportsFSpotDbFSpotPhotoRow* photo_row, DataImportsFSpotDbFSpotPhotoVersionRow* photo_version_row, DataImportsFSpotDbFSpotRollRow* roll_row, DataImportsFSpotFSpotImportableTag** tags, int tags_length1, DataImportsFSpotFSpotImportableEvent* event, gboolean is_hidden, gboolean is_favorite);
DataImportsFSpotFSpotImportableItem* data_imports_fspot_fspot_importable_item_construct (GType object_type, DataImportsFSpotDbFSpotPhotoRow* photo_row, DataImportsFSpotDbFSpotPhotoVersionRow* photo_version_row, DataImportsFSpotDbFSpotRollRow* roll_row, DataImportsFSpotFSpotImportableTag** tags, int tags_length1, DataImportsFSpotFSpotImportableEvent* event, gboolean is_hidden, gboolean is_favorite);
static DataImportsFSpotFSpotImportableTag** _vala_array_dup2 (DataImportsFSpotFSpotImportableTag** self, int length);
static time_t* _time_t_dup (time_t* self);
DataImportsFSpotFSpotImportableRating* data_imports_fspot_fspot_importable_rating_new (gint rating_value);
DataImportsFSpotFSpotImportableRating* data_imports_fspot_fspot_importable_rating_construct (GType object_type, gint rating_value);
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_REJECTED -1
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_UNRATED 0
static gchar* data_imports_fspot_fspot_importable_item_decode_url (DataImportsFSpotFSpotImportableItem* self, const gchar* url);
static SpitDataImportsImportableTag** data_imports_fspot_fspot_importable_item_real_get_tags (SpitDataImportsImportableMediaItem* base, int* result_length1);
static void _vala_array_add1 (SpitDataImportsImportableTag*** array, int* length, int* size, SpitDataImportsImportableTag* value);
static SpitDataImportsImportableEvent* data_imports_fspot_fspot_importable_item_real_get_event (SpitDataImportsImportableMediaItem* base);
static gchar* data_imports_fspot_fspot_importable_item_real_get_folder_path (SpitDataImportsImportableMediaItem* base);
static gchar* data_imports_fspot_fspot_importable_item_real_get_filename (SpitDataImportsImportableMediaItem* base);
static gchar* data_imports_fspot_fspot_importable_item_real_get_title (SpitDataImportsImportableMediaItem* base);
static SpitDataImportsImportableRating* data_imports_fspot_fspot_importable_item_real_get_rating (SpitDataImportsImportableMediaItem* base);
static time_t* data_imports_fspot_fspot_importable_item_real_get_exposure_time (SpitDataImportsImportableMediaItem* base);
static void data_imports_fspot_fspot_importable_item_finalize (GObject* obj);
GType data_imports_fspot_db_fspot_tag_row_get_type (void) G_GNUC_CONST;
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_TAG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTagPrivate))
enum  {
	DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_TAG_DUMMY_PROPERTY
};
DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_importable_tag_new (DataImportsFSpotDbFSpotTagRow* row, DataImportsFSpotFSpotImportableTag* parent);
DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_importable_tag_construct (GType object_type, DataImportsFSpotDbFSpotTagRow* row, DataImportsFSpotFSpotImportableTag* parent);
gint64 data_imports_fspot_fspot_importable_tag_get_id (DataImportsFSpotFSpotImportableTag* self);
static gchar* data_imports_fspot_fspot_importable_tag_real_get_name (SpitDataImportsImportableTag* base);
static SpitDataImportsImportableTag* data_imports_fspot_fspot_importable_tag_real_get_parent (SpitDataImportsImportableTag* base);
DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_importable_tag_get_fspot_parent (DataImportsFSpotFSpotImportableTag* self);
gchar* data_imports_fspot_fspot_importable_tag_get_stock_icon (DataImportsFSpotFSpotImportableTag* self);
gboolean data_imports_fspot_fspot_importable_tag_is_stock (DataImportsFSpotFSpotImportableTag* self);
#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_PREFIX_STOCK_ICON "stock_icon:"
DataImportsFSpotFSpotImportableEvent* data_imports_fspot_fspot_importable_tag_to_event (DataImportsFSpotFSpotImportableTag* self);
DataImportsFSpotFSpotImportableEvent* data_imports_fspot_fspot_importable_event_new (DataImportsFSpotDbFSpotTagRow* row);
DataImportsFSpotFSpotImportableEvent* data_imports_fspot_fspot_importable_event_construct (GType object_type, DataImportsFSpotDbFSpotTagRow* row);
static void data_imports_fspot_fspot_importable_tag_finalize (GObject* obj);
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_EVENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, DataImportsFSpotFSpotImportableEventPrivate))
enum  {
	DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_EVENT_DUMMY_PROPERTY
};
static gchar* data_imports_fspot_fspot_importable_event_real_get_name (SpitDataImportsImportableEvent* base);
static void data_imports_fspot_fspot_importable_event_finalize (GObject* obj);
#define DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRatingPrivate))
enum  {
	DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_DUMMY_PROPERTY
};
static gboolean data_imports_fspot_fspot_importable_rating_real_is_rejected (SpitDataImportsImportableRating* base);
static gboolean data_imports_fspot_fspot_importable_rating_real_is_unrated (SpitDataImportsImportableRating* base);
static gint data_imports_fspot_fspot_importable_rating_real_get_value (SpitDataImportsImportableRating* base);
static void data_imports_fspot_fspot_importable_rating_finalize (GObject* obj);
GType data_imports_fspot_fspot_tags_cache_get_type (void) G_GNUC_CONST;
gpointer importable_database_table_ref (gpointer instance);
void importable_database_table_unref (gpointer instance);
GParamSpec* param_spec_importable_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_importable_database_table (GValue* value, gpointer v_object);
void value_take_importable_database_table (GValue* value, gpointer v_object);
gpointer value_get_importable_database_table (const GValue* value);
GType importable_database_table_get_type (void) G_GNUC_CONST;
GType data_imports_fspot_db_fspot_database_table_get_type (void) G_GNUC_CONST;
GType data_imports_fspot_db_fspot_tags_table_get_type (void) G_GNUC_CONST;
#define DATA_IMPORTS_FSPOT_FSPOT_TAGS_CACHE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE, DataImportsFSpotFSpotTagsCachePrivate))
enum  {
	DATA_IMPORTS_FSPOT_FSPOT_TAGS_CACHE_DUMMY_PROPERTY
};
GQuark database_error_quark (void);
DataImportsFSpotFSpotTagsCache* data_imports_fspot_fspot_tags_cache_new (DataImportsFSpotDbFSpotTagsTable* tags_table, GError** error);
DataImportsFSpotFSpotTagsCache* data_imports_fspot_fspot_tags_cache_construct (GType object_type, DataImportsFSpotDbFSpotTagsTable* tags_table, GError** error);
static gint64* _int64_dup (gint64* self);
DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_tags_cache_get_tag (DataImportsFSpotFSpotTagsCache* self, DataImportsFSpotDbFSpotTagRow* tag_row, GError** error);
static DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_tags_cache_get_tag_from_id (DataImportsFSpotFSpotTagsCache* self, gint64 tag_id, GError** error);
DataImportsFSpotDbFSpotTagRow* data_imports_fspot_db_fspot_tags_table_get_by_id (DataImportsFSpotDbFSpotTagsTable* self, gint64 tag_id, GError** error);
static void data_imports_fspot_fspot_tags_cache_finalize (GObject* obj);
#define DATA_IMPORTS_FSPOT_FSPOT_DATA_IMPORTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporterPrivate))
enum  {
	DATA_IMPORTS_FSPOT_FSPOT_DATA_IMPORTER_DUMMY_PROPERTY
};
static gboolean data_imports_fspot_fspot_data_importer_real_is_running (SpitDataImportsDataImporter* base);
static SpitDataImportsService* data_imports_fspot_fspot_data_importer_real_get_service (SpitDataImportsDataImporter* base);
static void data_imports_fspot_fspot_data_importer_real_start (SpitDataImportsDataImporter* base);
static void data_imports_fspot_fspot_data_importer_do_discover_importable_libraries (DataImportsFSpotFSpotDataImporter* self);
static void data_imports_fspot_fspot_data_importer_real_stop (SpitDataImportsDataImporter* base);
static void _vala_array_add2 (SpitDataImportsImportableLibrary*** array, int* length, int* size, SpitDataImportsImportableLibrary* value);
static void data_imports_fspot_fspot_data_importer_real_on_library_selected (SpitDataImportsDataImporter* base, SpitDataImportsImportableLibrary* library);
static void data_imports_fspot_fspot_data_importer_real_on_file_selected (SpitDataImportsDataImporter* base, GFile* file);
GType data_imports_fspot_db_fspot_database_get_type (void) G_GNUC_CONST;
DataImportsFSpotDbFSpotDatabase* data_imports_fspot_db_fspot_database_new (GFile* db_file, GError** error);
DataImportsFSpotDbFSpotDatabase* data_imports_fspot_db_fspot_database_construct (GType object_type, GFile* db_file, GError** error);
GType data_imports_fspot_db_fspot_photos_table_get_type (void) G_GNUC_CONST;
GType data_imports_fspot_db_fspot_photo_versions_table_get_type (void) G_GNUC_CONST;
GType data_imports_fspot_db_fspot_rolls_table_get_type (void) G_GNUC_CONST;
GeeArrayList* data_imports_fspot_db_fspot_photos_table_get_all (DataImportsFSpotDbFSpotPhotosTable* self, GError** error);
GeeArrayList* data_imports_fspot_db_fspot_tags_table_get_by_photo_id (DataImportsFSpotDbFSpotTagsTable* self, gint64 photo_id, GError** error);
static gboolean data_imports_fspot_fspot_data_importer_is_tag_hidden (DataImportsFSpotFSpotDataImporter* self, DataImportsFSpotFSpotImportableTag* tag, gint64 hidden_tag_id);
static gboolean data_imports_fspot_fspot_data_importer_is_tag_favorite (DataImportsFSpotFSpotDataImporter* self, DataImportsFSpotFSpotImportableTag* tag);
static void _vala_array_add3 (DataImportsFSpotFSpotImportableTag*** array, int* length, int* size, DataImportsFSpotFSpotImportableTag* value);
DataImportsFSpotDbFSpotRollRow* data_imports_fspot_db_fspot_rolls_table_get_by_id (DataImportsFSpotDbFSpotRollsTable* self, gint64 roll_id, GError** error);
GeeArrayList* data_imports_fspot_db_fspot_photo_versions_table_get_by_photo_id (DataImportsFSpotDbFSpotPhotoVersionsTable* self, gint64 photo_id, GError** error);
static void _vala_array_add4 (SpitDataImportsImportableMediaItem*** array, int* length, int* size, SpitDataImportsImportableMediaItem* value);
static void _vala_array_add5 (SpitDataImportsImportableMediaItem*** array, int* length, int* size, SpitDataImportsImportableMediaItem* value);
static void _vala_array_add6 (SpitDataImportsImportableMediaItem*** array, int* length, int* size, SpitDataImportsImportableMediaItem* value);
void data_imports_fspot_fspot_data_importer_on_imported_items_count (DataImportsFSpotFSpotDataImporter* self, gint imported_items_count);
static void _data_imports_fspot_fspot_data_importer_on_imported_items_count_spit_data_imports_imported_items_count_callback (gint imported_items_count, gpointer self);
static gboolean data_imports_fspot_fspot_data_importer_is_tag_event (DataImportsFSpotFSpotDataImporter* self, DataImportsFSpotFSpotImportableTag* tag);
#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_STOCK_ICON_EVENTS "stock_icon:emblem-event"
#define DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_STOCK_ICON_FAV "stock_icon:emblem-favorite"
static void data_imports_fspot_fspot_data_importer_finalize (GObject* obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


FSpotService* fspot_service_construct (GType object_type, GFile* resource_directory) {
	FSpotService * self = NULL;
	GdkPixbuf** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (G_IS_FILE (resource_directory), NULL);
#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = (FSpotService*) g_object_new (object_type, NULL);
#line 14 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_db_init ();
#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = fspot_service_icon_pixbuf_set;
#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0__length1 = fspot_service_icon_pixbuf_set_length1;
#line 15 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp0_ == NULL) {
#line 617 "FSpotImporter.c"
		GFile* _tmp1_ = NULL;
		GFile* _tmp2_ = NULL;
		GFile* _tmp3_ = NULL;
		gint _tmp4_ = 0;
		GdkPixbuf** _tmp5_ = NULL;
#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp1_ = resource_directory;
#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp2_ = g_file_get_child (_tmp1_, FSPOT_SERVICE_ICON_FILENAME);
#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp3_ = _tmp2_;
#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp5_ = resources_load_icon_set (_tmp3_, &_tmp4_);
#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		fspot_service_icon_pixbuf_set = (_vala_array_free (fspot_service_icon_pixbuf_set, fspot_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL);
#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		fspot_service_icon_pixbuf_set = _tmp5_;
#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		fspot_service_icon_pixbuf_set_length1 = _tmp4_;
#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_fspot_service_icon_pixbuf_set_size_ = fspot_service_icon_pixbuf_set_length1;
#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (_tmp3_);
#line 641 "FSpotImporter.c"
	}
#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return self;
#line 645 "FSpotImporter.c"
}


FSpotService* fspot_service_new (GFile* resource_directory) {
#line 12 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return fspot_service_construct (TYPE_FSPOT_SERVICE, resource_directory);
#line 652 "FSpotImporter.c"
}


static gint fspot_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) {
	FSpotService * self;
	gint result = 0;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	gint _tmp2_ = 0;
#line 19 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FSPOT_SERVICE, FSpotService);
#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = min_host_interface;
#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = max_host_interface;
#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_DATA_IMPORTS_CURRENT_INTERFACE);
#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp2_;
#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 674 "FSpotImporter.c"
}


static const gchar* fspot_service_real_get_id (SpitPluggable* base) {
	FSpotService * self;
	const gchar* result = NULL;
#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FSPOT_SERVICE, FSpotService);
#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = "org.yorba.shotwell.dataimports.fspot";
#line 25 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 687 "FSpotImporter.c"
}


static const gchar* fspot_service_real_get_pluggable_name (SpitPluggable* base) {
	FSpotService * self;
	const gchar* result = NULL;
#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FSPOT_SERVICE, FSpotService);
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = "F-Spot";
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 700 "FSpotImporter.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return self ? g_object_ref (self) : NULL;
#line 707 "FSpotImporter.c"
}


static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, int length) {
	GdkPixbuf** result;
	int i;
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = g_new0 (GdkPixbuf*, length + 1);
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	for (i = 0; i < length; i++) {
#line 718 "FSpotImporter.c"
		GdkPixbuf* _tmp0_ = NULL;
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp0_ = _g_object_ref0 (self[i]);
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		result[i] = _tmp0_;
#line 724 "FSpotImporter.c"
	}
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 728 "FSpotImporter.c"
}


static void fspot_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) {
	FSpotService * self;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	GdkPixbuf** _tmp8_ = NULL;
	gint _tmp8__length1 = 0;
	GdkPixbuf** _tmp9_ = NULL;
	gint _tmp9__length1 = 0;
#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FSPOT_SERVICE, FSpotService);
#line 32 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_if_fail (info != NULL);
#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = g_strdup ("Bruno Girin");
#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 ((*info).authors);
#line 33 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*info).authors = _tmp0_;
#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _ ("Copyright 2016 Software Freedom Conservancy Inc.");
#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 ((*info).copyright);
#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*info).copyright = _tmp2_;
#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp3_ = g_strdup (RESOURCES_TRANSLATORS);
#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 ((*info).translators);
#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*info).translators = _tmp3_;
#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp4_ = g_strdup (_VERSION);
#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 ((*info).version);
#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*info).version = _tmp4_;
#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp5_ = g_strdup (RESOURCES_WEBSITE_NAME);
#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 ((*info).website_name);
#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*info).website_name = _tmp5_;
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp6_ = g_strdup (RESOURCES_WEBSITE_URL);
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 ((*info).website_url);
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*info).website_url = _tmp6_;
#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*info).is_license_wordwrapped = FALSE;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp7_ = g_strdup (RESOURCES_LICENSE);
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 ((*info).license);
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*info).license = _tmp7_;
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp8_ = fspot_service_icon_pixbuf_set;
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp8__length1 = fspot_service_icon_pixbuf_set_length1;
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup1 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_);
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp9__length1 = _tmp8__length1;
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL);
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*info).icons = _tmp9_;
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*info).icons_length1 = _tmp9__length1;
#line 810 "FSpotImporter.c"
}


static void fspot_service_real_activation (SpitPluggable* base, gboolean enabled) {
	FSpotService * self;
#line 44 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FSPOT_SERVICE, FSpotService);
#line 818 "FSpotImporter.c"
}


static SpitDataImportsDataImporter* fspot_service_real_create_data_importer (SpitDataImportsService* base, SpitDataImportsPluginHost* host) {
	FSpotService * self;
	SpitDataImportsDataImporter* result = NULL;
	SpitDataImportsPluginHost* _tmp0_ = NULL;
	DataImportsFSpotFSpotDataImporter* _tmp1_ = NULL;
#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FSPOT_SERVICE, FSpotService);
#line 47 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL);
#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = host;
#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = data_imports_fspot_fspot_data_importer_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsService), _tmp0_);
#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporter);
#line 48 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 839 "FSpotImporter.c"
}


static void fspot_service_class_init (FSpotServiceClass * klass) {
#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	fspot_service_parent_class = g_type_class_peek_parent (klass);
#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (klass)->finalize = fspot_service_finalize;
#line 848 "FSpotImporter.c"
}


static void fspot_service_spit_pluggable_interface_init (SpitPluggableIface * iface) {
#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	fspot_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface);
#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_pluggable_interface = (gint (*)(SpitPluggable*, gint, gint)) fspot_service_real_get_pluggable_interface;
#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_id = (const gchar* (*)(SpitPluggable*)) fspot_service_real_get_id;
#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_pluggable_name = (const gchar* (*)(SpitPluggable*)) fspot_service_real_get_pluggable_name;
#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_info = (void (*)(SpitPluggable*, SpitPluggableInfo*)) fspot_service_real_get_info;
#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->activation = (void (*)(SpitPluggable*, gboolean)) fspot_service_real_activation;
#line 865 "FSpotImporter.c"
}


static void fspot_service_spit_data_imports_service_interface_init (SpitDataImportsServiceIface * iface) {
#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	fspot_service_spit_data_imports_service_parent_iface = g_type_interface_peek_parent (iface);
#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->create_data_importer = (SpitDataImportsDataImporter* (*)(SpitDataImportsService*, SpitDataImportsPluginHost*)) fspot_service_real_create_data_importer;
#line 874 "FSpotImporter.c"
}


static void fspot_service_instance_init (FSpotService * self) {
}


static void fspot_service_finalize (GObject* obj) {
	FSpotService * self;
#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FSPOT_SERVICE, FSpotService);
#line 7 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (fspot_service_parent_class)->finalize (obj);
#line 888 "FSpotImporter.c"
}


GType fspot_service_get_type (void) {
	static volatile gsize fspot_service_type_id__volatile = 0;
	if (g_once_init_enter (&fspot_service_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FSpotServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fspot_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FSpotService), 0, (GInstanceInitFunc) fspot_service_instance_init, NULL };
		static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) fspot_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo spit_data_imports_service_info = { (GInterfaceInitFunc) fspot_service_spit_data_imports_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType fspot_service_type_id;
		fspot_service_type_id = g_type_register_static (G_TYPE_OBJECT, "FSpotService", &g_define_type_info, 0);
		g_type_add_interface_static (fspot_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info);
		g_type_add_interface_static (fspot_service_type_id, SPIT_DATA_IMPORTS_TYPE_SERVICE, &spit_data_imports_service_info);
		g_once_init_leave (&fspot_service_type_id__volatile, fspot_service_type_id);
	}
	return fspot_service_type_id__volatile;
}


DataImportsFSpotFSpotImportableLibrary* data_imports_fspot_fspot_importable_library_construct (GType object_type, GFile* db_file) {
	DataImportsFSpotFSpotImportableLibrary * self = NULL;
	GFile* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (G_IS_FILE (db_file), NULL);
#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = (DataImportsFSpotFSpotImportableLibrary*) g_object_new (object_type, NULL);
#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = db_file;
#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->db_file);
#line 76 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->db_file = _tmp1_;
#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return self;
#line 926 "FSpotImporter.c"
}


DataImportsFSpotFSpotImportableLibrary* data_imports_fspot_fspot_importable_library_new (GFile* db_file) {
#line 75 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return data_imports_fspot_fspot_importable_library_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, db_file);
#line 933 "FSpotImporter.c"
}


GFile* data_imports_fspot_fspot_importable_library_get_db_file (DataImportsFSpotFSpotImportableLibrary* self) {
	GFile* result = NULL;
	GFile* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
#line 79 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_LIBRARY (self), NULL);
#line 80 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->db_file;
#line 80 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 80 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp1_;
#line 80 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 951 "FSpotImporter.c"
}


static gchar* data_imports_fspot_fspot_importable_library_real_get_display_name (SpitDataImportsImportableLibrary* base) {
	DataImportsFSpotFSpotImportableLibrary * self;
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
#line 83 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibrary);
#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = _ ("F-Spot library: %s");
#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = self->priv->db_file;
#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = g_file_get_path (_tmp1_);
#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp3_ = _tmp2_;
#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp4_ = g_strdup_printf (_tmp0_, _tmp3_);
#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp5_ = _tmp4_;
#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 (_tmp3_);
#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp5_;
#line 84 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 984 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_library_class_init (DataImportsFSpotFSpotImportableLibraryClass * klass) {
#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_importable_library_parent_class = g_type_class_peek_parent (klass);
#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotImportableLibraryPrivate));
#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_importable_library_finalize;
#line 995 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_library_spit_data_imports_importable_library_interface_init (SpitDataImportsImportableLibraryIface * iface) {
#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_importable_library_spit_data_imports_importable_library_parent_iface = g_type_interface_peek_parent (iface);
#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_display_name = (gchar* (*)(SpitDataImportsImportableLibrary*)) data_imports_fspot_fspot_importable_library_real_get_display_name;
#line 1004 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_library_instance_init (DataImportsFSpotFSpotImportableLibrary * self) {
#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv = DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_LIBRARY_GET_PRIVATE (self);
#line 1011 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_library_finalize (GObject* obj) {
	DataImportsFSpotFSpotImportableLibrary * self;
#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibrary);
#line 73 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->db_file);
#line 72 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (data_imports_fspot_fspot_importable_library_parent_class)->finalize (obj);
#line 1023 "FSpotImporter.c"
}


GType data_imports_fspot_fspot_importable_library_get_type (void) {
	static volatile gsize data_imports_fspot_fspot_importable_library_type_id__volatile = 0;
	if (g_once_init_enter (&data_imports_fspot_fspot_importable_library_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotImportableLibraryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_importable_library_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotImportableLibrary), 0, (GInstanceInitFunc) data_imports_fspot_fspot_importable_library_instance_init, NULL };
		static const GInterfaceInfo spit_data_imports_importable_library_info = { (GInterfaceInitFunc) data_imports_fspot_fspot_importable_library_spit_data_imports_importable_library_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType data_imports_fspot_fspot_importable_library_type_id;
		data_imports_fspot_fspot_importable_library_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotImportableLibrary", &g_define_type_info, 0);
		g_type_add_interface_static (data_imports_fspot_fspot_importable_library_type_id, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, &spit_data_imports_importable_library_info);
		g_once_init_leave (&data_imports_fspot_fspot_importable_library_type_id__volatile, data_imports_fspot_fspot_importable_library_type_id);
	}
	return data_imports_fspot_fspot_importable_library_type_id__volatile;
}


static DataImportsFSpotFSpotImportableTag** _vala_array_dup2 (DataImportsFSpotFSpotImportableTag** self, int length) {
	DataImportsFSpotFSpotImportableTag** result;
	int i;
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = g_new0 (DataImportsFSpotFSpotImportableTag*, length + 1);
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	for (i = 0; i < length; i++) {
#line 1048 "FSpotImporter.c"
		DataImportsFSpotFSpotImportableTag* _tmp0_ = NULL;
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp0_ = _g_object_ref0 (self[i]);
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		result[i] = _tmp0_;
#line 1054 "FSpotImporter.c"
	}
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 1058 "FSpotImporter.c"
}


static time_t* _time_t_dup (time_t* self) {
	time_t* dup;
#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	dup = g_new0 (time_t, 1);
#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	memcpy (dup, self, sizeof (time_t));
#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return dup;
#line 1070 "FSpotImporter.c"
}


static gpointer __time_t_dup0 (gpointer self) {
#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return self ? _time_t_dup (self) : NULL;
#line 1077 "FSpotImporter.c"
}


DataImportsFSpotFSpotImportableItem* data_imports_fspot_fspot_importable_item_construct (GType object_type, DataImportsFSpotDbFSpotPhotoRow* photo_row, DataImportsFSpotDbFSpotPhotoVersionRow* photo_version_row, DataImportsFSpotDbFSpotRollRow* roll_row, DataImportsFSpotFSpotImportableTag** tags, int tags_length1, DataImportsFSpotFSpotImportableEvent* event, gboolean is_hidden, gboolean is_favorite) {
	DataImportsFSpotFSpotImportableItem * self = NULL;
	DataImportsFSpotDbFSpotPhotoRow* _tmp0_ = NULL;
	DataImportsFSpotDbFSpotPhotoRow* _tmp1_ = NULL;
	DataImportsFSpotDbFSpotPhotoVersionRow* _tmp2_ = NULL;
	DataImportsFSpotDbFSpotPhotoVersionRow* _tmp3_ = NULL;
	DataImportsFSpotDbFSpotRollRow* _tmp4_ = NULL;
	DataImportsFSpotDbFSpotRollRow* _tmp5_ = NULL;
	DataImportsFSpotFSpotImportableTag** _tmp6_ = NULL;
	gint _tmp6__length1 = 0;
	DataImportsFSpotFSpotImportableTag** _tmp7_ = NULL;
	gint _tmp7__length1 = 0;
	DataImportsFSpotFSpotImportableEvent* _tmp8_ = NULL;
	DataImportsFSpotFSpotImportableEvent* _tmp9_ = NULL;
	DataImportsFSpotDbFSpotPhotoRow* _tmp10_ = NULL;
	time_t _tmp11_ = 0;
	time_t* _tmp12_ = NULL;
	DataImportsFSpotDbFSpotPhotoRow* _tmp13_ = NULL;
	gint _tmp14_ = 0;
	gchar* _tmp23_ = NULL;
	DataImportsFSpotDbFSpotPhotoVersionRow* _tmp24_ = NULL;
	gchar* _tmp31_ = NULL;
	const gchar* _tmp32_ = NULL;
	DataImportsFSpotDbFSpotPhotoVersionRow* _tmp33_ = NULL;
	gchar* _tmp38_ = NULL;
	gboolean _tmp39_ = FALSE;
	const gchar* _tmp40_ = NULL;
#line 99 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_ROW (photo_row), NULL);
#line 99 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail ((photo_version_row == NULL) || DATA_IMPORTS_FSPOT_DB_IS_FSPOT_PHOTO_VERSION_ROW (photo_version_row), NULL);
#line 99 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail ((roll_row == NULL) || DATA_IMPORTS_FSPOT_DB_IS_FSPOT_ROLL_ROW (roll_row), NULL);
#line 99 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail ((event == NULL) || DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_EVENT (event), NULL);
#line 99 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = (DataImportsFSpotFSpotImportableItem*) g_object_new (object_type, NULL);
#line 108 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = photo_row;
#line 108 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 108 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->photo_row);
#line 108 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->photo_row = _tmp1_;
#line 109 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = photo_version_row;
#line 109 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 109 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->photo_version_row);
#line 109 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->photo_version_row = _tmp3_;
#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp4_ = roll_row;
#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->roll_row);
#line 110 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->roll_row = _tmp5_;
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp6_ = tags;
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp6__length1 = tags_length1;
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp7_ = (_tmp6_ != NULL) ? _vala_array_dup2 (_tmp6_, _tmp6__length1) : ((gpointer) _tmp6_);
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp7__length1 = _tmp6__length1;
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->tags = (_vala_array_free (self->priv->tags, self->priv->tags_length1, (GDestroyNotify) g_object_unref), NULL);
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->tags = _tmp7_;
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->tags_length1 = _tmp7__length1;
#line 111 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->_tags_size_ = self->priv->tags_length1;
#line 112 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp8_ = event;
#line 112 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 112 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->event);
#line 112 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->event = _tmp9_;
#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp10_ = photo_row;
#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp11_ = _tmp10_->time;
#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp12_ = __time_t_dup0 (&_tmp11_);
#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 (self->priv->date_time);
#line 113 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->date_time = _tmp12_;
#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp13_ = photo_row;
#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp14_ = _tmp13_->rating;
#line 114 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp14_ > 0) {
#line 1182 "FSpotImporter.c"
		DataImportsFSpotDbFSpotPhotoRow* _tmp15_ = NULL;
		gint _tmp16_ = 0;
		DataImportsFSpotFSpotImportableRating* _tmp17_ = NULL;
#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp15_ = photo_row;
#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp16_ = _tmp15_->rating;
#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp17_ = data_imports_fspot_fspot_importable_rating_new (_tmp16_);
#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (self->priv->rating);
#line 115 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		self->priv->rating = _tmp17_;
#line 1196 "FSpotImporter.c"
	} else {
		gboolean _tmp18_ = FALSE;
#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp18_ = is_hidden;
#line 116 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		if (_tmp18_) {
#line 1203 "FSpotImporter.c"
			DataImportsFSpotFSpotImportableRating* _tmp19_ = NULL;
#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp19_ = data_imports_fspot_fspot_importable_rating_new (DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_REJECTED);
#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (self->priv->rating);
#line 117 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			self->priv->rating = _tmp19_;
#line 1211 "FSpotImporter.c"
		} else {
			gboolean _tmp20_ = FALSE;
#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp20_ = is_favorite;
#line 118 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			if (_tmp20_) {
#line 1218 "FSpotImporter.c"
				DataImportsFSpotFSpotImportableRating* _tmp21_ = NULL;
#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp21_ = data_imports_fspot_fspot_importable_rating_new (5);
#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (self->priv->rating);
#line 119 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				self->priv->rating = _tmp21_;
#line 1226 "FSpotImporter.c"
			} else {
				DataImportsFSpotFSpotImportableRating* _tmp22_ = NULL;
#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp22_ = data_imports_fspot_fspot_importable_rating_new (DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_UNRATED);
#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (self->priv->rating);
#line 121 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				self->priv->rating = _tmp22_;
#line 1235 "FSpotImporter.c"
			}
		}
	}
#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp24_ = photo_version_row;
#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp24_ != NULL) {
#line 1243 "FSpotImporter.c"
		DataImportsFSpotDbFSpotPhotoVersionRow* _tmp25_ = NULL;
		GFile* _tmp26_ = NULL;
		gchar* _tmp27_ = NULL;
#line 125 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp25_ = photo_version_row;
#line 125 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp26_ = _tmp25_->base_path;
#line 125 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp27_ = g_file_get_path (_tmp26_);
#line 125 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_free0 (_tmp23_);
#line 125 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp23_ = _tmp27_;
#line 1257 "FSpotImporter.c"
	} else {
		DataImportsFSpotDbFSpotPhotoRow* _tmp28_ = NULL;
		GFile* _tmp29_ = NULL;
		gchar* _tmp30_ = NULL;
#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp28_ = photo_row;
#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp29_ = _tmp28_->base_path;
#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp30_ = g_file_get_path (_tmp29_);
#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_free0 (_tmp23_);
#line 126 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp23_ = _tmp30_;
#line 1272 "FSpotImporter.c"
	}
#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp31_ = g_strdup (_tmp23_);
#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 (self->priv->folder_path);
#line 124 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->folder_path = _tmp31_;
#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp33_ = photo_version_row;
#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp33_ != NULL) {
#line 1284 "FSpotImporter.c"
		DataImportsFSpotDbFSpotPhotoVersionRow* _tmp34_ = NULL;
		const gchar* _tmp35_ = NULL;
#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp34_ = photo_version_row;
#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp35_ = _tmp34_->filename;
#line 128 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp32_ = _tmp35_;
#line 1293 "FSpotImporter.c"
	} else {
		DataImportsFSpotDbFSpotPhotoRow* _tmp36_ = NULL;
		const gchar* _tmp37_ = NULL;
#line 129 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp36_ = photo_row;
#line 129 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp37_ = _tmp36_->filename;
#line 129 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp32_ = _tmp37_;
#line 1303 "FSpotImporter.c"
	}
#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp38_ = g_strdup (_tmp32_);
#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 (self->priv->filename);
#line 127 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->filename = _tmp38_;
#line 133 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp40_ = self->priv->folder_path;
#line 133 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp40_ != NULL) {
#line 1315 "FSpotImporter.c"
		const gchar* _tmp41_ = NULL;
#line 133 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp41_ = self->priv->filename;
#line 133 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp39_ = _tmp41_ != NULL;
#line 1321 "FSpotImporter.c"
	} else {
#line 133 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp39_ = FALSE;
#line 1325 "FSpotImporter.c"
	}
#line 133 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp39_) {
#line 1329 "FSpotImporter.c"
		GFile* photo = NULL;
		const gchar* _tmp42_ = NULL;
		GFile* _tmp43_ = NULL;
		GFile* _tmp44_ = NULL;
		const gchar* _tmp45_ = NULL;
		GFile* _tmp46_ = NULL;
		GFile* _tmp47_ = NULL;
		GFile* _tmp48_ = NULL;
		gboolean _tmp49_ = FALSE;
#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp42_ = self->priv->folder_path;
#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp43_ = g_file_new_for_path (_tmp42_);
#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp44_ = _tmp43_;
#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp45_ = self->priv->filename;
#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp46_ = g_file_get_child (_tmp44_, _tmp45_);
#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp47_ = _tmp46_;
#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (_tmp44_);
#line 135 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		photo = _tmp47_;
#line 138 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp48_ = photo;
#line 138 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp49_ = g_file_query_exists (_tmp48_, NULL);
#line 138 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		if (!_tmp49_) {
#line 1361 "FSpotImporter.c"
			const gchar* _tmp50_ = NULL;
			gchar* _tmp51_ = NULL;
			const gchar* _tmp52_ = NULL;
			gchar* _tmp53_ = NULL;
#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp50_ = self->priv->folder_path;
#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp51_ = data_imports_fspot_fspot_importable_item_decode_url (self, _tmp50_);
#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_free0 (self->priv->folder_path);
#line 139 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			self->priv->folder_path = _tmp51_;
#line 140 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp52_ = self->priv->filename;
#line 140 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp53_ = data_imports_fspot_fspot_importable_item_decode_url (self, _tmp52_);
#line 140 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_free0 (self->priv->filename);
#line 140 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			self->priv->filename = _tmp53_;
#line 1382 "FSpotImporter.c"
		}
#line 133 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (photo);
#line 1386 "FSpotImporter.c"
	}
#line 99 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 (_tmp23_);
#line 99 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return self;
#line 1392 "FSpotImporter.c"
}


DataImportsFSpotFSpotImportableItem* data_imports_fspot_fspot_importable_item_new (DataImportsFSpotDbFSpotPhotoRow* photo_row, DataImportsFSpotDbFSpotPhotoVersionRow* photo_version_row, DataImportsFSpotDbFSpotRollRow* roll_row, DataImportsFSpotFSpotImportableTag** tags, int tags_length1, DataImportsFSpotFSpotImportableEvent* event, gboolean is_hidden, gboolean is_favorite) {
#line 99 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return data_imports_fspot_fspot_importable_item_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, photo_row, photo_version_row, roll_row, tags, tags_length1, event, is_hidden, is_favorite);
#line 1399 "FSpotImporter.c"
}


static void _vala_array_add1 (SpitDataImportsImportableTag*** array, int* length, int* size, SpitDataImportsImportableTag* value) {
#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if ((*length) == (*size)) {
#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*array = g_renew (SpitDataImportsImportableTag*, *array, (*size) + 1);
#line 1410 "FSpotImporter.c"
	}
#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*array)[(*length)++] = value;
#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*array)[*length] = NULL;
#line 1416 "FSpotImporter.c"
}


static SpitDataImportsImportableTag** data_imports_fspot_fspot_importable_item_real_get_tags (SpitDataImportsImportableMediaItem* base, int* result_length1) {
	DataImportsFSpotFSpotImportableItem * self;
	SpitDataImportsImportableTag** result = NULL;
	SpitDataImportsImportableTag** importable_tags = NULL;
	SpitDataImportsImportableTag** _tmp0_ = NULL;
	gint importable_tags_length1 = 0;
	gint _importable_tags_size_ = 0;
	DataImportsFSpotFSpotImportableTag** _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
	SpitDataImportsImportableTag** _tmp6_ = NULL;
	gint _tmp6__length1 = 0;
#line 145 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
#line 146 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = g_new0 (SpitDataImportsImportableTag*, 0 + 1);
#line 146 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	importable_tags = _tmp0_;
#line 146 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	importable_tags_length1 = 0;
#line 146 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_importable_tags_size_ = importable_tags_length1;
#line 147 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = self->priv->tags;
#line 147 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1__length1 = self->priv->tags_length1;
#line 1445 "FSpotImporter.c"
	{
		DataImportsFSpotFSpotImportableTag** tag_collection = NULL;
		gint tag_collection_length1 = 0;
		gint _tag_collection_size_ = 0;
		gint tag_it = 0;
#line 147 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		tag_collection = _tmp1_;
#line 147 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		tag_collection_length1 = _tmp1__length1;
#line 147 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		for (tag_it = 0; tag_it < _tmp1__length1; tag_it = tag_it + 1) {
#line 1457 "FSpotImporter.c"
			DataImportsFSpotFSpotImportableTag* _tmp2_ = NULL;
			DataImportsFSpotFSpotImportableTag* tag = NULL;
#line 147 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp2_ = _g_object_ref0 (tag_collection[tag_it]);
#line 147 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			tag = _tmp2_;
#line 1464 "FSpotImporter.c"
			{
				SpitDataImportsImportableTag** _tmp3_ = NULL;
				gint _tmp3__length1 = 0;
				DataImportsFSpotFSpotImportableTag* _tmp4_ = NULL;
				SpitDataImportsImportableTag* _tmp5_ = NULL;
#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp3_ = importable_tags;
#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp3__length1 = importable_tags_length1;
#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp4_ = tag;
#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTag));
#line 148 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_vala_array_add1 (&importable_tags, &importable_tags_length1, &_importable_tags_size_, _tmp5_);
#line 147 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (tag);
#line 1482 "FSpotImporter.c"
			}
		}
	}
#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp6_ = importable_tags;
#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp6__length1 = importable_tags_length1;
#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (result_length1) {
#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*result_length1 = _tmp6__length1;
#line 1494 "FSpotImporter.c"
	}
#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp6_;
#line 149 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 1500 "FSpotImporter.c"
}


static SpitDataImportsImportableEvent* data_imports_fspot_fspot_importable_item_real_get_event (SpitDataImportsImportableMediaItem* base) {
	DataImportsFSpotFSpotImportableItem * self;
	SpitDataImportsImportableEvent* result = NULL;
	DataImportsFSpotFSpotImportableEvent* _tmp0_ = NULL;
	SpitDataImportsImportableEvent* _tmp1_ = NULL;
#line 152 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
#line 153 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->event;
#line 153 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEvent));
#line 153 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp1_;
#line 153 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 1519 "FSpotImporter.c"
}


static gchar* data_imports_fspot_fspot_importable_item_real_get_folder_path (SpitDataImportsImportableMediaItem* base) {
	DataImportsFSpotFSpotImportableItem * self;
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 156 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
#line 157 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->folder_path;
#line 157 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 157 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp1_;
#line 157 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 1538 "FSpotImporter.c"
}


static gchar* data_imports_fspot_fspot_importable_item_real_get_filename (SpitDataImportsImportableMediaItem* base) {
	DataImportsFSpotFSpotImportableItem * self;
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 160 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->filename;
#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp1_;
#line 161 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 1557 "FSpotImporter.c"
}


static gchar* data_imports_fspot_fspot_importable_item_real_get_title (SpitDataImportsImportableMediaItem* base) {
	DataImportsFSpotFSpotImportableItem * self;
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	DataImportsFSpotDbFSpotPhotoRow* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp8_ = NULL;
#line 164 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = self->priv->photo_row;
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp3_ = _tmp2_->description;
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp3_ == NULL) {
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp1_ = TRUE;
#line 1579 "FSpotImporter.c"
	} else {
		DataImportsFSpotDbFSpotPhotoRow* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp4_ = self->priv->photo_row;
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp5_ = _tmp4_->description;
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp1_ = g_strcmp0 (_tmp5_, "") == 0;
#line 1589 "FSpotImporter.c"
	}
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp1_) {
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp0_ = NULL;
#line 1595 "FSpotImporter.c"
	} else {
		DataImportsFSpotDbFSpotPhotoRow* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp6_ = self->priv->photo_row;
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp7_ = _tmp6_->description;
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp0_ = _tmp7_;
#line 1605 "FSpotImporter.c"
	}
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp8_ = g_strdup (_tmp0_);
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp8_;
#line 165 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 1613 "FSpotImporter.c"
}


static SpitDataImportsImportableRating* data_imports_fspot_fspot_importable_item_real_get_rating (SpitDataImportsImportableMediaItem* base) {
	DataImportsFSpotFSpotImportableItem * self;
	SpitDataImportsImportableRating* result = NULL;
	DataImportsFSpotFSpotImportableRating* _tmp0_ = NULL;
	SpitDataImportsImportableRating* _tmp1_ = NULL;
#line 168 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->rating;
#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRating));
#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp1_;
#line 169 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 1632 "FSpotImporter.c"
}


static time_t* data_imports_fspot_fspot_importable_item_real_get_exposure_time (SpitDataImportsImportableMediaItem* base) {
	DataImportsFSpotFSpotImportableItem * self;
	time_t* result = NULL;
	time_t* _tmp0_ = NULL;
	time_t* _tmp1_ = NULL;
#line 172 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->date_time;
#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = __time_t_dup0 (_tmp0_);
#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp1_;
#line 173 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 1651 "FSpotImporter.c"
}


static gint string_index_of_char (const gchar* self, gunichar c, gint start_index) {
	gint result = 0;
	gchar* _result_ = NULL;
	gint _tmp0_ = 0;
	gunichar _tmp1_ = 0U;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 1007 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 1008 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = start_index;
#line 1008 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = c;
#line 1008 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp2_ = g_utf8_strchr (((gchar*) self) + _tmp0_, (gssize) -1, _tmp1_);
#line 1008 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_result_ = _tmp2_;
#line 1010 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp3_ = _result_;
#line 1010 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 1676 "FSpotImporter.c"
		gchar* _tmp4_ = NULL;
#line 1011 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = _result_;
#line 1011 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		result = (gint) (_tmp4_ - ((gchar*) self));
#line 1011 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 1684 "FSpotImporter.c"
	} else {
#line 1013 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		result = -1;
#line 1013 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 1690 "FSpotImporter.c"
	}
}


static gchar* string_slice (const gchar* self, glong start, glong end) {
	gchar* result = NULL;
	glong string_length = 0L;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	glong _tmp2_ = 0L;
	glong _tmp5_ = 0L;
	gboolean _tmp8_ = FALSE;
	glong _tmp9_ = 0L;
	gboolean _tmp12_ = FALSE;
	glong _tmp13_ = 0L;
	glong _tmp16_ = 0L;
	glong _tmp17_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	gchar* _tmp21_ = NULL;
#line 1328 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1329 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1329 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1329 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	string_length = (glong) _tmp1_;
#line 1330 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp2_ = start;
#line 1330 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp2_ < ((glong) 0)) {
#line 1724 "FSpotImporter.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
#line 1331 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp3_ = string_length;
#line 1331 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = start;
#line 1331 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		start = _tmp3_ + _tmp4_;
#line 1733 "FSpotImporter.c"
	}
#line 1333 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp5_ = end;
#line 1333 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp5_ < ((glong) 0)) {
#line 1739 "FSpotImporter.c"
		glong _tmp6_ = 0L;
		glong _tmp7_ = 0L;
#line 1334 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp6_ = string_length;
#line 1334 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp7_ = end;
#line 1334 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		end = _tmp6_ + _tmp7_;
#line 1748 "FSpotImporter.c"
	}
#line 1336 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp9_ = start;
#line 1336 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp9_ >= ((glong) 0)) {
#line 1754 "FSpotImporter.c"
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1336 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp10_ = start;
#line 1336 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp11_ = string_length;
#line 1336 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp10_ <= _tmp11_;
#line 1763 "FSpotImporter.c"
	} else {
#line 1336 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp8_ = FALSE;
#line 1767 "FSpotImporter.c"
	}
#line 1336 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp8_, NULL);
#line 1337 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp13_ = end;
#line 1337 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp13_ >= ((glong) 0)) {
#line 1775 "FSpotImporter.c"
		glong _tmp14_ = 0L;
		glong _tmp15_ = 0L;
#line 1337 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp14_ = end;
#line 1337 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1337 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp12_ = _tmp14_ <= _tmp15_;
#line 1784 "FSpotImporter.c"
	} else {
#line 1337 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp12_ = FALSE;
#line 1788 "FSpotImporter.c"
	}
#line 1337 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp12_, NULL);
#line 1338 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp16_ = start;
#line 1338 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp17_ = end;
#line 1338 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
#line 1339 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp18_ = start;
#line 1339 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp19_ = end;
#line 1339 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp20_ = start;
#line 1339 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
#line 1339 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	result = _tmp21_;
#line 1339 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 1810 "FSpotImporter.c"
}


static gchar string_get (const gchar* self, glong index) {
	gchar result = '\0';
	glong _tmp0_ = 0L;
	gchar _tmp1_ = '\0';
#line 1086 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, '\0');
#line 1087 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = index;
#line 1087 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = ((gchar*) self)[_tmp0_];
#line 1087 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	result = _tmp1_;
#line 1087 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 1828 "FSpotImporter.c"
}


static glong string_strnlen (gchar* str, glong maxlen) {
	glong result = 0L;
	gchar* end = NULL;
	gchar* _tmp0_ = NULL;
	glong _tmp1_ = 0L;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 1295 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = str;
#line 1295 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = maxlen;
#line 1295 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
#line 1295 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	end = _tmp2_;
#line 1296 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp3_ = end;
#line 1296 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp3_ == NULL) {
#line 1851 "FSpotImporter.c"
		glong _tmp4_ = 0L;
#line 1297 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = maxlen;
#line 1297 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		result = _tmp4_;
#line 1297 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 1859 "FSpotImporter.c"
	} else {
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 1299 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp5_ = end;
#line 1299 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp6_ = str;
#line 1299 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		result = (glong) (_tmp5_ - _tmp6_);
#line 1299 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 1871 "FSpotImporter.c"
	}
}


static gchar* string_substring (const gchar* self, glong offset, glong len) {
	gchar* result = NULL;
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	glong _tmp1_ = 0L;
	glong _tmp8_ = 0L;
	glong _tmp14_ = 0L;
	glong _tmp17_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	glong _tmp21_ = 0L;
	gchar* _tmp22_ = NULL;
#line 1306 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1308 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = offset;
#line 1308 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp1_ >= ((glong) 0)) {
#line 1895 "FSpotImporter.c"
		glong _tmp2_ = 0L;
#line 1308 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp2_ = len;
#line 1308 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp0_ = _tmp2_ >= ((glong) 0);
#line 1901 "FSpotImporter.c"
	} else {
#line 1308 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp0_ = FALSE;
#line 1905 "FSpotImporter.c"
	}
#line 1308 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp0_) {
#line 1909 "FSpotImporter.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
		glong _tmp5_ = 0L;
#line 1310 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp3_ = offset;
#line 1310 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = len;
#line 1310 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
#line 1310 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		string_length = _tmp5_;
#line 1921 "FSpotImporter.c"
	} else {
		gint _tmp6_ = 0;
		gint _tmp7_ = 0;
#line 1312 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp6_ = strlen (self);
#line 1312 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp7_ = _tmp6_;
#line 1312 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		string_length = (glong) _tmp7_;
#line 1931 "FSpotImporter.c"
	}
#line 1315 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp8_ = offset;
#line 1315 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp8_ < ((glong) 0)) {
#line 1937 "FSpotImporter.c"
		glong _tmp9_ = 0L;
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1316 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp9_ = string_length;
#line 1316 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp10_ = offset;
#line 1316 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		offset = _tmp9_ + _tmp10_;
#line 1317 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp11_ = offset;
#line 1317 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
#line 1951 "FSpotImporter.c"
	} else {
		glong _tmp12_ = 0L;
		glong _tmp13_ = 0L;
#line 1319 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp12_ = offset;
#line 1319 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp13_ = string_length;
#line 1319 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
#line 1961 "FSpotImporter.c"
	}
#line 1321 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp14_ = len;
#line 1321 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp14_ < ((glong) 0)) {
#line 1967 "FSpotImporter.c"
		glong _tmp15_ = 0L;
		glong _tmp16_ = 0L;
#line 1322 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1322 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp16_ = offset;
#line 1322 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
		len = _tmp15_ - _tmp16_;
#line 1976 "FSpotImporter.c"
	}
#line 1324 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp17_ = offset;
#line 1324 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp18_ = len;
#line 1324 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp19_ = string_length;
#line 1324 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
#line 1325 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp20_ = offset;
#line 1325 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp21_ = len;
#line 1325 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
#line 1325 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	result = _tmp22_;
#line 1325 "/home/jens/jhbuild/install/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 1996 "FSpotImporter.c"
}


static gchar* data_imports_fspot_fspot_importable_item_decode_url (DataImportsFSpotFSpotImportableItem* self, const gchar* url) {
	gchar* result = NULL;
	GString* builder = NULL;
	GString* _tmp0_ = NULL;
	GString* _tmp49_ = NULL;
	const gchar* _tmp50_ = NULL;
	gchar* _tmp51_ = NULL;
#line 176 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_ITEM (self), NULL);
#line 176 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (url != NULL, NULL);
#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = g_string_new ("");
#line 177 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	builder = _tmp0_;
#line 2015 "FSpotImporter.c"
	{
		gint idx = 0;
#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		idx = 0;
#line 2020 "FSpotImporter.c"
		{
			gboolean _tmp1_ = FALSE;
#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp1_ = TRUE;
#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			while (TRUE) {
#line 2027 "FSpotImporter.c"
				gint _tmp2_ = 0;
				const gchar* _tmp3_ = NULL;
				gint _tmp4_ = 0;
				gint _tmp5_ = 0;
				gint cidx = 0;
				const gchar* _tmp6_ = NULL;
				gint _tmp7_ = 0;
				gint _tmp8_ = 0;
				gint _tmp9_ = 0;
				gint _tmp10_ = 0;
				gint _tmp17_ = 0;
#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				if (!_tmp1_) {
#line 2041 "FSpotImporter.c"
				}
#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp1_ = FALSE;
#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp2_ = idx;
#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp3_ = url;
#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp4_ = strlen (_tmp3_);
#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp5_ = _tmp4_;
#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				if (!(_tmp2_ < _tmp5_)) {
#line 178 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					break;
#line 2057 "FSpotImporter.c"
				}
#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp6_ = url;
#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp7_ = idx;
#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp8_ = string_index_of_char (_tmp6_, (gunichar) '%', _tmp7_);
#line 179 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				cidx = _tmp8_;
#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp9_ = cidx;
#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp10_ = idx;
#line 180 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				if (_tmp9_ > _tmp10_) {
#line 2073 "FSpotImporter.c"
					GString* _tmp11_ = NULL;
					const gchar* _tmp12_ = NULL;
					gint _tmp13_ = 0;
					gint _tmp14_ = 0;
					gchar* _tmp15_ = NULL;
					gchar* _tmp16_ = NULL;
#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp11_ = builder;
#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp12_ = url;
#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp13_ = idx;
#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp14_ = cidx;
#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp15_ = string_slice (_tmp12_, (glong) _tmp13_, (glong) _tmp14_);
#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp16_ = _tmp15_;
#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					g_string_append (_tmp11_, _tmp16_);
#line 181 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_free0 (_tmp16_);
#line 2096 "FSpotImporter.c"
				}
#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp17_ = cidx;
#line 183 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				if (_tmp17_ >= 0) {
#line 2102 "FSpotImporter.c"
					gint _tmp18_ = 0;
					const gchar* _tmp19_ = NULL;
					gint _tmp20_ = 0;
					gint _tmp21_ = 0;
#line 184 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp18_ = cidx;
#line 184 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp19_ = url;
#line 184 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp20_ = strlen (_tmp19_);
#line 184 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp21_ = _tmp20_;
#line 184 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					if (_tmp18_ < (_tmp21_ - 2)) {
#line 2117 "FSpotImporter.c"
						gchar c1 = '\0';
						const gchar* _tmp22_ = NULL;
						gint _tmp23_ = 0;
						gchar _tmp24_ = '\0';
						gchar c2 = '\0';
						const gchar* _tmp25_ = NULL;
						gint _tmp26_ = 0;
						gchar _tmp27_ = '\0';
						gboolean _tmp28_ = FALSE;
						gchar _tmp29_ = '\0';
						gboolean _tmp30_ = FALSE;
						gint _tmp39_ = 0;
#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp22_ = url;
#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp23_ = cidx;
#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp24_ = string_get (_tmp22_, (glong) (_tmp23_ + 1));
#line 185 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						c1 = _tmp24_;
#line 186 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp25_ = url;
#line 186 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp26_ = cidx;
#line 186 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp27_ = string_get (_tmp25_, (glong) (_tmp26_ + 2));
#line 186 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						c2 = _tmp27_;
#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp29_ = c1;
#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp30_ = g_ascii_isxdigit (_tmp29_);
#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						if (_tmp30_) {
#line 2152 "FSpotImporter.c"
							gchar _tmp31_ = '\0';
							gboolean _tmp32_ = FALSE;
#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp31_ = c1;
#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp32_ = g_ascii_isxdigit (_tmp31_);
#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp28_ = _tmp32_;
#line 2161 "FSpotImporter.c"
						} else {
#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp28_ = FALSE;
#line 2165 "FSpotImporter.c"
						}
#line 187 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						if (_tmp28_) {
#line 2169 "FSpotImporter.c"
							gint ccode = 0;
							gchar _tmp33_ = '\0';
							gint _tmp34_ = 0;
							gchar _tmp35_ = '\0';
							gint _tmp36_ = 0;
							GString* _tmp37_ = NULL;
							gint _tmp38_ = 0;
#line 188 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp33_ = c1;
#line 188 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp34_ = g_ascii_xdigit_value (_tmp33_);
#line 188 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp35_ = c2;
#line 188 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp36_ = g_ascii_xdigit_value (_tmp35_);
#line 188 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							ccode = (0x10 * _tmp34_) + _tmp36_;
#line 189 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp37_ = builder;
#line 189 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp38_ = ccode;
#line 189 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							g_string_append_c (_tmp37_, (gchar) _tmp38_);
#line 2193 "FSpotImporter.c"
						}
#line 191 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp39_ = cidx;
#line 191 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						idx = _tmp39_ + 3;
#line 2199 "FSpotImporter.c"
					} else {
						gint _tmp40_ = 0;
#line 193 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp40_ = cidx;
#line 193 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						idx = _tmp40_ + 1;
#line 2206 "FSpotImporter.c"
					}
				} else {
					GString* _tmp41_ = NULL;
					const gchar* _tmp42_ = NULL;
					gint _tmp43_ = 0;
					gchar* _tmp44_ = NULL;
					gchar* _tmp45_ = NULL;
					const gchar* _tmp46_ = NULL;
					gint _tmp47_ = 0;
					gint _tmp48_ = 0;
#line 196 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp41_ = builder;
#line 196 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp42_ = url;
#line 196 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp43_ = idx;
#line 196 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp44_ = string_substring (_tmp42_, (glong) _tmp43_, (glong) -1);
#line 196 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp45_ = _tmp44_;
#line 196 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					g_string_append (_tmp41_, _tmp45_);
#line 196 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_free0 (_tmp45_);
#line 197 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp46_ = url;
#line 197 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp47_ = strlen (_tmp46_);
#line 197 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp48_ = _tmp47_;
#line 197 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					idx = _tmp48_;
#line 2239 "FSpotImporter.c"
				}
			}
		}
	}
#line 200 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp49_ = builder;
#line 200 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp50_ = _tmp49_->str;
#line 200 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp51_ = g_strdup (_tmp50_);
#line 200 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp51_;
#line 200 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_string_free0 (builder);
#line 200 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 2256 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_item_class_init (DataImportsFSpotFSpotImportableItemClass * klass) {
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_importable_item_parent_class = g_type_class_peek_parent (klass);
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotImportableItemPrivate));
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_importable_item_finalize;
#line 2267 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_item_spit_data_imports_importable_media_item_interface_init (SpitDataImportsImportableMediaItemIface * iface) {
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_importable_item_spit_data_imports_importable_media_item_parent_iface = g_type_interface_peek_parent (iface);
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_tags = (SpitDataImportsImportableTag** (*)(SpitDataImportsImportableMediaItem*, int*)) data_imports_fspot_fspot_importable_item_real_get_tags;
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_event = (SpitDataImportsImportableEvent* (*)(SpitDataImportsImportableMediaItem*)) data_imports_fspot_fspot_importable_item_real_get_event;
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_folder_path = (gchar* (*)(SpitDataImportsImportableMediaItem*)) data_imports_fspot_fspot_importable_item_real_get_folder_path;
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_filename = (gchar* (*)(SpitDataImportsImportableMediaItem*)) data_imports_fspot_fspot_importable_item_real_get_filename;
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_title = (gchar* (*)(SpitDataImportsImportableMediaItem*)) data_imports_fspot_fspot_importable_item_real_get_title;
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_rating = (SpitDataImportsImportableRating* (*)(SpitDataImportsImportableMediaItem*)) data_imports_fspot_fspot_importable_item_real_get_rating;
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_exposure_time = (time_t* (*)(SpitDataImportsImportableMediaItem*)) data_imports_fspot_fspot_importable_item_real_get_exposure_time;
#line 2288 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_item_instance_init (DataImportsFSpotFSpotImportableItem * self) {
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv = DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_ITEM_GET_PRIVATE (self);
#line 2295 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_item_finalize (GObject* obj) {
	DataImportsFSpotFSpotImportableItem * self;
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_ITEM, DataImportsFSpotFSpotImportableItem);
#line 89 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->photo_row);
#line 90 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->photo_version_row);
#line 91 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->roll_row);
#line 92 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->tags = (_vala_array_free (self->priv->tags, self->priv->tags_length1, (GDestroyNotify) g_object_unref), NULL);
#line 93 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->event);
#line 94 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->rating);
#line 95 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 (self->priv->folder_path);
#line 96 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 (self->priv->filename);
#line 97 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 (self->priv->date_time);
#line 88 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (data_imports_fspot_fspot_importable_item_parent_class)->finalize (obj);
#line 2323 "FSpotImporter.c"
}


GType data_imports_fspot_fspot_importable_item_get_type (void) {
	static volatile gsize data_imports_fspot_fspot_importable_item_type_id__volatile = 0;
	if (g_once_init_enter (&data_imports_fspot_fspot_importable_item_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotImportableItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_importable_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotImportableItem), 0, (GInstanceInitFunc) data_imports_fspot_fspot_importable_item_instance_init, NULL };
		static const GInterfaceInfo spit_data_imports_importable_media_item_info = { (GInterfaceInitFunc) data_imports_fspot_fspot_importable_item_spit_data_imports_importable_media_item_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType data_imports_fspot_fspot_importable_item_type_id;
		data_imports_fspot_fspot_importable_item_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotImportableItem", &g_define_type_info, 0);
		g_type_add_interface_static (data_imports_fspot_fspot_importable_item_type_id, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, &spit_data_imports_importable_media_item_info);
		g_once_init_leave (&data_imports_fspot_fspot_importable_item_type_id__volatile, data_imports_fspot_fspot_importable_item_type_id);
	}
	return data_imports_fspot_fspot_importable_item_type_id__volatile;
}


DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_importable_tag_construct (GType object_type, DataImportsFSpotDbFSpotTagRow* row, DataImportsFSpotFSpotImportableTag* parent) {
	DataImportsFSpotFSpotImportableTag * self = NULL;
	DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
	DataImportsFSpotDbFSpotTagRow* _tmp1_ = NULL;
	DataImportsFSpotFSpotImportableTag* _tmp2_ = NULL;
	DataImportsFSpotFSpotImportableTag* _tmp3_ = NULL;
#line 208 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW (row), NULL);
#line 208 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail ((parent == NULL) || DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (parent), NULL);
#line 208 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = (DataImportsFSpotFSpotImportableTag*) g_object_new (object_type, NULL);
#line 209 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = row;
#line 209 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 209 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->row);
#line 209 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->row = _tmp1_;
#line 210 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = parent;
#line 210 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 210 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->parent);
#line 210 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->parent = _tmp3_;
#line 208 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return self;
#line 2371 "FSpotImporter.c"
}


DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_importable_tag_new (DataImportsFSpotDbFSpotTagRow* row, DataImportsFSpotFSpotImportableTag* parent) {
#line 208 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return data_imports_fspot_fspot_importable_tag_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, row, parent);
#line 2378 "FSpotImporter.c"
}


gint64 data_imports_fspot_fspot_importable_tag_get_id (DataImportsFSpotFSpotImportableTag* self) {
	gint64 result = 0LL;
	DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
	gint64 _tmp1_ = 0LL;
#line 213 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (self), 0LL);
#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->row;
#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _tmp0_->tag_id;
#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp1_;
#line 214 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 2396 "FSpotImporter.c"
}


static gchar* data_imports_fspot_fspot_importable_tag_real_get_name (SpitDataImportsImportableTag* base) {
	DataImportsFSpotFSpotImportableTag * self;
	gchar* result = NULL;
	DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
#line 217 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTag);
#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->row;
#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _tmp0_->name;
#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp2_;
#line 218 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 2418 "FSpotImporter.c"
}


static SpitDataImportsImportableTag* data_imports_fspot_fspot_importable_tag_real_get_parent (SpitDataImportsImportableTag* base) {
	DataImportsFSpotFSpotImportableTag * self;
	SpitDataImportsImportableTag* result = NULL;
	DataImportsFSpotFSpotImportableTag* _tmp0_ = NULL;
	SpitDataImportsImportableTag* _tmp1_ = NULL;
#line 221 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTag);
#line 222 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->parent;
#line 222 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTag));
#line 222 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp1_;
#line 222 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 2437 "FSpotImporter.c"
}


DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_importable_tag_get_fspot_parent (DataImportsFSpotFSpotImportableTag* self) {
	DataImportsFSpotFSpotImportableTag* result = NULL;
	DataImportsFSpotFSpotImportableTag* _tmp0_ = NULL;
	DataImportsFSpotFSpotImportableTag* _tmp1_ = NULL;
#line 225 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (self), NULL);
#line 226 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->parent;
#line 226 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 226 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp1_;
#line 226 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 2455 "FSpotImporter.c"
}


gchar* data_imports_fspot_fspot_importable_tag_get_stock_icon (DataImportsFSpotFSpotImportableTag* self) {
	gchar* result = NULL;
	DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
#line 229 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (self), NULL);
#line 230 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->row;
#line 230 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _tmp0_->stock_icon;
#line 230 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 230 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp2_;
#line 230 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 2476 "FSpotImporter.c"
}


gboolean data_imports_fspot_fspot_importable_tag_is_stock (DataImportsFSpotFSpotImportableTag* self) {
	gboolean result = FALSE;
	DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
#line 233 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (self), FALSE);
#line 234 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->row;
#line 234 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _tmp0_->stock_icon;
#line 234 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = g_str_has_prefix (_tmp1_, DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_PREFIX_STOCK_ICON);
#line 234 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp2_;
#line 234 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 2497 "FSpotImporter.c"
}


DataImportsFSpotFSpotImportableEvent* data_imports_fspot_fspot_importable_tag_to_event (DataImportsFSpotFSpotImportableTag* self) {
	DataImportsFSpotFSpotImportableEvent* result = NULL;
	DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
	DataImportsFSpotFSpotImportableEvent* _tmp1_ = NULL;
#line 237 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (self), NULL);
#line 238 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->row;
#line 238 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = data_imports_fspot_fspot_importable_event_new (_tmp0_);
#line 238 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp1_;
#line 238 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 2515 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_tag_class_init (DataImportsFSpotFSpotImportableTagClass * klass) {
#line 204 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_importable_tag_parent_class = g_type_class_peek_parent (klass);
#line 204 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotImportableTagPrivate));
#line 204 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_importable_tag_finalize;
#line 2526 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_tag_spit_data_imports_importable_tag_interface_init (SpitDataImportsImportableTagIface * iface) {
#line 204 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_importable_tag_spit_data_imports_importable_tag_parent_iface = g_type_interface_peek_parent (iface);
#line 204 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_name = (gchar* (*)(SpitDataImportsImportableTag*)) data_imports_fspot_fspot_importable_tag_real_get_name;
#line 204 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_parent = (SpitDataImportsImportableTag* (*)(SpitDataImportsImportableTag*)) data_imports_fspot_fspot_importable_tag_real_get_parent;
#line 2537 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_tag_instance_init (DataImportsFSpotFSpotImportableTag * self) {
#line 204 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv = DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_TAG_GET_PRIVATE (self);
#line 2544 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_tag_finalize (GObject* obj) {
	DataImportsFSpotFSpotImportableTag * self;
#line 204 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, DataImportsFSpotFSpotImportableTag);
#line 205 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->row);
#line 206 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->parent);
#line 204 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (data_imports_fspot_fspot_importable_tag_parent_class)->finalize (obj);
#line 2558 "FSpotImporter.c"
}


GType data_imports_fspot_fspot_importable_tag_get_type (void) {
	static volatile gsize data_imports_fspot_fspot_importable_tag_type_id__volatile = 0;
	if (g_once_init_enter (&data_imports_fspot_fspot_importable_tag_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotImportableTagClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_importable_tag_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotImportableTag), 0, (GInstanceInitFunc) data_imports_fspot_fspot_importable_tag_instance_init, NULL };
		static const GInterfaceInfo spit_data_imports_importable_tag_info = { (GInterfaceInitFunc) data_imports_fspot_fspot_importable_tag_spit_data_imports_importable_tag_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType data_imports_fspot_fspot_importable_tag_type_id;
		data_imports_fspot_fspot_importable_tag_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotImportableTag", &g_define_type_info, 0);
		g_type_add_interface_static (data_imports_fspot_fspot_importable_tag_type_id, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, &spit_data_imports_importable_tag_info);
		g_once_init_leave (&data_imports_fspot_fspot_importable_tag_type_id__volatile, data_imports_fspot_fspot_importable_tag_type_id);
	}
	return data_imports_fspot_fspot_importable_tag_type_id__volatile;
}


DataImportsFSpotFSpotImportableEvent* data_imports_fspot_fspot_importable_event_construct (GType object_type, DataImportsFSpotDbFSpotTagRow* row) {
	DataImportsFSpotFSpotImportableEvent * self = NULL;
	DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
	DataImportsFSpotDbFSpotTagRow* _tmp1_ = NULL;
#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW (row), NULL);
#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = (DataImportsFSpotFSpotImportableEvent*) g_object_new (object_type, NULL);
#line 246 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = row;
#line 246 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 246 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->row);
#line 246 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->row = _tmp1_;
#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return self;
#line 2594 "FSpotImporter.c"
}


DataImportsFSpotFSpotImportableEvent* data_imports_fspot_fspot_importable_event_new (DataImportsFSpotDbFSpotTagRow* row) {
#line 245 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return data_imports_fspot_fspot_importable_event_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, row);
#line 2601 "FSpotImporter.c"
}


static gchar* data_imports_fspot_fspot_importable_event_real_get_name (SpitDataImportsImportableEvent* base) {
	DataImportsFSpotFSpotImportableEvent * self;
	gchar* result = NULL;
	DataImportsFSpotDbFSpotTagRow* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
#line 249 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, DataImportsFSpotFSpotImportableEvent);
#line 250 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->row;
#line 250 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _tmp0_->name;
#line 250 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 250 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp2_;
#line 250 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 2623 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_event_class_init (DataImportsFSpotFSpotImportableEventClass * klass) {
#line 242 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_importable_event_parent_class = g_type_class_peek_parent (klass);
#line 242 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotImportableEventPrivate));
#line 242 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_importable_event_finalize;
#line 2634 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_event_spit_data_imports_importable_event_interface_init (SpitDataImportsImportableEventIface * iface) {
#line 242 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_importable_event_spit_data_imports_importable_event_parent_iface = g_type_interface_peek_parent (iface);
#line 242 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_name = (gchar* (*)(SpitDataImportsImportableEvent*)) data_imports_fspot_fspot_importable_event_real_get_name;
#line 2643 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_event_instance_init (DataImportsFSpotFSpotImportableEvent * self) {
#line 242 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv = DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_EVENT_GET_PRIVATE (self);
#line 2650 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_event_finalize (GObject* obj) {
	DataImportsFSpotFSpotImportableEvent * self;
#line 242 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_EVENT, DataImportsFSpotFSpotImportableEvent);
#line 243 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->row);
#line 242 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (data_imports_fspot_fspot_importable_event_parent_class)->finalize (obj);
#line 2662 "FSpotImporter.c"
}


GType data_imports_fspot_fspot_importable_event_get_type (void) {
	static volatile gsize data_imports_fspot_fspot_importable_event_type_id__volatile = 0;
	if (g_once_init_enter (&data_imports_fspot_fspot_importable_event_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotImportableEventClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_importable_event_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotImportableEvent), 0, (GInstanceInitFunc) data_imports_fspot_fspot_importable_event_instance_init, NULL };
		static const GInterfaceInfo spit_data_imports_importable_event_info = { (GInterfaceInitFunc) data_imports_fspot_fspot_importable_event_spit_data_imports_importable_event_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType data_imports_fspot_fspot_importable_event_type_id;
		data_imports_fspot_fspot_importable_event_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotImportableEvent", &g_define_type_info, 0);
		g_type_add_interface_static (data_imports_fspot_fspot_importable_event_type_id, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, &spit_data_imports_importable_event_info);
		g_once_init_leave (&data_imports_fspot_fspot_importable_event_type_id__volatile, data_imports_fspot_fspot_importable_event_type_id);
	}
	return data_imports_fspot_fspot_importable_event_type_id__volatile;
}


DataImportsFSpotFSpotImportableRating* data_imports_fspot_fspot_importable_rating_construct (GType object_type, gint rating_value) {
	DataImportsFSpotFSpotImportableRating * self = NULL;
	gint _tmp0_ = 0;
	gint _tmp2_ = 0;
#line 260 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = (DataImportsFSpotFSpotImportableRating*) g_object_new (object_type, NULL);
#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = rating_value;
#line 261 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp0_ < -1) {
#line 262 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		rating_value = -1;
#line 2692 "FSpotImporter.c"
	} else {
		gint _tmp1_ = 0;
#line 263 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp1_ = rating_value;
#line 263 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		if (_tmp1_ > 5) {
#line 264 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			rating_value = 5;
#line 2701 "FSpotImporter.c"
		}
	}
#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = rating_value;
#line 265 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->rating_value = _tmp2_;
#line 260 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return self;
#line 2710 "FSpotImporter.c"
}


DataImportsFSpotFSpotImportableRating* data_imports_fspot_fspot_importable_rating_new (gint rating_value) {
#line 260 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return data_imports_fspot_fspot_importable_rating_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, rating_value);
#line 2717 "FSpotImporter.c"
}


static gboolean data_imports_fspot_fspot_importable_rating_real_is_rejected (SpitDataImportsImportableRating* base) {
	DataImportsFSpotFSpotImportableRating * self;
	gboolean result = FALSE;
	gint _tmp0_ = 0;
#line 268 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRating);
#line 269 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->rating_value;
#line 269 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp0_ == DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_REJECTED;
#line 269 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 2733 "FSpotImporter.c"
}


static gboolean data_imports_fspot_fspot_importable_rating_real_is_unrated (SpitDataImportsImportableRating* base) {
	DataImportsFSpotFSpotImportableRating * self;
	gboolean result = FALSE;
	gint _tmp0_ = 0;
#line 272 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRating);
#line 273 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->rating_value;
#line 273 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp0_ == DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_UNRATED;
#line 273 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 2749 "FSpotImporter.c"
}


static gint data_imports_fspot_fspot_importable_rating_real_get_value (SpitDataImportsImportableRating* base) {
	DataImportsFSpotFSpotImportableRating * self;
	gint result = 0;
	gint _tmp0_ = 0;
#line 276 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRating);
#line 277 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->rating_value;
#line 277 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp0_;
#line 277 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 2765 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_rating_class_init (DataImportsFSpotFSpotImportableRatingClass * klass) {
#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_importable_rating_parent_class = g_type_class_peek_parent (klass);
#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotImportableRatingPrivate));
#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_importable_rating_finalize;
#line 2776 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_rating_spit_data_imports_importable_rating_interface_init (SpitDataImportsImportableRatingIface * iface) {
#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_importable_rating_spit_data_imports_importable_rating_parent_iface = g_type_interface_peek_parent (iface);
#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->is_rejected = (gboolean (*)(SpitDataImportsImportableRating*)) data_imports_fspot_fspot_importable_rating_real_is_rejected;
#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->is_unrated = (gboolean (*)(SpitDataImportsImportableRating*)) data_imports_fspot_fspot_importable_rating_real_is_unrated;
#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_value = (gint (*)(SpitDataImportsImportableRating*)) data_imports_fspot_fspot_importable_rating_real_get_value;
#line 2789 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_rating_instance_init (DataImportsFSpotFSpotImportableRating * self) {
#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv = DATA_IMPORTS_FSPOT_FSPOT_IMPORTABLE_RATING_GET_PRIVATE (self);
#line 2796 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_importable_rating_finalize (GObject* obj) {
	DataImportsFSpotFSpotImportableRating * self;
#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_RATING, DataImportsFSpotFSpotImportableRating);
#line 254 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (data_imports_fspot_fspot_importable_rating_parent_class)->finalize (obj);
#line 2806 "FSpotImporter.c"
}


GType data_imports_fspot_fspot_importable_rating_get_type (void) {
	static volatile gsize data_imports_fspot_fspot_importable_rating_type_id__volatile = 0;
	if (g_once_init_enter (&data_imports_fspot_fspot_importable_rating_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotImportableRatingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_importable_rating_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotImportableRating), 0, (GInstanceInitFunc) data_imports_fspot_fspot_importable_rating_instance_init, NULL };
		static const GInterfaceInfo spit_data_imports_importable_rating_info = { (GInterfaceInitFunc) data_imports_fspot_fspot_importable_rating_spit_data_imports_importable_rating_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType data_imports_fspot_fspot_importable_rating_type_id;
		data_imports_fspot_fspot_importable_rating_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotImportableRating", &g_define_type_info, 0);
		g_type_add_interface_static (data_imports_fspot_fspot_importable_rating_type_id, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, &spit_data_imports_importable_rating_info);
		g_once_init_leave (&data_imports_fspot_fspot_importable_rating_type_id__volatile, data_imports_fspot_fspot_importable_rating_type_id);
	}
	return data_imports_fspot_fspot_importable_rating_type_id__volatile;
}


static gpointer _importable_database_table_ref0 (gpointer self) {
#line 286 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return self ? importable_database_table_ref (self) : NULL;
#line 2827 "FSpotImporter.c"
}


static gint64* _int64_dup (gint64* self) {
	gint64* dup;
#line 287 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	dup = g_new0 (gint64, 1);
#line 287 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	memcpy (dup, self, sizeof (gint64));
#line 287 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return dup;
#line 2839 "FSpotImporter.c"
}


DataImportsFSpotFSpotTagsCache* data_imports_fspot_fspot_tags_cache_construct (GType object_type, DataImportsFSpotDbFSpotTagsTable* tags_table, GError** error) {
	DataImportsFSpotFSpotTagsCache * self = NULL;
	DataImportsFSpotDbFSpotTagsTable* _tmp0_ = NULL;
	DataImportsFSpotDbFSpotTagsTable* _tmp1_ = NULL;
	GeeHashMap* _tmp2_ = NULL;
#line 285 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAGS_TABLE (tags_table), NULL);
#line 285 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = (DataImportsFSpotFSpotTagsCache*) g_object_new (object_type, NULL);
#line 286 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = tags_table;
#line 286 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _importable_database_table_ref0 (_tmp0_);
#line 286 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_importable_database_table_unref0 (self->priv->tags_table);
#line 286 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->tags_table = _tmp1_;
#line 287 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = gee_hash_map_new (G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, g_free, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_TAG, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 287 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->tags_map);
#line 287 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->tags_map = _tmp2_;
#line 285 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return self;
#line 2868 "FSpotImporter.c"
}


DataImportsFSpotFSpotTagsCache* data_imports_fspot_fspot_tags_cache_new (DataImportsFSpotDbFSpotTagsTable* tags_table, GError** error) {
#line 285 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return data_imports_fspot_fspot_tags_cache_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE, tags_table, error);
#line 2875 "FSpotImporter.c"
}


DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_tags_cache_get_tag (DataImportsFSpotFSpotTagsCache* self, DataImportsFSpotDbFSpotTagRow* tag_row, GError** error) {
	DataImportsFSpotFSpotImportableTag* result = NULL;
	DataImportsFSpotFSpotImportableTag* tag = NULL;
	GeeHashMap* _tmp0_ = NULL;
	DataImportsFSpotDbFSpotTagRow* _tmp1_ = NULL;
	gint64 _tmp2_ = 0LL;
	gpointer _tmp3_ = NULL;
	DataImportsFSpotFSpotImportableTag* _tmp4_ = NULL;
	GError * _inner_error_ = NULL;
#line 290 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_TAGS_CACHE (self), NULL);
#line 290 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_DB_IS_FSPOT_TAG_ROW (tag_row), NULL);
#line 291 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->tags_map;
#line 291 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = tag_row;
#line 291 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = _tmp1_->tag_id;
#line 291 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp2_);
#line 291 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	tag = (DataImportsFSpotFSpotImportableTag*) _tmp3_;
#line 292 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp4_ = tag;
#line 292 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp4_ != NULL) {
#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		result = tag;
#line 293 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return result;
#line 2910 "FSpotImporter.c"
	} else {
		DataImportsFSpotFSpotImportableTag* parent_tag = NULL;
		DataImportsFSpotDbFSpotTagRow* _tmp5_ = NULL;
		gint64 _tmp6_ = 0LL;
		DataImportsFSpotFSpotImportableTag* _tmp7_ = NULL;
		DataImportsFSpotFSpotImportableTag* new_tag = NULL;
		DataImportsFSpotDbFSpotTagRow* _tmp8_ = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp9_ = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp10_ = NULL;
		GeeHashMap* _tmp11_ = NULL;
		DataImportsFSpotDbFSpotTagRow* _tmp12_ = NULL;
		gint64 _tmp13_ = 0LL;
		DataImportsFSpotFSpotImportableTag* _tmp14_ = NULL;
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp5_ = tag_row;
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp6_ = _tmp5_->category_id;
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp7_ = data_imports_fspot_fspot_tags_cache_get_tag_from_id (self, _tmp6_, &_inner_error_);
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		parent_tag = _tmp7_;
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			if (_inner_error_->domain == DATABASE_ERROR) {
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_propagate_error (error, _inner_error_);
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (tag);
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				return NULL;
#line 2942 "FSpotImporter.c"
			} else {
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (tag);
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_clear_error (&_inner_error_);
#line 295 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				return NULL;
#line 2952 "FSpotImporter.c"
			}
		}
#line 296 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp8_ = tag_row;
#line 296 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp9_ = parent_tag;
#line 296 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp10_ = data_imports_fspot_fspot_importable_tag_new (_tmp8_, _tmp9_);
#line 296 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		new_tag = _tmp10_;
#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp11_ = self->priv->tags_map;
#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp12_ = tag_row;
#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp13_ = _tmp12_->tag_id;
#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp14_ = new_tag;
#line 297 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp13_, _tmp14_);
#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		result = new_tag;
#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (parent_tag);
#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (tag);
#line 298 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return result;
#line 2981 "FSpotImporter.c"
	}
#line 290 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (tag);
#line 2985 "FSpotImporter.c"
}


static DataImportsFSpotFSpotImportableTag* data_imports_fspot_fspot_tags_cache_get_tag_from_id (DataImportsFSpotFSpotTagsCache* self, gint64 tag_id, GError** error) {
	DataImportsFSpotFSpotImportableTag* result = NULL;
	gint64 _tmp0_ = 0LL;
	DataImportsFSpotFSpotImportableTag* tag = NULL;
	GeeHashMap* _tmp1_ = NULL;
	gint64 _tmp2_ = 0LL;
	gpointer _tmp3_ = NULL;
	DataImportsFSpotFSpotImportableTag* _tmp4_ = NULL;
	DataImportsFSpotDbFSpotTagRow* tag_row = NULL;
	DataImportsFSpotDbFSpotTagsTable* _tmp5_ = NULL;
	gint64 _tmp6_ = 0LL;
	DataImportsFSpotDbFSpotTagRow* _tmp7_ = NULL;
	DataImportsFSpotDbFSpotTagRow* _tmp8_ = NULL;
	GError * _inner_error_ = NULL;
#line 302 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_TAGS_CACHE (self), NULL);
#line 304 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = tag_id;
#line 304 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp0_ < ((gint64) 1)) {
#line 305 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		result = NULL;
#line 305 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return result;
#line 3013 "FSpotImporter.c"
	}
#line 306 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = self->priv->tags_map;
#line 306 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = tag_id;
#line 306 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp2_);
#line 306 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	tag = (DataImportsFSpotFSpotImportableTag*) _tmp3_;
#line 307 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp4_ = tag;
#line 307 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp4_ != NULL) {
#line 308 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		result = tag;
#line 308 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return result;
#line 3031 "FSpotImporter.c"
	}
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp5_ = self->priv->tags_table;
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp6_ = tag_id;
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp7_ = data_imports_fspot_db_fspot_tags_table_get_by_id (_tmp5_, _tmp6_, &_inner_error_);
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	tag_row = _tmp7_;
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		if (_inner_error_->domain == DATABASE_ERROR) {
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			g_propagate_error (error, _inner_error_);
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (tag);
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			return NULL;
#line 3051 "FSpotImporter.c"
		} else {
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (tag);
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			g_clear_error (&_inner_error_);
#line 309 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			return NULL;
#line 3061 "FSpotImporter.c"
		}
	}
#line 310 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp8_ = tag_row;
#line 310 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp8_ != NULL) {
#line 3068 "FSpotImporter.c"
		DataImportsFSpotFSpotImportableTag* parent_tag = NULL;
		DataImportsFSpotDbFSpotTagRow* _tmp9_ = NULL;
		gint64 _tmp10_ = 0LL;
		DataImportsFSpotFSpotImportableTag* _tmp11_ = NULL;
		DataImportsFSpotFSpotImportableTag* new_tag = NULL;
		DataImportsFSpotDbFSpotTagRow* _tmp12_ = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp13_ = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp14_ = NULL;
		GeeHashMap* _tmp15_ = NULL;
		gint64 _tmp16_ = 0LL;
		DataImportsFSpotFSpotImportableTag* _tmp17_ = NULL;
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp9_ = tag_row;
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp10_ = _tmp9_->category_id;
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp11_ = data_imports_fspot_fspot_tags_cache_get_tag_from_id (self, _tmp10_, &_inner_error_);
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		parent_tag = _tmp11_;
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			if (_inner_error_->domain == DATABASE_ERROR) {
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_propagate_error (error, _inner_error_);
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (tag_row);
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (tag);
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				return NULL;
#line 3100 "FSpotImporter.c"
			} else {
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (tag_row);
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (tag);
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_clear_error (&_inner_error_);
#line 311 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				return NULL;
#line 3112 "FSpotImporter.c"
			}
		}
#line 312 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp12_ = tag_row;
#line 312 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp13_ = parent_tag;
#line 312 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp14_ = data_imports_fspot_fspot_importable_tag_new (_tmp12_, _tmp13_);
#line 312 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		new_tag = _tmp14_;
#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp15_ = self->priv->tags_map;
#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp16_ = tag_id;
#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp17_ = new_tag;
#line 313 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp16_, _tmp17_);
#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		result = new_tag;
#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (parent_tag);
#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (tag_row);
#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (tag);
#line 314 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return result;
#line 3141 "FSpotImporter.c"
	}
#line 316 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = NULL;
#line 316 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (tag_row);
#line 316 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (tag);
#line 316 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 3151 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_tags_cache_class_init (DataImportsFSpotFSpotTagsCacheClass * klass) {
#line 281 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_tags_cache_parent_class = g_type_class_peek_parent (klass);
#line 281 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotTagsCachePrivate));
#line 281 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_tags_cache_finalize;
#line 3162 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_tags_cache_instance_init (DataImportsFSpotFSpotTagsCache * self) {
#line 281 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv = DATA_IMPORTS_FSPOT_FSPOT_TAGS_CACHE_GET_PRIVATE (self);
#line 3169 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_tags_cache_finalize (GObject* obj) {
	DataImportsFSpotFSpotTagsCache * self;
#line 281 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_TAGS_CACHE, DataImportsFSpotFSpotTagsCache);
#line 282 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_importable_database_table_unref0 (self->priv->tags_table);
#line 283 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (self->priv->tags_map);
#line 281 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (data_imports_fspot_fspot_tags_cache_parent_class)->finalize (obj);
#line 3183 "FSpotImporter.c"
}


GType data_imports_fspot_fspot_tags_cache_get_type (void) {
	static volatile gsize data_imports_fspot_fspot_tags_cache_type_id__volatile = 0;
	if (g_once_init_enter (&data_imports_fspot_fspot_tags_cache_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotTagsCacheClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_tags_cache_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotTagsCache), 0, (GInstanceInitFunc) data_imports_fspot_fspot_tags_cache_instance_init, NULL };
		GType data_imports_fspot_fspot_tags_cache_type_id;
		data_imports_fspot_fspot_tags_cache_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotTagsCache", &g_define_type_info, 0);
		g_once_init_leave (&data_imports_fspot_fspot_tags_cache_type_id__volatile, data_imports_fspot_fspot_tags_cache_type_id);
	}
	return data_imports_fspot_fspot_tags_cache_type_id__volatile;
}


DataImportsFSpotFSpotDataImporter* data_imports_fspot_fspot_data_importer_construct (GType object_type, SpitDataImportsService* service, SpitDataImportsPluginHost* host) {
	DataImportsFSpotFSpotDataImporter * self = NULL;
	SpitDataImportsService* _tmp0_ = NULL;
	SpitDataImportsPluginHost* _tmp1_ = NULL;
#line 326 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (service), NULL);
#line 326 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL);
#line 326 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = (DataImportsFSpotFSpotDataImporter*) g_object_new (object_type, NULL);
#line 328 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_debug ("FSpotImporter.vala:328: FSpotDataImporter instantiated.");
#line 329 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = service;
#line 329 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->service = _tmp0_;
#line 330 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = host;
#line 330 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->host = _tmp1_;
#line 326 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return self;
#line 3221 "FSpotImporter.c"
}


DataImportsFSpotFSpotDataImporter* data_imports_fspot_fspot_data_importer_new (SpitDataImportsService* service, SpitDataImportsPluginHost* host) {
#line 326 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return data_imports_fspot_fspot_data_importer_construct (DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, service, host);
#line 3228 "FSpotImporter.c"
}


static gboolean data_imports_fspot_fspot_data_importer_real_is_running (SpitDataImportsDataImporter* base) {
	DataImportsFSpotFSpotDataImporter * self;
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
#line 333 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
#line 334 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->running;
#line 334 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp0_;
#line 334 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 3244 "FSpotImporter.c"
}


static SpitDataImportsService* data_imports_fspot_fspot_data_importer_real_get_service (SpitDataImportsDataImporter* base) {
	DataImportsFSpotFSpotDataImporter * self;
	SpitDataImportsService* result = NULL;
	SpitDataImportsService* _tmp0_ = NULL;
	SpitDataImportsService* _tmp1_ = NULL;
#line 337 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
#line 338 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->service;
#line 338 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 338 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _tmp1_;
#line 338 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 3263 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_data_importer_real_start (SpitDataImportsDataImporter* base) {
	DataImportsFSpotFSpotDataImporter * self;
	gboolean _tmp0_ = FALSE;
#line 341 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
#line 342 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = spit_data_imports_data_importer_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporter));
#line 342 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp0_) {
#line 343 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return;
#line 3278 "FSpotImporter.c"
	}
#line 345 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_debug ("FSpotImporter.vala:345: FSpotDataImporter: starting interaction.");
#line 347 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->running = TRUE;
#line 349 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_data_importer_do_discover_importable_libraries (self);
#line 3286 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_data_importer_real_stop (SpitDataImportsDataImporter* base) {
	DataImportsFSpotFSpotDataImporter * self;
#line 352 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
#line 353 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_debug ("FSpotImporter.vala:353: FSpotDataImporter: stopping interaction.");
#line 355 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->running = FALSE;
#line 3298 "FSpotImporter.c"
}


/**
     * Action that discovers importable libraries based on standard locations.
     */
static void _vala_array_add2 (SpitDataImportsImportableLibrary*** array, int* length, int* size, SpitDataImportsImportableLibrary* value) {
#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if ((*length) == (*size)) {
#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*array = g_renew (SpitDataImportsImportableLibrary*, *array, (*size) + 1);
#line 3312 "FSpotImporter.c"
	}
#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*array)[(*length)++] = value;
#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*array)[*length] = NULL;
#line 3318 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_data_importer_do_discover_importable_libraries (DataImportsFSpotFSpotDataImporter* self) {
	SpitDataImportsImportableLibrary** discovered_libraries = NULL;
	SpitDataImportsImportableLibrary** _tmp0_ = NULL;
	gint discovered_libraries_length1 = 0;
	gint _discovered_libraries_size_ = 0;
	GFile** db_files = NULL;
	const gchar* _tmp1_ = NULL;
	GFile* _tmp2_ = NULL;
	GFile* _tmp3_ = NULL;
	GFile* _tmp4_ = NULL;
	GFile* _tmp5_ = NULL;
	GFile* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	GFile* _tmp8_ = NULL;
	GFile* _tmp9_ = NULL;
	GFile* _tmp10_ = NULL;
	GFile* _tmp11_ = NULL;
	GFile* _tmp12_ = NULL;
	GFile* _tmp13_ = NULL;
	GFile* _tmp14_ = NULL;
	const gchar* _tmp15_ = NULL;
	GFile* _tmp16_ = NULL;
	GFile* _tmp17_ = NULL;
	GFile* _tmp18_ = NULL;
	GFile* _tmp19_ = NULL;
	GFile* _tmp20_ = NULL;
	GFile** _tmp21_ = NULL;
	GFile** _tmp22_ = NULL;
	gint _tmp22__length1 = 0;
	gint db_files_length1 = 0;
	gint _db_files_size_ = 0;
	GFile** _tmp23_ = NULL;
	gint _tmp23__length1 = 0;
	const gchar* _tmp33_ = NULL;
	SpitDataImportsImportableLibrary** _tmp34_ = NULL;
	gint _tmp34__length1 = 0;
	SpitDataImportsPluginHost* _tmp35_ = NULL;
	SpitDataImportsImportableLibrary** _tmp36_ = NULL;
	gint _tmp36__length1 = 0;
#line 363 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER (self));
#line 364 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = g_new0 (SpitDataImportsImportableLibrary*, 0 + 1);
#line 364 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	discovered_libraries = _tmp0_;
#line 364 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	discovered_libraries_length1 = 0;
#line 364 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_discovered_libraries_size_ = discovered_libraries_length1;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = g_get_user_config_dir ();
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = g_file_new_for_path (_tmp1_);
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp3_ = _tmp2_;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp4_ = g_file_get_child (_tmp3_, "f-spot");
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp5_ = _tmp4_;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp6_ = g_file_get_child (_tmp5_, "photos.db");
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp7_ = g_get_home_dir ();
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp8_ = g_file_new_for_path (_tmp7_);
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp9_ = _tmp8_;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp10_ = g_file_get_child (_tmp9_, ".gnome2");
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp11_ = _tmp10_;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp12_ = g_file_get_child (_tmp11_, "f-spot");
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp13_ = _tmp12_;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp14_ = g_file_get_child (_tmp13_, "photos.db");
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp15_ = g_get_user_data_dir ();
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp16_ = g_file_new_for_path (_tmp15_);
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp17_ = _tmp16_;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp18_ = g_file_get_child (_tmp17_, "f-spot");
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp19_ = _tmp18_;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp20_ = g_file_get_child (_tmp19_, "photos.db");
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp21_ = g_new0 (GFile*, 3 + 1);
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp21_[0] = _tmp6_;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp21_[1] = _tmp14_;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp21_[2] = _tmp20_;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp22_ = _tmp21_;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp22__length1 = 3;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (_tmp19_);
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (_tmp17_);
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (_tmp13_);
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (_tmp11_);
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (_tmp9_);
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (_tmp5_);
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (_tmp3_);
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	db_files = _tmp22_;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	db_files_length1 = _tmp22__length1;
#line 367 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_db_files_size_ = db_files_length1;
#line 379 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp23_ = db_files;
#line 379 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp23__length1 = db_files_length1;
#line 3447 "FSpotImporter.c"
	{
		GFile** db_file_collection = NULL;
		gint db_file_collection_length1 = 0;
		gint _db_file_collection_size_ = 0;
		gint db_file_it = 0;
#line 379 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		db_file_collection = _tmp23_;
#line 379 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		db_file_collection_length1 = _tmp23__length1;
#line 379 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		for (db_file_it = 0; db_file_it < _tmp23__length1; db_file_it = db_file_it + 1) {
#line 3459 "FSpotImporter.c"
			GFile* _tmp24_ = NULL;
			GFile* db_file = NULL;
#line 379 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp24_ = _g_object_ref0 (db_file_collection[db_file_it]);
#line 379 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			db_file = _tmp24_;
#line 3466 "FSpotImporter.c"
			{
				GFile* _tmp25_ = NULL;
				gboolean _tmp26_ = FALSE;
#line 380 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp25_ = db_file;
#line 380 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp26_ = g_file_query_exists (_tmp25_, NULL);
#line 380 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				if (_tmp26_) {
#line 3476 "FSpotImporter.c"
					SpitDataImportsImportableLibrary** _tmp27_ = NULL;
					gint _tmp27__length1 = 0;
					GFile* _tmp28_ = NULL;
					DataImportsFSpotFSpotImportableLibrary* _tmp29_ = NULL;
					GFile* _tmp30_ = NULL;
					gchar* _tmp31_ = NULL;
					gchar* _tmp32_ = NULL;
#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp27_ = discovered_libraries;
#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp27__length1 = discovered_libraries_length1;
#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp28_ = db_file;
#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp29_ = data_imports_fspot_fspot_importable_library_new (_tmp28_);
#line 381 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_vala_array_add2 (&discovered_libraries, &discovered_libraries_length1, &_discovered_libraries_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibrary));
#line 382 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp30_ = db_file;
#line 382 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp31_ = g_file_get_path (_tmp30_);
#line 382 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp32_ = _tmp31_;
#line 382 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					g_message ("FSpotImporter.vala:382: Discovered importable library: %s", _tmp32_);
#line 382 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_free0 (_tmp32_);
#line 3504 "FSpotImporter.c"
				}
#line 379 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (db_file);
#line 3508 "FSpotImporter.c"
			}
		}
	}
#line 387 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp34_ = discovered_libraries;
#line 387 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp34__length1 = discovered_libraries_length1;
#line 387 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp34__length1 > 0) {
#line 387 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp33_ = DATA_IMPORTS_FSPOT_SERVICE_WELCOME_MESSAGE;
#line 3520 "FSpotImporter.c"
	} else {
#line 387 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp33_ = DATA_IMPORTS_FSPOT_SERVICE_WELCOME_MESSAGE_FILE_ONLY;
#line 3524 "FSpotImporter.c"
	}
#line 386 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp35_ = self->priv->host;
#line 386 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp36_ = discovered_libraries;
#line 386 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp36__length1 = discovered_libraries_length1;
#line 386 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	spit_data_imports_plugin_host_install_library_selection_pane (_tmp35_, _tmp33_, _tmp36_, _tmp36__length1, DATA_IMPORTS_FSPOT_FILE_IMPORT_LABEL);
#line 363 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	db_files = (_vala_array_free (db_files, db_files_length1, (GDestroyNotify) g_object_unref), NULL);
#line 363 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	discovered_libraries = (_vala_array_free (discovered_libraries, discovered_libraries_length1, (GDestroyNotify) g_object_unref), NULL);
#line 3538 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_data_importer_real_on_library_selected (SpitDataImportsDataImporter* base, SpitDataImportsImportableLibrary* library) {
	DataImportsFSpotFSpotDataImporter * self;
	SpitDataImportsImportableLibrary* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	GFile* _tmp2_ = NULL;
#line 393 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
#line 393 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY (library));
#line 394 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = library;
#line 394 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = data_imports_fspot_fspot_importable_library_get_db_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, DATA_IMPORTS_FSPOT_TYPE_FSPOT_IMPORTABLE_LIBRARY, DataImportsFSpotFSpotImportableLibrary));
#line 394 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = _tmp1_;
#line 394 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	spit_data_imports_data_importer_on_file_selected (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporter), _tmp2_);
#line 394 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (_tmp2_);
#line 3561 "FSpotImporter.c"
}


static void _vala_array_add3 (DataImportsFSpotFSpotImportableTag*** array, int* length, int* size, DataImportsFSpotFSpotImportableTag* value) {
#line 455 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if ((*length) == (*size)) {
#line 455 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 455 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*array = g_renew (DataImportsFSpotFSpotImportableTag*, *array, (*size) + 1);
#line 3572 "FSpotImporter.c"
	}
#line 455 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*array)[(*length)++] = value;
#line 455 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*array)[*length] = NULL;
#line 3578 "FSpotImporter.c"
}


static void _vala_array_add4 (SpitDataImportsImportableMediaItem*** array, int* length, int* size, SpitDataImportsImportableMediaItem* value) {
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if ((*length) == (*size)) {
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*array = g_renew (SpitDataImportsImportableMediaItem*, *array, (*size) + 1);
#line 3589 "FSpotImporter.c"
	}
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*array)[(*length)++] = value;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*array)[*length] = NULL;
#line 3595 "FSpotImporter.c"
}


static void _vala_array_add5 (SpitDataImportsImportableMediaItem*** array, int* length, int* size, SpitDataImportsImportableMediaItem* value) {
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if ((*length) == (*size)) {
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*array = g_renew (SpitDataImportsImportableMediaItem*, *array, (*size) + 1);
#line 3606 "FSpotImporter.c"
	}
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*array)[(*length)++] = value;
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*array)[*length] = NULL;
#line 3612 "FSpotImporter.c"
}


static void _vala_array_add6 (SpitDataImportsImportableMediaItem*** array, int* length, int* size, SpitDataImportsImportableMediaItem* value) {
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if ((*length) == (*size)) {
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		*array = g_renew (SpitDataImportsImportableMediaItem*, *array, (*size) + 1);
#line 3623 "FSpotImporter.c"
	}
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*array)[(*length)++] = value;
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	(*array)[*length] = NULL;
#line 3629 "FSpotImporter.c"
}


static void _data_imports_fspot_fspot_data_importer_on_imported_items_count_spit_data_imports_imported_items_count_callback (gint imported_items_count, gpointer self) {
#line 525 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_data_importer_on_imported_items_count ((DataImportsFSpotFSpotDataImporter*) self, imported_items_count);
#line 3636 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_data_importer_real_on_file_selected (SpitDataImportsDataImporter* base, GFile* file) {
	DataImportsFSpotFSpotDataImporter * self;
	DataImportsFSpotDbFSpotDatabase* database = NULL;
	DataImportsFSpotFSpotTagsCache* tags_cache = NULL;
	GeeArrayList* all_photos = NULL;
	gdouble progress_delta_per_photo = 0.0;
	gdouble progress_plugin_to_host_ratio = 0.0;
	gdouble current_progress = 0.0;
	SpitDataImportsPluginHost* _tmp24_ = NULL;
	const gchar* _tmp25_ = NULL;
	GeeArrayList* _tmp36_ = NULL;
	gint _tmp37_ = 0;
	gint _tmp38_ = 0;
	SpitDataImportsPluginHost* _tmp173_ = NULL;
	GError * _inner_error_ = NULL;
#line 397 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
#line 397 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_if_fail (G_IS_FILE (file));
#line 401 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	progress_delta_per_photo = 1.0;
#line 402 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	progress_plugin_to_host_ratio = 0.5;
#line 403 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	current_progress = 0.0;
#line 3665 "FSpotImporter.c"
	{
		DataImportsFSpotDbFSpotDatabase* _tmp0_ = NULL;
		GFile* _tmp1_ = NULL;
		DataImportsFSpotDbFSpotDatabase* _tmp2_ = NULL;
		DataImportsFSpotDbFSpotDatabase* _tmp3_ = NULL;
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp1_ = file;
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp2_ = data_imports_fspot_db_fspot_database_new (_tmp1_, &_inner_error_);
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp0_ = _tmp2_;
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			if (_inner_error_->domain == DATABASE_ERROR) {
#line 3681 "FSpotImporter.c"
				goto __catch0_database_error;
			}
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			if (_inner_error_->domain == SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR) {
#line 3686 "FSpotImporter.c"
				goto __catch0_spit_data_imports_data_import_error;
			}
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (all_photos);
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (tags_cache);
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (database);
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			g_clear_error (&_inner_error_);
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			return;
#line 3701 "FSpotImporter.c"
		}
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp3_ = _tmp0_;
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp0_ = NULL;
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (database);
#line 405 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		database = _tmp3_;
#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (_tmp0_);
#line 3713 "FSpotImporter.c"
	}
	goto __finally0;
	__catch0_database_error:
	{
		GError* e = NULL;
		GError* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		SpitDataImportsPluginHost* _tmp8_ = NULL;
#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		e = _inner_error_;
#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_inner_error_ = NULL;
#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp4_ = e;
#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp5_ = _tmp4_->message;
#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp6_ = g_strdup_printf ("FSpotDataImporter: Can't open database file: %s", _tmp5_);
#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp7_ = _tmp6_;
#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		g_debug ("FSpotImporter.vala:407: %s", _tmp7_);
#line 407 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_free0 (_tmp7_);
#line 408 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp8_ = self->priv->host;
#line 408 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		spit_data_imports_plugin_host_post_error_message (_tmp8_, DATA_IMPORTS_FSPOT_ERROR_CANT_OPEN_DB_FILE);
#line 409 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_error_free0 (e);
#line 409 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (all_photos);
#line 409 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (tags_cache);
#line 409 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (database);
#line 409 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return;
#line 3754 "FSpotImporter.c"
	}
	goto __finally0;
	__catch0_spit_data_imports_data_import_error:
	{
		GError* e = NULL;
		GError* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		SpitDataImportsPluginHost* _tmp13_ = NULL;
#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		e = _inner_error_;
#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_inner_error_ = NULL;
#line 411 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp9_ = e;
#line 411 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp10_ = _tmp9_->message;
#line 411 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp11_ = g_strdup_printf ("FSpotDataImporter: Unsupported F-Spot database version: %s", _tmp10_);
#line 411 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp12_ = _tmp11_;
#line 411 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		g_debug ("FSpotImporter.vala:411: %s", _tmp12_);
#line 411 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_free0 (_tmp12_);
#line 412 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp13_ = self->priv->host;
#line 412 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		spit_data_imports_plugin_host_post_error_message (_tmp13_, DATA_IMPORTS_FSPOT_ERROR_UNSUPPORTED_DB_VERSION);
#line 413 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_error_free0 (e);
#line 413 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (all_photos);
#line 413 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (tags_cache);
#line 413 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (database);
#line 413 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return;
#line 3795 "FSpotImporter.c"
	}
	__finally0:
#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (all_photos);
#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (tags_cache);
#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (database);
#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		g_clear_error (&_inner_error_);
#line 404 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return;
#line 3812 "FSpotImporter.c"
	}
	{
		DataImportsFSpotFSpotTagsCache* _tmp14_ = NULL;
		DataImportsFSpotDbFSpotDatabase* _tmp15_ = NULL;
		DataImportsFSpotDbFSpotTagsTable* _tmp16_ = NULL;
		DataImportsFSpotFSpotTagsCache* _tmp17_ = NULL;
		DataImportsFSpotFSpotTagsCache* _tmp18_ = NULL;
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp15_ = database;
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp16_ = _tmp15_->tags_table;
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp17_ = data_imports_fspot_fspot_tags_cache_new (_tmp16_, &_inner_error_);
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp14_ = _tmp17_;
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			if (_inner_error_->domain == DATABASE_ERROR) {
#line 3832 "FSpotImporter.c"
				goto __catch1_database_error;
			}
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (all_photos);
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (tags_cache);
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (database);
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			g_clear_error (&_inner_error_);
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			return;
#line 3847 "FSpotImporter.c"
		}
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp18_ = _tmp14_;
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp14_ = NULL;
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (tags_cache);
#line 416 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		tags_cache = _tmp18_;
#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (_tmp14_);
#line 3859 "FSpotImporter.c"
	}
	goto __finally1;
	__catch1_database_error:
	{
		GError* e = NULL;
		GError* _tmp19_ = NULL;
		const gchar* _tmp20_ = NULL;
		gchar* _tmp21_ = NULL;
		gchar* _tmp22_ = NULL;
		SpitDataImportsPluginHost* _tmp23_ = NULL;
#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		e = _inner_error_;
#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_inner_error_ = NULL;
#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp19_ = e;
#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp20_ = _tmp19_->message;
#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp21_ = g_strdup_printf ("FSpotDataImporter: Can't read tags table: %s", _tmp20_);
#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp22_ = _tmp21_;
#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		g_debug ("FSpotImporter.vala:418: %s", _tmp22_);
#line 418 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_free0 (_tmp22_);
#line 419 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp23_ = self->priv->host;
#line 419 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		spit_data_imports_plugin_host_post_error_message (_tmp23_, DATA_IMPORTS_FSPOT_ERROR_CANT_READ_TAGS_TABLE);
#line 420 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_error_free0 (e);
#line 420 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (all_photos);
#line 420 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (tags_cache);
#line 420 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (database);
#line 420 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return;
#line 3900 "FSpotImporter.c"
	}
	__finally1:
#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (all_photos);
#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (tags_cache);
#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (database);
#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		g_clear_error (&_inner_error_);
#line 415 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return;
#line 3917 "FSpotImporter.c"
	}
#line 422 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp24_ = self->priv->host;
#line 422 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp25_ = _ ("Preparing to import");
#line 422 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	spit_data_imports_plugin_host_install_import_progress_pane (_tmp24_, _tmp25_);
#line 3925 "FSpotImporter.c"
	{
		GeeArrayList* _tmp26_ = NULL;
		DataImportsFSpotDbFSpotDatabase* _tmp27_ = NULL;
		DataImportsFSpotDbFSpotPhotosTable* _tmp28_ = NULL;
		GeeArrayList* _tmp29_ = NULL;
		GeeArrayList* _tmp30_ = NULL;
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp27_ = database;
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp28_ = _tmp27_->photos_table;
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp29_ = data_imports_fspot_db_fspot_photos_table_get_all (_tmp28_, &_inner_error_);
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp26_ = _tmp29_;
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			if (_inner_error_->domain == DATABASE_ERROR) {
#line 3944 "FSpotImporter.c"
				goto __catch2_database_error;
			}
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (all_photos);
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (tags_cache);
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (database);
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			g_clear_error (&_inner_error_);
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			return;
#line 3959 "FSpotImporter.c"
		}
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp30_ = _tmp26_;
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp26_ = NULL;
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (all_photos);
#line 424 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		all_photos = _tmp30_;
#line 423 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (_tmp26_);
#line 3971 "FSpotImporter.c"
	}
	goto __finally2;
	__catch2_database_error:
	{
		GError* e = NULL;
		GError* _tmp31_ = NULL;
		const gchar* _tmp32_ = NULL;
		gchar* _tmp33_ = NULL;
		gchar* _tmp34_ = NULL;
		SpitDataImportsPluginHost* _tmp35_ = NULL;
#line 423 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		e = _inner_error_;
#line 423 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_inner_error_ = NULL;
#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp31_ = e;
#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp32_ = _tmp31_->message;
#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp33_ = g_strdup_printf ("FSpotDataImporter: Can't read photos table: %s", _tmp32_);
#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp34_ = _tmp33_;
#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		g_debug ("FSpotImporter.vala:426: %s", _tmp34_);
#line 426 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_free0 (_tmp34_);
#line 427 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp35_ = self->priv->host;
#line 427 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		spit_data_imports_plugin_host_post_error_message (_tmp35_, DATA_IMPORTS_FSPOT_ERROR_CANT_READ_PHOTOS_TABLE);
#line 428 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_error_free0 (e);
#line 428 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (all_photos);
#line 428 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (tags_cache);
#line 428 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (database);
#line 428 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return;
#line 4012 "FSpotImporter.c"
	}
	__finally2:
#line 423 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 423 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (all_photos);
#line 423 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (tags_cache);
#line 423 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (database);
#line 423 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 423 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		g_clear_error (&_inner_error_);
#line 423 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		return;
#line 4029 "FSpotImporter.c"
	}
#line 430 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp36_ = all_photos;
#line 430 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp37_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection));
#line 430 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp38_ = _tmp37_;
#line 430 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (_tmp38_ > 0) {
#line 4039 "FSpotImporter.c"
		GeeArrayList* _tmp39_ = NULL;
		gint _tmp40_ = 0;
		gint _tmp41_ = 0;
#line 431 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp39_ = all_photos;
#line 431 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp40_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection));
#line 431 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp41_ = _tmp40_;
#line 431 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		progress_delta_per_photo = 1.0 / _tmp41_;
#line 4051 "FSpotImporter.c"
	}
	{
		GeeArrayList* _photo_row_list = NULL;
		GeeArrayList* _tmp42_ = NULL;
		GeeArrayList* _tmp43_ = NULL;
		gint _photo_row_size = 0;
		GeeArrayList* _tmp44_ = NULL;
		gint _tmp45_ = 0;
		gint _tmp46_ = 0;
		gint _photo_row_index = 0;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp42_ = all_photos;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp43_ = _g_object_ref0 (_tmp42_);
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_photo_row_list = _tmp43_;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp44_ = _photo_row_list;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp45_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection));
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp46_ = _tmp45_;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_photo_row_size = _tmp46_;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_photo_row_index = -1;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		while (TRUE) {
#line 4080 "FSpotImporter.c"
			gint _tmp47_ = 0;
			gint _tmp48_ = 0;
			gint _tmp49_ = 0;
			DataImportsFSpotDbFSpotPhotoRow* photo_row = NULL;
			GeeArrayList* _tmp50_ = NULL;
			gint _tmp51_ = 0;
			gpointer _tmp52_ = NULL;
			gboolean hidden = FALSE;
			gboolean favorite = FALSE;
			DataImportsFSpotFSpotImportableTag** tags = NULL;
			DataImportsFSpotFSpotImportableTag** _tmp53_ = NULL;
			gint tags_length1 = 0;
			gint _tags_size_ = 0;
			DataImportsFSpotFSpotImportableEvent* event = NULL;
			DataImportsFSpotDbFSpotRollRow* roll_row = NULL;
			SpitDataImportsImportableMediaItem** importable_items = NULL;
			SpitDataImportsImportableMediaItem** _tmp97_ = NULL;
			gint importable_items_length1 = 0;
			gint _importable_items_size_ = 0;
			gboolean _tmp161_ = FALSE;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp47_ = _photo_row_index;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_photo_row_index = _tmp47_ + 1;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp48_ = _photo_row_index;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp49_ = _photo_row_size;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			if (!(_tmp48_ < _tmp49_)) {
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				break;
#line 4113 "FSpotImporter.c"
			}
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp50_ = _photo_row_list;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp51_ = _photo_row_index;
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp52_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp51_);
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			photo_row = (DataImportsFSpotDbFSpotPhotoRow*) _tmp52_;
#line 433 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			hidden = FALSE;
#line 434 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			favorite = FALSE;
#line 435 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp53_ = g_new0 (DataImportsFSpotFSpotImportableTag*, 0 + 1);
#line 435 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			tags = _tmp53_;
#line 435 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			tags_length1 = 0;
#line 435 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tags_size_ = tags_length1;
#line 436 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			event = NULL;
#line 437 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			roll_row = NULL;
#line 4139 "FSpotImporter.c"
			{
				GeeArrayList* _tmp54_ = NULL;
				DataImportsFSpotDbFSpotDatabase* _tmp55_ = NULL;
				DataImportsFSpotDbFSpotTagsTable* _tmp56_ = NULL;
				DataImportsFSpotDbFSpotPhotoRow* _tmp57_ = NULL;
				gint64 _tmp58_ = 0LL;
				GeeArrayList* _tmp59_ = NULL;
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp55_ = database;
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp56_ = _tmp55_->tags_table;
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp57_ = photo_row;
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp58_ = _tmp57_->photo_id;
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp59_ = data_imports_fspot_db_fspot_tags_table_get_by_photo_id (_tmp56_, _tmp58_, &_inner_error_);
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp54_ = _tmp59_;
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					if (_inner_error_->domain == DATABASE_ERROR) {
#line 4163 "FSpotImporter.c"
						goto __catch3_database_error;
					}
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (roll_row);
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (event);
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (photo_row);
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (_photo_row_list);
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (all_photos);
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (tags_cache);
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (database);
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					g_clear_error (&_inner_error_);
#line 447 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					return;
#line 4188 "FSpotImporter.c"
				}
				{
					GeeArrayList* _tag_row_list = NULL;
					GeeArrayList* _tmp60_ = NULL;
					gint _tag_row_size = 0;
					GeeArrayList* _tmp61_ = NULL;
					gint _tmp62_ = 0;
					gint _tmp63_ = 0;
					gint _tag_row_index = 0;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp60_ = _tmp54_;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp54_ = NULL;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tag_row_list = _tmp60_;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp61_ = _tag_row_list;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp62_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_COLLECTION, GeeCollection));
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp63_ = _tmp62_;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tag_row_size = _tmp63_;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tag_row_index = -1;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					while (TRUE) {
#line 4216 "FSpotImporter.c"
						gint _tmp64_ = 0;
						gint _tmp65_ = 0;
						gint _tmp66_ = 0;
						DataImportsFSpotDbFSpotTagRow* tag_row = NULL;
						GeeArrayList* _tmp67_ = NULL;
						gint _tmp68_ = 0;
						gpointer _tmp69_ = NULL;
						DataImportsFSpotFSpotImportableTag* tag = NULL;
						DataImportsFSpotFSpotTagsCache* _tmp70_ = NULL;
						DataImportsFSpotDbFSpotTagRow* _tmp71_ = NULL;
						DataImportsFSpotFSpotImportableTag* _tmp72_ = NULL;
						DataImportsFSpotFSpotImportableTag* _tmp73_ = NULL;
						DataImportsFSpotDbFSpotDatabase* _tmp74_ = NULL;
						gint64 _tmp75_ = 0LL;
						gboolean _tmp76_ = FALSE;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp64_ = _tag_row_index;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tag_row_index = _tmp64_ + 1;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp65_ = _tag_row_index;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp66_ = _tag_row_size;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						if (!(_tmp65_ < _tmp66_)) {
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							break;
#line 4244 "FSpotImporter.c"
						}
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp67_ = _tag_row_list;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp68_ = _tag_row_index;
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp69_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp68_);
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						tag_row = (DataImportsFSpotDbFSpotTagRow*) _tmp69_;
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp70_ = tags_cache;
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp71_ = tag_row;
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp72_ = data_imports_fspot_fspot_tags_cache_get_tag (_tmp70_, _tmp71_, &_inner_error_);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						tag = _tmp72_;
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (tag_row);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (_tag_row_list);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (_tmp54_);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							if (_inner_error_->domain == DATABASE_ERROR) {
#line 4272 "FSpotImporter.c"
								goto __catch3_database_error;
							}
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (tag_row);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (_tag_row_list);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (_tmp54_);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (roll_row);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (event);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (photo_row);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (_photo_row_list);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (all_photos);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (tags_cache);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_g_object_unref0 (database);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							g_clear_error (&_inner_error_);
#line 449 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							return;
#line 4303 "FSpotImporter.c"
						}
#line 450 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp73_ = tag;
#line 450 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp74_ = database;
#line 450 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp75_ = _tmp74_->hidden_tag_id;
#line 450 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp76_ = data_imports_fspot_fspot_data_importer_is_tag_hidden (self, _tmp73_, _tmp75_);
#line 450 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						if (_tmp76_) {
#line 451 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							hidden = TRUE;
#line 4317 "FSpotImporter.c"
						} else {
							DataImportsFSpotFSpotImportableTag* _tmp77_ = NULL;
							gboolean _tmp78_ = FALSE;
#line 452 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp77_ = tag;
#line 452 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp78_ = data_imports_fspot_fspot_data_importer_is_tag_favorite (self, _tmp77_);
#line 452 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							if (_tmp78_) {
#line 453 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
								favorite = TRUE;
#line 4329 "FSpotImporter.c"
							} else {
								DataImportsFSpotFSpotImportableTag** _tmp79_ = NULL;
								gint _tmp79__length1 = 0;
								DataImportsFSpotFSpotImportableTag* _tmp80_ = NULL;
								DataImportsFSpotFSpotImportableTag* _tmp81_ = NULL;
#line 455 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
								_tmp79_ = tags;
#line 455 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
								_tmp79__length1 = tags_length1;
#line 455 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
								_tmp80_ = tag;
#line 455 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
								_tmp81_ = _g_object_ref0 (_tmp80_);
#line 455 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
								_vala_array_add3 (&tags, &tags_length1, &_tags_size_, _tmp81_);
#line 4345 "FSpotImporter.c"
							}
						}
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_g_object_unref0 (tag);
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_g_object_unref0 (tag_row);
#line 4352 "FSpotImporter.c"
					}
#line 445 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (_tag_row_list);
#line 4356 "FSpotImporter.c"
				}
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (_tmp54_);
#line 4360 "FSpotImporter.c"
			}
			goto __finally3;
			__catch3_database_error:
			{
				GError* e = NULL;
				DataImportsFSpotDbFSpotPhotoRow* _tmp82_ = NULL;
				gint64 _tmp83_ = 0LL;
				GError* _tmp84_ = NULL;
				const gchar* _tmp85_ = NULL;
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				e = _inner_error_;
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_inner_error_ = NULL;
#line 459 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp82_ = photo_row;
#line 459 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp83_ = _tmp82_->photo_id;
#line 459 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp84_ = e;
#line 459 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp85_ = _tmp84_->message;
#line 459 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_message ("FSpotImporter.vala:459: Failed to retrieve tags for photo ID %ld: %s", (glong) _tmp83_, _tmp85_);
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_error_free0 (e);
#line 4386 "FSpotImporter.c"
			}
			__finally3:
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (roll_row);
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (event);
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (photo_row);
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (_photo_row_list);
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (all_photos);
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (tags_cache);
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (database);
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_clear_error (&_inner_error_);
#line 444 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				return;
#line 4413 "FSpotImporter.c"
			}
			{
				DataImportsFSpotDbFSpotRollRow* _tmp86_ = NULL;
				DataImportsFSpotDbFSpotDatabase* _tmp87_ = NULL;
				DataImportsFSpotDbFSpotRollsTable* _tmp88_ = NULL;
				DataImportsFSpotDbFSpotPhotoRow* _tmp89_ = NULL;
				gint64 _tmp90_ = 0LL;
				DataImportsFSpotDbFSpotRollRow* _tmp91_ = NULL;
				DataImportsFSpotDbFSpotRollRow* _tmp92_ = NULL;
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp87_ = database;
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp88_ = _tmp87_->rolls_table;
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp89_ = photo_row;
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp90_ = _tmp89_->roll_id;
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp91_ = data_imports_fspot_db_fspot_rolls_table_get_by_id (_tmp88_, _tmp90_, &_inner_error_);
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp86_ = _tmp91_;
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					if (_inner_error_->domain == DATABASE_ERROR) {
#line 4439 "FSpotImporter.c"
						goto __catch4_database_error;
					}
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (roll_row);
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (event);
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (photo_row);
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (_photo_row_list);
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (all_photos);
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (tags_cache);
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (database);
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					g_clear_error (&_inner_error_);
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					return;
#line 4464 "FSpotImporter.c"
				}
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp92_ = _tmp86_;
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp86_ = NULL;
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (roll_row);
#line 464 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				roll_row = _tmp92_;
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (_tmp86_);
#line 4476 "FSpotImporter.c"
			}
			goto __finally4;
			__catch4_database_error:
			{
				GError* e = NULL;
				DataImportsFSpotDbFSpotPhotoRow* _tmp93_ = NULL;
				gint64 _tmp94_ = 0LL;
				GError* _tmp95_ = NULL;
				const gchar* _tmp96_ = NULL;
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				e = _inner_error_;
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_inner_error_ = NULL;
#line 467 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp93_ = photo_row;
#line 467 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp94_ = _tmp93_->photo_id;
#line 467 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp95_ = e;
#line 467 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp96_ = _tmp95_->message;
#line 467 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_message ("FSpotImporter.vala:467: Failed to retrieve roll for photo ID %ld: %s", (glong) _tmp94_, _tmp96_);
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_error_free0 (e);
#line 4502 "FSpotImporter.c"
			}
			__finally4:
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (roll_row);
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (event);
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (photo_row);
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (_photo_row_list);
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (all_photos);
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (tags_cache);
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (database);
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_clear_error (&_inner_error_);
#line 463 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				return;
#line 4529 "FSpotImporter.c"
			}
#line 471 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp97_ = g_new0 (SpitDataImportsImportableMediaItem*, 0 + 1);
#line 471 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			importable_items = _tmp97_;
#line 471 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			importable_items_length1 = 0;
#line 471 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_importable_items_size_ = importable_items_length1;
#line 4539 "FSpotImporter.c"
			{
				GeeArrayList* photo_versions = NULL;
				DataImportsFSpotDbFSpotDatabase* _tmp98_ = NULL;
				DataImportsFSpotDbFSpotPhotoVersionsTable* _tmp99_ = NULL;
				DataImportsFSpotDbFSpotPhotoRow* _tmp100_ = NULL;
				gint64 _tmp101_ = 0LL;
				GeeArrayList* _tmp102_ = NULL;
				gboolean photo_versions_added = FALSE;
				gboolean photo_versions_skipped = FALSE;
				gboolean _tmp128_ = FALSE;
				gboolean _tmp129_ = FALSE;
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp98_ = database;
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp99_ = _tmp98_->photo_versions_table;
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp100_ = photo_row;
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp101_ = _tmp100_->photo_id;
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp102_ = data_imports_fspot_db_fspot_photo_versions_table_get_by_photo_id (_tmp99_, _tmp101_, &_inner_error_);
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				photo_versions = _tmp102_;
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					if (_inner_error_->domain == DATABASE_ERROR) {
#line 4567 "FSpotImporter.c"
						goto __catch5_database_error;
					}
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					importable_items = (_vala_array_free (importable_items, importable_items_length1, (GDestroyNotify) g_object_unref), NULL);
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (roll_row);
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (event);
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (photo_row);
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (_photo_row_list);
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (all_photos);
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (tags_cache);
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (database);
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					g_clear_error (&_inner_error_);
#line 473 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					return;
#line 4594 "FSpotImporter.c"
				}
#line 475 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				photo_versions_added = FALSE;
#line 476 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				photo_versions_skipped = FALSE;
#line 4600 "FSpotImporter.c"
				{
					GeeArrayList* _photo_version_row_list = NULL;
					GeeArrayList* _tmp103_ = NULL;
					GeeArrayList* _tmp104_ = NULL;
					gint _photo_version_row_size = 0;
					GeeArrayList* _tmp105_ = NULL;
					gint _tmp106_ = 0;
					gint _tmp107_ = 0;
					gint _photo_version_row_index = 0;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp103_ = photo_versions;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp104_ = _g_object_ref0 (_tmp103_);
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_photo_version_row_list = _tmp104_;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp105_ = _photo_version_row_list;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp106_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, GEE_TYPE_COLLECTION, GeeCollection));
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp107_ = _tmp106_;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_photo_version_row_size = _tmp107_;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_photo_version_row_index = -1;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					while (TRUE) {
#line 4628 "FSpotImporter.c"
						gint _tmp108_ = 0;
						gint _tmp109_ = 0;
						gint _tmp110_ = 0;
						DataImportsFSpotDbFSpotPhotoVersionRow* photo_version_row = NULL;
						GeeArrayList* _tmp111_ = NULL;
						gint _tmp112_ = 0;
						gpointer _tmp113_ = NULL;
						gboolean _tmp114_ = FALSE;
						DataImportsFSpotDbFSpotPhotoVersionRow* _tmp115_ = NULL;
						GFile* _tmp116_ = NULL;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp108_ = _photo_version_row_index;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_photo_version_row_index = _tmp108_ + 1;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp109_ = _photo_version_row_index;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp110_ = _photo_version_row_size;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						if (!(_tmp109_ < _tmp110_)) {
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							break;
#line 4651 "FSpotImporter.c"
						}
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp111_ = _photo_version_row_list;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp112_ = _photo_version_row_index;
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp113_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp111_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp112_);
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						photo_version_row = (DataImportsFSpotDbFSpotPhotoVersionRow*) _tmp113_;
#line 478 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp115_ = photo_version_row;
#line 478 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp116_ = _tmp115_->base_path;
#line 478 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						if (_tmp116_ != NULL) {
#line 4667 "FSpotImporter.c"
							DataImportsFSpotDbFSpotPhotoVersionRow* _tmp117_ = NULL;
							const gchar* _tmp118_ = NULL;
#line 478 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp117_ = photo_version_row;
#line 478 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp118_ = _tmp117_->filename;
#line 478 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp114_ = _tmp118_ != NULL;
#line 4676 "FSpotImporter.c"
						} else {
#line 478 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp114_ = FALSE;
#line 4680 "FSpotImporter.c"
						}
#line 478 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						if (_tmp114_) {
#line 4684 "FSpotImporter.c"
							SpitDataImportsImportableMediaItem** _tmp119_ = NULL;
							gint _tmp119__length1 = 0;
							DataImportsFSpotDbFSpotPhotoRow* _tmp120_ = NULL;
							DataImportsFSpotDbFSpotPhotoVersionRow* _tmp121_ = NULL;
							DataImportsFSpotDbFSpotRollRow* _tmp122_ = NULL;
							DataImportsFSpotFSpotImportableTag** _tmp123_ = NULL;
							gint _tmp123__length1 = 0;
							DataImportsFSpotFSpotImportableEvent* _tmp124_ = NULL;
							gboolean _tmp125_ = FALSE;
							gboolean _tmp126_ = FALSE;
							DataImportsFSpotFSpotImportableItem* _tmp127_ = NULL;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp119_ = importable_items;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp119__length1 = importable_items_length1;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp120_ = photo_row;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp121_ = photo_version_row;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp122_ = roll_row;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp123_ = tags;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp123__length1 = tags_length1;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp124_ = event;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp125_ = hidden;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp126_ = favorite;
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_tmp127_ = data_imports_fspot_fspot_importable_item_new (_tmp120_, _tmp121_, _tmp122_, _tmp123_, _tmp123__length1, _tmp124_, _tmp125_, _tmp126_);
#line 479 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							_vala_array_add4 (&importable_items, &importable_items_length1, &_importable_items_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp127_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItem));
#line 482 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							photo_versions_added = TRUE;
#line 4722 "FSpotImporter.c"
						} else {
#line 484 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
							photo_versions_skipped = TRUE;
#line 4726 "FSpotImporter.c"
						}
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_g_object_unref0 (photo_version_row);
#line 4730 "FSpotImporter.c"
					}
#line 477 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_g_object_unref0 (_photo_version_row_list);
#line 4734 "FSpotImporter.c"
				}
#line 492 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp129_ = photo_versions_skipped;
#line 492 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				if (_tmp129_) {
#line 492 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp128_ = TRUE;
#line 4742 "FSpotImporter.c"
				} else {
					gboolean _tmp130_ = FALSE;
#line 492 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp130_ = photo_versions_added;
#line 492 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp128_ = !_tmp130_;
#line 4749 "FSpotImporter.c"
				}
#line 492 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				if (_tmp128_) {
#line 4753 "FSpotImporter.c"
					gboolean _tmp131_ = FALSE;
					DataImportsFSpotDbFSpotPhotoRow* _tmp132_ = NULL;
					GFile* _tmp133_ = NULL;
#line 493 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp132_ = photo_row;
#line 493 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp133_ = _tmp132_->base_path;
#line 493 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					if (_tmp133_ != NULL) {
#line 4763 "FSpotImporter.c"
						DataImportsFSpotDbFSpotPhotoRow* _tmp134_ = NULL;
						const gchar* _tmp135_ = NULL;
#line 493 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp134_ = photo_row;
#line 493 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp135_ = _tmp134_->filename;
#line 493 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp131_ = _tmp135_ != NULL;
#line 4772 "FSpotImporter.c"
					} else {
#line 493 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp131_ = FALSE;
#line 4776 "FSpotImporter.c"
					}
#line 493 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					if (_tmp131_) {
#line 4780 "FSpotImporter.c"
						SpitDataImportsImportableMediaItem** _tmp136_ = NULL;
						gint _tmp136__length1 = 0;
						DataImportsFSpotDbFSpotPhotoRow* _tmp137_ = NULL;
						DataImportsFSpotDbFSpotRollRow* _tmp138_ = NULL;
						DataImportsFSpotFSpotImportableTag** _tmp139_ = NULL;
						gint _tmp139__length1 = 0;
						DataImportsFSpotFSpotImportableEvent* _tmp140_ = NULL;
						gboolean _tmp141_ = FALSE;
						gboolean _tmp142_ = FALSE;
						DataImportsFSpotFSpotImportableItem* _tmp143_ = NULL;
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp136_ = importable_items;
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp136__length1 = importable_items_length1;
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp137_ = photo_row;
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp138_ = roll_row;
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp139_ = tags;
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp139__length1 = tags_length1;
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp140_ = event;
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp141_ = hidden;
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp142_ = favorite;
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_tmp143_ = data_imports_fspot_fspot_importable_item_new (_tmp137_, NULL, _tmp138_, _tmp139_, _tmp139__length1, _tmp140_, _tmp141_, _tmp142_);
#line 494 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
						_vala_array_add5 (&importable_items, &importable_items_length1, &_importable_items_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp143_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItem));
#line 4813 "FSpotImporter.c"
					}
				}
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (photo_versions);
#line 4818 "FSpotImporter.c"
			}
			goto __finally5;
			__catch5_database_error:
			{
				GError* e = NULL;
				DataImportsFSpotDbFSpotPhotoRow* _tmp144_ = NULL;
				gint64 _tmp145_ = 0LL;
				GError* _tmp146_ = NULL;
				const gchar* _tmp147_ = NULL;
				gboolean _tmp148_ = FALSE;
				DataImportsFSpotDbFSpotPhotoRow* _tmp149_ = NULL;
				GFile* _tmp150_ = NULL;
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				e = _inner_error_;
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_inner_error_ = NULL;
#line 502 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp144_ = photo_row;
#line 502 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp145_ = _tmp144_->photo_id;
#line 502 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp146_ = e;
#line 502 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp147_ = _tmp146_->message;
#line 502 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_message ("FSpotImporter.vala:502: Failed to retrieve versions for photo ID %ld: " \
"%s", (glong) _tmp145_, _tmp147_);
#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp149_ = photo_row;
#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp150_ = _tmp149_->base_path;
#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				if (_tmp150_ != NULL) {
#line 4851 "FSpotImporter.c"
					DataImportsFSpotDbFSpotPhotoRow* _tmp151_ = NULL;
					const gchar* _tmp152_ = NULL;
#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp151_ = photo_row;
#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp152_ = _tmp151_->filename;
#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp148_ = _tmp152_ != NULL;
#line 4860 "FSpotImporter.c"
				} else {
#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp148_ = FALSE;
#line 4864 "FSpotImporter.c"
				}
#line 504 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				if (_tmp148_) {
#line 4868 "FSpotImporter.c"
					SpitDataImportsImportableMediaItem** _tmp153_ = NULL;
					gint _tmp153__length1 = 0;
					DataImportsFSpotDbFSpotPhotoRow* _tmp154_ = NULL;
					DataImportsFSpotDbFSpotRollRow* _tmp155_ = NULL;
					DataImportsFSpotFSpotImportableTag** _tmp156_ = NULL;
					gint _tmp156__length1 = 0;
					DataImportsFSpotFSpotImportableEvent* _tmp157_ = NULL;
					gboolean _tmp158_ = FALSE;
					gboolean _tmp159_ = FALSE;
					DataImportsFSpotFSpotImportableItem* _tmp160_ = NULL;
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp153_ = importable_items;
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp153__length1 = importable_items_length1;
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp154_ = photo_row;
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp155_ = roll_row;
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp156_ = tags;
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp156__length1 = tags_length1;
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp157_ = event;
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp158_ = hidden;
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp159_ = favorite;
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_tmp160_ = data_imports_fspot_fspot_importable_item_new (_tmp154_, NULL, _tmp155_, _tmp156_, _tmp156__length1, _tmp157_, _tmp158_, _tmp159_);
#line 505 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
					_vala_array_add6 (&importable_items, &importable_items_length1, &_importable_items_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp160_, SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItem));
#line 4901 "FSpotImporter.c"
				}
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_error_free0 (e);
#line 4905 "FSpotImporter.c"
			}
			__finally5:
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				importable_items = (_vala_array_free (importable_items, importable_items_length1, (GDestroyNotify) g_object_unref), NULL);
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (roll_row);
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (event);
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (photo_row);
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (_photo_row_list);
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (all_photos);
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (tags_cache);
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (database);
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				g_clear_error (&_inner_error_);
#line 472 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				return;
#line 4934 "FSpotImporter.c"
			}
#line 512 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp161_ = self->priv->running;
#line 512 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			if (_tmp161_) {
#line 4940 "FSpotImporter.c"
				SpitDataImportsPluginHost* _tmp162_ = NULL;
				SpitDataImportsImportableMediaItem** _tmp163_ = NULL;
				gint _tmp163__length1 = 0;
				gdouble _tmp164_ = 0.0;
				gdouble _tmp165_ = 0.0;
				gdouble _tmp166_ = 0.0;
				gdouble _tmp167_ = 0.0;
				gdouble _tmp168_ = 0.0;
				gdouble _tmp169_ = 0.0;
				gdouble _tmp170_ = 0.0;
				SpitDataImportsPluginHost* _tmp171_ = NULL;
				gdouble _tmp172_ = 0.0;
#line 513 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp162_ = self->priv->host;
#line 513 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp163_ = importable_items;
#line 513 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp163__length1 = importable_items_length1;
#line 513 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp164_ = current_progress;
#line 513 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp165_ = progress_delta_per_photo;
#line 513 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp166_ = progress_plugin_to_host_ratio;
#line 513 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp167_ = progress_delta_per_photo;
#line 513 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp168_ = progress_plugin_to_host_ratio;
#line 513 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				spit_data_imports_plugin_host_prepare_media_items_for_import (_tmp162_, _tmp163_, _tmp163__length1, _tmp164_ + (_tmp165_ * _tmp166_), _tmp167_ * (1 - _tmp168_), NULL);
#line 519 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp169_ = current_progress;
#line 519 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp170_ = progress_delta_per_photo;
#line 519 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				current_progress = _tmp169_ + _tmp170_;
#line 520 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp171_ = self->priv->host;
#line 520 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_tmp172_ = current_progress;
#line 520 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				spit_data_imports_plugin_host_update_import_progress_pane (_tmp171_, _tmp172_, NULL);
#line 4983 "FSpotImporter.c"
			} else {
#line 522 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				importable_items = (_vala_array_free (importable_items, importable_items_length1, (GDestroyNotify) g_object_unref), NULL);
#line 522 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (roll_row);
#line 522 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (event);
#line 522 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
#line 522 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				_g_object_unref0 (photo_row);
#line 522 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
				break;
#line 4997 "FSpotImporter.c"
			}
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			importable_items = (_vala_array_free (importable_items, importable_items_length1, (GDestroyNotify) g_object_unref), NULL);
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (roll_row);
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (event);
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_object_unref), NULL);
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_g_object_unref0 (photo_row);
#line 5009 "FSpotImporter.c"
		}
#line 432 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (_photo_row_list);
#line 5013 "FSpotImporter.c"
	}
#line 525 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp173_ = self->priv->host;
#line 525 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	spit_data_imports_plugin_host_finalize_import (_tmp173_, _data_imports_fspot_fspot_data_importer_on_imported_items_count_spit_data_imports_imported_items_count_callback, self, NULL);
#line 397 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (all_photos);
#line 397 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (tags_cache);
#line 397 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_object_unref0 (database);
#line 5025 "FSpotImporter.c"
}


void data_imports_fspot_fspot_data_importer_on_imported_items_count (DataImportsFSpotFSpotDataImporter* self, gint imported_items_count) {
	SpitDataImportsPluginHost* _tmp0_ = NULL;
	gint _tmp1_ = 0;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 528 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER (self));
#line 529 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = self->priv->host;
#line 529 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = imported_items_count;
#line 529 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = g_strdup_printf (DATA_IMPORTS_FSPOT_MESSAGE_FINAL_SCREEN, _tmp1_);
#line 529 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp3_ = _tmp2_;
#line 529 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	spit_data_imports_plugin_host_install_static_message_pane (_tmp0_, _tmp3_, SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE);
#line 529 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 (_tmp3_);
#line 5048 "FSpotImporter.c"
}


static gboolean data_imports_fspot_fspot_data_importer_is_tag_event (DataImportsFSpotFSpotDataImporter* self, DataImportsFSpotFSpotImportableTag* tag) {
	gboolean result = FALSE;
	gboolean _result_ = FALSE;
	DataImportsFSpotFSpotImportableTag* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
#line 535 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER (self), FALSE);
#line 535 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (tag), FALSE);
#line 536 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = tag;
#line 536 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = data_imports_fspot_fspot_importable_tag_get_stock_icon (_tmp0_);
#line 536 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = _tmp1_;
#line 536 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp3_ = g_strcmp0 (DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_STOCK_ICON_EVENTS, _tmp2_) == 0;
#line 536 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 (_tmp2_);
#line 536 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_result_ = _tmp3_;
#line 537 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp4_ = _result_;
#line 537 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (!_tmp4_) {
#line 5080 "FSpotImporter.c"
		DataImportsFSpotFSpotImportableTag* parent = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp5_ = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp6_ = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp7_ = NULL;
#line 538 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp5_ = tag;
#line 538 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp6_ = data_imports_fspot_fspot_importable_tag_get_fspot_parent (_tmp5_);
#line 538 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		parent = _tmp6_;
#line 539 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp7_ = parent;
#line 539 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		if (_tmp7_ == NULL) {
#line 540 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_result_ = FALSE;
#line 5097 "FSpotImporter.c"
		} else {
			DataImportsFSpotFSpotImportableTag* _tmp8_ = NULL;
			gboolean _tmp9_ = FALSE;
#line 542 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp8_ = parent;
#line 542 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp9_ = data_imports_fspot_fspot_data_importer_is_tag_event (self, _tmp8_);
#line 542 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_result_ = _tmp9_;
#line 5107 "FSpotImporter.c"
		}
#line 537 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (parent);
#line 5111 "FSpotImporter.c"
	}
#line 544 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _result_;
#line 544 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 5117 "FSpotImporter.c"
}


static gboolean data_imports_fspot_fspot_data_importer_is_tag_hidden (DataImportsFSpotFSpotDataImporter* self, DataImportsFSpotFSpotImportableTag* tag, gint64 hidden_tag_id) {
	gboolean result = FALSE;
	gboolean _result_ = FALSE;
	gint64 _tmp0_ = 0LL;
	DataImportsFSpotFSpotImportableTag* _tmp1_ = NULL;
	gint64 _tmp2_ = 0LL;
	gboolean _tmp3_ = FALSE;
#line 547 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER (self), FALSE);
#line 547 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (tag), FALSE);
#line 548 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = hidden_tag_id;
#line 548 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = tag;
#line 548 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = data_imports_fspot_fspot_importable_tag_get_id (_tmp1_);
#line 548 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_result_ = _tmp0_ == _tmp2_;
#line 549 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp3_ = _result_;
#line 549 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (!_tmp3_) {
#line 5144 "FSpotImporter.c"
		DataImportsFSpotFSpotImportableTag* parent = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp4_ = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp5_ = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp6_ = NULL;
#line 550 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp4_ = tag;
#line 550 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp5_ = data_imports_fspot_fspot_importable_tag_get_fspot_parent (_tmp4_);
#line 550 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		parent = _tmp5_;
#line 551 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp6_ = parent;
#line 551 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		if (_tmp6_ == NULL) {
#line 552 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_result_ = FALSE;
#line 5161 "FSpotImporter.c"
		} else {
			DataImportsFSpotFSpotImportableTag* _tmp7_ = NULL;
			gint64 _tmp8_ = 0LL;
			gboolean _tmp9_ = FALSE;
#line 554 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp7_ = parent;
#line 554 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp8_ = hidden_tag_id;
#line 554 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp9_ = data_imports_fspot_fspot_data_importer_is_tag_hidden (self, _tmp7_, _tmp8_);
#line 554 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_result_ = _tmp9_;
#line 5174 "FSpotImporter.c"
		}
#line 549 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (parent);
#line 5178 "FSpotImporter.c"
	}
#line 556 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _result_;
#line 556 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 5184 "FSpotImporter.c"
}


static gboolean data_imports_fspot_fspot_data_importer_is_tag_favorite (DataImportsFSpotFSpotDataImporter* self, DataImportsFSpotFSpotImportableTag* tag) {
	gboolean result = FALSE;
	gboolean _result_ = FALSE;
	DataImportsFSpotFSpotImportableTag* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
#line 559 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_DATA_IMPORTER (self), FALSE);
#line 559 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_return_val_if_fail (DATA_IMPORTS_FSPOT_IS_FSPOT_IMPORTABLE_TAG (tag), FALSE);
#line 560 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp0_ = tag;
#line 560 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp1_ = data_imports_fspot_fspot_importable_tag_get_stock_icon (_tmp0_);
#line 560 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp2_ = _tmp1_;
#line 560 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp3_ = g_strcmp0 (DATA_IMPORTS_FSPOT_DB_FSPOT_TAGS_TABLE_STOCK_ICON_FAV, _tmp2_) == 0;
#line 560 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_g_free0 (_tmp2_);
#line 560 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_result_ = _tmp3_;
#line 561 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	_tmp4_ = _result_;
#line 561 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	if (!_tmp4_) {
#line 5216 "FSpotImporter.c"
		DataImportsFSpotFSpotImportableTag* parent = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp5_ = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp6_ = NULL;
		DataImportsFSpotFSpotImportableTag* _tmp7_ = NULL;
#line 562 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp5_ = tag;
#line 562 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp6_ = data_imports_fspot_fspot_importable_tag_get_fspot_parent (_tmp5_);
#line 562 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		parent = _tmp6_;
#line 563 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_tmp7_ = parent;
#line 563 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		if (_tmp7_ == NULL) {
#line 564 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_result_ = FALSE;
#line 5233 "FSpotImporter.c"
		} else {
			DataImportsFSpotFSpotImportableTag* _tmp8_ = NULL;
			gboolean _tmp9_ = FALSE;
#line 566 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp8_ = parent;
#line 566 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_tmp9_ = data_imports_fspot_fspot_data_importer_is_tag_favorite (self, _tmp8_);
#line 566 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
			_result_ = _tmp9_;
#line 5243 "FSpotImporter.c"
		}
#line 561 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
		_g_object_unref0 (parent);
#line 5247 "FSpotImporter.c"
	}
#line 568 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	result = _result_;
#line 568 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	return result;
#line 5253 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_data_importer_class_init (DataImportsFSpotFSpotDataImporterClass * klass) {
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_data_importer_parent_class = g_type_class_peek_parent (klass);
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	g_type_class_add_private (klass, sizeof (DataImportsFSpotFSpotDataImporterPrivate));
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (klass)->finalize = data_imports_fspot_fspot_data_importer_finalize;
#line 5264 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_data_importer_spit_data_imports_data_importer_interface_init (SpitDataImportsDataImporterIface * iface) {
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	data_imports_fspot_fspot_data_importer_spit_data_imports_data_importer_parent_iface = g_type_interface_peek_parent (iface);
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->is_running = (gboolean (*)(SpitDataImportsDataImporter*)) data_imports_fspot_fspot_data_importer_real_is_running;
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->get_service = (SpitDataImportsService* (*)(SpitDataImportsDataImporter*)) data_imports_fspot_fspot_data_importer_real_get_service;
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->start = (void (*)(SpitDataImportsDataImporter*)) data_imports_fspot_fspot_data_importer_real_start;
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->stop = (void (*)(SpitDataImportsDataImporter*)) data_imports_fspot_fspot_data_importer_real_stop;
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->on_library_selected = (void (*)(SpitDataImportsDataImporter*, SpitDataImportsImportableLibrary*)) data_imports_fspot_fspot_data_importer_real_on_library_selected;
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	iface->on_file_selected = (void (*)(SpitDataImportsDataImporter*, GFile*)) data_imports_fspot_fspot_data_importer_real_on_file_selected;
#line 5283 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_data_importer_instance_init (DataImportsFSpotFSpotDataImporter * self) {
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv = DATA_IMPORTS_FSPOT_FSPOT_DATA_IMPORTER_GET_PRIVATE (self);
#line 322 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->host = NULL;
#line 323 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->service = NULL;
#line 324 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self->priv->running = FALSE;
#line 5296 "FSpotImporter.c"
}


static void data_imports_fspot_fspot_data_importer_finalize (GObject* obj) {
	DataImportsFSpotFSpotDataImporter * self;
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_FSPOT_TYPE_FSPOT_DATA_IMPORTER, DataImportsFSpotFSpotDataImporter);
#line 320 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/FSpotImporter.vala"
	G_OBJECT_CLASS (data_imports_fspot_fspot_data_importer_parent_class)->finalize (obj);
#line 5306 "FSpotImporter.c"
}


GType data_imports_fspot_fspot_data_importer_get_type (void) {
	static volatile gsize data_imports_fspot_fspot_data_importer_type_id__volatile = 0;
	if (g_once_init_enter (&data_imports_fspot_fspot_data_importer_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DataImportsFSpotFSpotDataImporterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_fspot_fspot_data_importer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsFSpotFSpotDataImporter), 0, (GInstanceInitFunc) data_imports_fspot_fspot_data_importer_instance_init, NULL };
		static const GInterfaceInfo spit_data_imports_data_importer_info = { (GInterfaceInitFunc) data_imports_fspot_fspot_data_importer_spit_data_imports_data_importer_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType data_imports_fspot_fspot_data_importer_type_id;
		data_imports_fspot_fspot_data_importer_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsFSpotFSpotDataImporter", &g_define_type_info, 0);
		g_type_add_interface_static (data_imports_fspot_fspot_data_importer_type_id, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, &spit_data_imports_data_importer_info);
		g_once_init_leave (&data_imports_fspot_fspot_data_importer_type_id__volatile, data_imports_fspot_fspot_data_importer_type_id);
	}
	return data_imports_fspot_fspot_data_importer_type_id__volatile;
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



