summaryrefslogtreecommitdiff
path: root/src/data_imports/DataImportJob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/data_imports/DataImportJob.c')
-rw-r--r--src/data_imports/DataImportJob.c1817
1 files changed, 0 insertions, 1817 deletions
diff --git a/src/data_imports/DataImportJob.c b/src/data_imports/DataImportJob.c
deleted file mode 100644
index edc0967..0000000
--- a/src/data_imports/DataImportJob.c
+++ /dev/null
@@ -1,1817 +0,0 @@
-/* DataImportJob.c generated by valac 0.40.4, the Vala compiler
- * generated from DataImportJob.vala, do not modify */
-
-/* Copyright 2016 Software Freedom Conservancy Inc.
- *
- * This software is licensed under the GNU LGPL (version 2.1 or later).
- * See the COPYING file in this distribution.
- */
-
-
-#include <glib.h>
-#include <glib-object.h>
-#include <stdlib.h>
-#include <string.h>
-#include <gio/gio.h>
-#include <time.h>
-#include "shotwell-plugin-dev-1.0.h"
-#include <gee.h>
-
-
-#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ())
-#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob))
-#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB))
-#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB))
-#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass))
-
-typedef struct _BatchImportJob BatchImportJob;
-typedef struct _BatchImportJobClass BatchImportJobClass;
-typedef struct _BatchImportJobPrivate BatchImportJobPrivate;
-
-#define TYPE_DUPLICATED_FILE (duplicated_file_get_type ())
-#define DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_FILE, DuplicatedFile))
-#define DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
-#define IS_DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_FILE))
-#define IS_DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_FILE))
-#define DUPLICATED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_FILE, DuplicatedFileClass))
-
-typedef struct _DuplicatedFile DuplicatedFile;
-typedef struct _DuplicatedFileClass DuplicatedFileClass;
-
-#define TYPE_DATA_OBJECT (data_object_get_type ())
-#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject))
-#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass))
-#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT))
-#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT))
-#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass))
-
-typedef struct _DataObject DataObject;
-typedef struct _DataObjectClass DataObjectClass;
-
-#define TYPE_DATA_SOURCE (data_source_get_type ())
-#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource))
-#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass))
-#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE))
-#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE))
-#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass))
-
-typedef struct _DataSource DataSource;
-typedef struct _DataSourceClass DataSourceClass;
-
-#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ())
-#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource))
-#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE))
-#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE))
-#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass))
-
-typedef struct _ThumbnailSource ThumbnailSource;
-typedef struct _ThumbnailSourceClass ThumbnailSourceClass;
-
-#define TYPE_MEDIA_SOURCE (media_source_get_type ())
-#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource))
-#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass))
-#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE))
-#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE))
-#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass))
-
-typedef struct _MediaSource MediaSource;
-typedef struct _MediaSourceClass MediaSourceClass;
-
-#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ())
-#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll))
-#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL))
-#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL))
-#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass))
-
-typedef struct _BatchImportRoll BatchImportRoll;
-typedef struct _BatchImportRollClass BatchImportRollClass;
-
-#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB (spit_data_imports_data_import_job_get_type ())
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass))
-
-typedef struct _SpitDataImportsDataImportJob SpitDataImportsDataImportJob;
-typedef struct _SpitDataImportsDataImportJobClass SpitDataImportsDataImportJobClass;
-typedef struct _SpitDataImportsDataImportJobPrivate SpitDataImportsDataImportJobPrivate;
-
-#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE (spit_data_imports_data_import_source_get_type ())
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
-#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE))
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass))
-
-typedef struct _SpitDataImportsDataImportSource SpitDataImportsDataImportSource;
-typedef struct _SpitDataImportsDataImportSourceClass SpitDataImportsDataImportSourceClass;
-
-#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ())
-#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex))
-#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX))
-#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX))
-#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass))
-
-typedef struct _HierarchicalTagIndex HierarchicalTagIndex;
-typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass;
-#define _spit_data_imports_data_import_source_unref0(var) ((var == NULL) ? NULL : (var = (spit_data_imports_data_import_source_unref (var), NULL)))
-#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
-#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL)))
-#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL)))
-#define _g_free0(var) (var = (g_free (var), NULL))
-
-#define TYPE_PHOTO_SOURCE (photo_source_get_type ())
-#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource))
-#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass))
-#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE))
-#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE))
-#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass))
-
-typedef struct _PhotoSource PhotoSource;
-typedef struct _PhotoSourceClass PhotoSourceClass;
-
-#define TYPE_PHOTO (photo_get_type ())
-#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo))
-#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass))
-#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO))
-#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO))
-#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass))
-
-typedef struct _Photo Photo;
-typedef struct _PhotoClass PhotoClass;
-
-#define TYPE_LIBRARY_PHOTO (library_photo_get_type ())
-#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto))
-#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass))
-#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO))
-#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO))
-#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass))
-
-typedef struct _LibraryPhoto LibraryPhoto;
-typedef struct _LibraryPhotoClass LibraryPhotoClass;
-
-#define TYPE_TAG (tag_get_type ())
-#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag))
-#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass))
-#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG))
-#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG))
-#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass))
-
-typedef struct _Tag Tag;
-typedef struct _TagClass TagClass;
-
-#define TYPE_DATA_COLLECTION (data_collection_get_type ())
-#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection))
-#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass))
-#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION))
-#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION))
-#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass))
-
-typedef struct _DataCollection DataCollection;
-typedef struct _DataCollectionClass DataCollectionClass;
-
-#define TYPE_SOURCE_COLLECTION (source_collection_get_type ())
-#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection))
-#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION))
-#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION))
-#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass))
-
-typedef struct _SourceCollection SourceCollection;
-typedef struct _SourceCollectionClass SourceCollectionClass;
-
-#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ())
-#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection))
-#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION))
-#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION))
-#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass))
-
-typedef struct _DatabaseSourceCollection DatabaseSourceCollection;
-typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass;
-
-#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ())
-#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection))
-#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION))
-#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass))
-
-typedef struct _ContainerSourceCollection ContainerSourceCollection;
-typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass;
-
-#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ())
-#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection))
-#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION))
-#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION))
-#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass))
-
-typedef struct _TagSourceCollection TagSourceCollection;
-typedef struct _TagSourceCollectionClass TagSourceCollectionClass;
-
-#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ())
-
-#define TYPE_VIEW_COLLECTION (view_collection_get_type ())
-#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection))
-#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION))
-#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION))
-#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass))
-
-typedef struct _ViewCollection ViewCollection;
-typedef struct _ViewCollectionClass ViewCollectionClass;
-typedef struct _BatchImportRollPrivate BatchImportRollPrivate;
-
-#define TYPE_IMPORT_ID (import_id_get_type ())
-typedef struct _ImportID ImportID;
-
-#define TYPE_RATING (rating_get_type ())
-
-#define TYPE_DATEABLE (dateable_get_type ())
-#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable))
-#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE))
-#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface))
-
-typedef struct _Dateable Dateable;
-typedef struct _DateableIface DateableIface;
-#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
-#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
-#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
-
-struct _BatchImportJob {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BatchImportJobPrivate * priv;
-};
-
-struct _BatchImportJobClass {
- GTypeClass parent_class;
- void (*finalize) (BatchImportJob *self);
- gchar* (*get_dest_identifier) (BatchImportJob* self);
- gchar* (*get_source_identifier) (BatchImportJob* self);
- gboolean (*is_directory) (BatchImportJob* self);
- gchar* (*get_basename) (BatchImportJob* self);
- gchar* (*get_path) (BatchImportJob* self);
- DuplicatedFile* (*get_duplicated_file) (BatchImportJob* self);
- GFile* (*get_associated_file) (BatchImportJob* self);
- void (*set_associated) (BatchImportJob* self, BatchImportJob* associated);
- gboolean (*determine_file_size) (BatchImportJob* self, guint64* filesize, GFile* * file_or_dir);
- gboolean (*prepare) (BatchImportJob* self, GFile* * file_to_import, gboolean* copy_to_library, GError** error);
- gboolean (*complete) (BatchImportJob* self, MediaSource* source, BatchImportRoll* import_roll, GError** error);
- time_t (*get_exposure_time_override) (BatchImportJob* self);
- gboolean (*recurse) (BatchImportJob* self);
-};
-
-struct _SpitDataImportsDataImportJob {
- BatchImportJob parent_instance;
- SpitDataImportsDataImportJobPrivate * priv;
-};
-
-struct _SpitDataImportsDataImportJobClass {
- BatchImportJobClass parent_class;
-};
-
-struct _SpitDataImportsDataImportJobPrivate {
- SpitDataImportsDataImportSource* import_source;
- GFile* src_file;
- guint64 filesize;
- time_t exposure_time;
- SpitDataImportsDataImportJob* associated;
- HierarchicalTagIndex* detected_htags;
-};
-
-typedef enum {
- PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0,
- PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1,
- PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3,
- PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4,
- PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5,
- PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE
-} PrepareInputTextOptions;
-
-struct _ImportID {
- gint64 id;
-};
-
-struct _BatchImportRoll {
- GTypeInstance parent_instance;
- volatile int ref_count;
- BatchImportRollPrivate * priv;
- ImportID import_id;
- ViewCollection* generated_events;
-};
-
-struct _BatchImportRollClass {
- GTypeClass parent_class;
- void (*finalize) (BatchImportRoll *self);
-};
-
-typedef enum {
- RATING_REJECTED = -1,
- RATING_UNRATED = 0,
- RATING_ONE = 1,
- RATING_TWO = 2,
- RATING_THREE = 3,
- RATING_FOUR = 4,
- RATING_FIVE = 5
-} Rating;
-
-struct _DateableIface {
- GTypeInterface parent_iface;
- void (*set_exposure_time) (Dateable* self, time_t target_time);
- time_t (*get_exposure_time) (Dateable* self);
-};
-
-
-static gpointer spit_data_imports_data_import_job_parent_class = NULL;
-extern TagSourceCollection* tag_global;
-
-gpointer batch_import_job_ref (gpointer instance);
-void batch_import_job_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_job (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_job (GValue* value,
- gpointer v_object);
-void value_take_batch_import_job (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_job (const GValue* value);
-GType batch_import_job_get_type (void) G_GNUC_CONST;
-GType duplicated_file_get_type (void) G_GNUC_CONST;
-GType data_object_get_type (void) G_GNUC_CONST;
-GType data_source_get_type (void) G_GNUC_CONST;
-GType thumbnail_source_get_type (void) G_GNUC_CONST;
-GType media_source_get_type (void) G_GNUC_CONST;
-gpointer batch_import_roll_ref (gpointer instance);
-void batch_import_roll_unref (gpointer instance);
-GParamSpec* param_spec_batch_import_roll (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_batch_import_roll (GValue* value,
- gpointer v_object);
-void value_take_batch_import_roll (GValue* value,
- gpointer v_object);
-gpointer value_get_batch_import_roll (const GValue* value);
-GType batch_import_roll_get_type (void) G_GNUC_CONST;
-GType spit_data_imports_data_import_job_get_type (void) G_GNUC_CONST;
-gpointer spit_data_imports_data_import_source_ref (gpointer instance);
-void spit_data_imports_data_import_source_unref (gpointer instance);
-GParamSpec* spit_data_imports_param_spec_data_import_source (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void spit_data_imports_value_set_data_import_source (GValue* value,
- gpointer v_object);
-void spit_data_imports_value_take_data_import_source (GValue* value,
- gpointer v_object);
-gpointer spit_data_imports_value_get_data_import_source (const GValue* value);
-GType spit_data_imports_data_import_source_get_type (void) G_GNUC_CONST;
-gpointer hierarchical_tag_index_ref (gpointer instance);
-void hierarchical_tag_index_unref (gpointer instance);
-GParamSpec* param_spec_hierarchical_tag_index (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-void value_take_hierarchical_tag_index (GValue* value,
- gpointer v_object);
-gpointer value_get_hierarchical_tag_index (const GValue* value);
-GType hierarchical_tag_index_get_type (void) G_GNUC_CONST;
-#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobPrivate))
-SpitDataImportsDataImportJob* spit_data_imports_data_import_job_new (SpitDataImportsDataImportSource* import_source);
-SpitDataImportsDataImportJob* spit_data_imports_data_import_job_construct (GType object_type,
- SpitDataImportsDataImportSource* import_source);
-BatchImportJob* batch_import_job_construct (GType object_type);
-GFile* spit_data_imports_data_import_source_get_file (SpitDataImportsDataImportSource* self);
-guint64 spit_data_imports_data_import_source_get_filesize (SpitDataImportsDataImportSource* self);
-time_t spit_data_imports_data_import_source_get_exposure_time (SpitDataImportsDataImportSource* self);
-static HierarchicalTagIndex* spit_data_imports_data_import_job_build_exclusion_index (SpitDataImportsDataImportJob* self,
- SpitDataImportsImportableTag** src_tags,
- int src_tags_length1);
-gchar* hierarchical_tag_utilities_join_path_components (gchar** path_components,
- int path_components_length1);
-gchar** tag_prep_tag_names (gchar** names,
- int names_length1,
- int* result_length1);
-static gchar** spit_data_imports_data_import_job_build_path_components (SpitDataImportsDataImportJob* self,
- SpitDataImportsImportableTag* tag,
- int* result_length1);
-#define TAG_PATH_SEPARATOR_STRING "/"
-GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path);
-HierarchicalTagIndex* hierarchical_tag_index_from_paths (GeeCollection* client_paths);
-time_t spit_data_imports_data_import_job_get_exposure_time (SpitDataImportsDataImportJob* self);
-static gchar* spit_data_imports_data_import_job_real_get_dest_identifier (BatchImportJob* base);
-gchar* spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self);
-static gchar* spit_data_imports_data_import_job_real_get_source_identifier (BatchImportJob* base);
-static gboolean spit_data_imports_data_import_job_real_is_directory (BatchImportJob* base);
-static gchar* spit_data_imports_data_import_job_real_get_basename (BatchImportJob* base);
-static gchar* spit_data_imports_data_import_job_real_get_path (BatchImportJob* base);
-static void spit_data_imports_data_import_job_real_set_associated (BatchImportJob* base,
- BatchImportJob* associated);
-static gboolean spit_data_imports_data_import_job_real_determine_file_size (BatchImportJob* base,
- guint64* filesize,
- GFile* * file);
-static gboolean spit_data_imports_data_import_job_real_prepare (BatchImportJob* base,
- GFile* * file_to_import,
- gboolean* copy_to_library,
- GError** error);
-SpitDataImportsImportableMediaItem* spit_data_imports_data_import_source_get_photo (SpitDataImportsDataImportSource* self);
-static gboolean spit_data_imports_data_import_job_real_complete (BatchImportJob* base,
- MediaSource* source,
- BatchImportRoll* import_roll,
- GError** error);
-GType photo_source_get_type (void) G_GNUC_CONST;
-GType photo_get_type (void) G_GNUC_CONST;
-GType library_photo_get_type (void) G_GNUC_CONST;
-GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self);
-GType tag_get_type (void) G_GNUC_CONST;
-Tag* tag_for_path (const gchar* name);
-GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path);
-gchar* hierarchical_tag_utilities_hierarchical_to_flat (const gchar* path);
-gpointer data_collection_ref (gpointer instance);
-void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
-void value_set_data_collection (GValue* value,
- gpointer v_object);
-void value_take_data_collection (GValue* value,
- gpointer v_object);
-gpointer value_get_data_collection (const GValue* value);
-GType data_collection_get_type (void) G_GNUC_CONST;
-GType source_collection_get_type (void) G_GNUC_CONST;
-GType database_source_collection_get_type (void) G_GNUC_CONST;
-GType container_source_collection_get_type (void) G_GNUC_CONST;
-GType tag_source_collection_get_type (void) G_GNUC_CONST;
-gboolean tag_source_collection_exists (TagSourceCollection* self,
- const gchar* name,
- gboolean treat_htags_as_root);
-void tag_promote (Tag* self);
-void tag_attach (Tag* self,
- MediaSource* source);
-GType prepare_input_text_options_get_type (void) G_GNUC_CONST;
-gchar* prepare_input_text (const gchar* text,
- PrepareInputTextOptions options,
- gint dest_length);
-GType view_collection_get_type (void) G_GNUC_CONST;
-void event_generate_single_event (MediaSource* media,
- ViewCollection* events_so_far,
- const gchar* event_name);
-GType import_id_get_type (void) G_GNUC_CONST;
-ImportID* import_id_dup (const ImportID* self);
-void import_id_free (ImportID* self);
-GType rating_get_type (void) G_GNUC_CONST;
-Rating rating_unserialize (gint value);
-void media_source_set_rating (MediaSource* self,
- Rating rating);
-void media_source_set_title (MediaSource* self,
- const gchar* title);
-GType dateable_get_type (void) G_GNUC_CONST;
-void dateable_set_exposure_time (Dateable* self,
- time_t target_time);
-void photo_set_import_id (Photo* self,
- ImportID* import_id);
-gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag);
-static void spit_data_imports_data_import_job_finalize (BatchImportJob * 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);
-
-
-static gpointer
-_spit_data_imports_data_import_source_ref0 (gpointer self)
-{
-#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return self ? spit_data_imports_data_import_source_ref (self) : NULL;
-#line 507 "DataImportJob.c"
-}
-
-
-SpitDataImportsDataImportJob*
-spit_data_imports_data_import_job_construct (GType object_type,
- SpitDataImportsDataImportSource* import_source)
-{
- SpitDataImportsDataImportJob* self = NULL;
- SpitDataImportsDataImportSource* _tmp0_;
- GFile* _tmp1_;
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (import_source), NULL);
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = (SpitDataImportsDataImportJob*) batch_import_job_construct (object_type);
-#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = _spit_data_imports_data_import_source_ref0 (import_source);
-#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _spit_data_imports_data_import_source_unref0 (self->priv->import_source);
-#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->import_source = _tmp0_;
-#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = spit_data_imports_data_import_source_get_file (import_source);
-#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (self->priv->src_file);
-#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->src_file = _tmp1_;
-#line 25 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->filesize = spit_data_imports_data_import_source_get_filesize (import_source);
-#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->exposure_time = spit_data_imports_data_import_source_get_exposure_time (import_source);
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return self;
-#line 540 "DataImportJob.c"
-}
-
-
-SpitDataImportsDataImportJob*
-spit_data_imports_data_import_job_new (SpitDataImportsDataImportSource* import_source)
-{
-#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return spit_data_imports_data_import_job_construct (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, import_source);
-#line 549 "DataImportJob.c"
-}
-
-
-static gpointer
-_g_object_ref0 (gpointer self)
-{
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return self ? g_object_ref (self) : NULL;
-#line 558 "DataImportJob.c"
-}
-
-
-static HierarchicalTagIndex*
-spit_data_imports_data_import_job_build_exclusion_index (SpitDataImportsDataImportJob* self,
- SpitDataImportsImportableTag** src_tags,
- int src_tags_length1)
-{
- HierarchicalTagIndex* result = NULL;
- GeeSet* detected_htags = NULL;
- GeeHashSet* _tmp0_;
- HierarchicalTagIndex* _tmp31_ = NULL;
- GeeSet* _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
-#line 29 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB (self), NULL);
-#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
-#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- detected_htags = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet);
-#line 580 "DataImportJob.c"
- {
- SpitDataImportsImportableTag** src_tag_collection = NULL;
- gint src_tag_collection_length1 = 0;
- gint _src_tag_collection_size_ = 0;
- gint src_tag_it = 0;
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tag_collection = src_tags;
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tag_collection_length1 = src_tags_length1;
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- for (src_tag_it = 0; src_tag_it < src_tags_length1; src_tag_it = src_tag_it + 1) {
-#line 592 "DataImportJob.c"
- SpitDataImportsImportableTag* _tmp1_;
- SpitDataImportsImportableTag* src_tag = NULL;
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = _g_object_ref0 (src_tag_collection[src_tag_it]);
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tag = _tmp1_;
-#line 599 "DataImportJob.c"
- {
- gchar* prepped = NULL;
- SpitDataImportsImportableTag* _tmp2_;
- gint _tmp3_;
- gchar** _tmp4_;
- gchar** _tmp5_;
- gint _tmp5__length1;
- gint _tmp6_;
- gchar** _tmp7_;
- gchar** _tmp8_;
- gint _tmp8__length1;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gboolean _tmp11_ = FALSE;
- const gchar* _tmp12_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp2_ = src_tag;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp4_ = spit_data_imports_data_import_job_build_path_components (self, _tmp2_, &_tmp3_);
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp5_ = _tmp4_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp5__length1 = _tmp3_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp7_ = tag_prep_tag_names (_tmp5_, _tmp3_, &_tmp6_);
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp8_ = _tmp7_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp8__length1 = _tmp6_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp9_ = hierarchical_tag_utilities_join_path_components (_tmp8_, _tmp6_);
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp10_ = _tmp9_;
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL);
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp5_ = (_vala_array_free (_tmp5_, _tmp5__length1, (GDestroyNotify) g_free), NULL);
-#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- prepped = _tmp10_;
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp12_ = prepped;
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp12_ != NULL) {
-#line 643 "DataImportJob.c"
- const gchar* _tmp13_;
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp13_ = prepped;
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp11_ = g_str_has_prefix (_tmp13_, TAG_PATH_SEPARATOR_STRING);
-#line 649 "DataImportJob.c"
- } else {
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp11_ = FALSE;
-#line 653 "DataImportJob.c"
- }
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp11_) {
-#line 657 "DataImportJob.c"
- GeeSet* _tmp14_;
- const gchar* _tmp15_;
- GeeList* parents = NULL;
- const gchar* _tmp16_;
- GeeList* _tmp17_;
-#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp14_ = detected_htags;
-#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp15_ = prepped;
-#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), _tmp15_);
-#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp16_ = prepped;
-#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp17_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp16_);
-#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- parents = _tmp17_;
-#line 675 "DataImportJob.c"
- {
- GeeList* _parent_list = NULL;
- GeeList* _tmp18_;
- GeeList* _tmp19_;
- gint _parent_size = 0;
- GeeList* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- gint _parent_index = 0;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp18_ = parents;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp19_ = _g_object_ref0 (_tmp18_);
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _parent_list = _tmp19_;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp20_ = _parent_list;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp22_ = _tmp21_;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _parent_size = _tmp22_;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _parent_index = -1;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- while (TRUE) {
-#line 703 "DataImportJob.c"
- gint _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
- gchar* parent = NULL;
- GeeList* _tmp26_;
- gint _tmp27_;
- gpointer _tmp28_;
- GeeSet* _tmp29_;
- const gchar* _tmp30_;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp23_ = _parent_index;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _parent_index = _tmp23_ + 1;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp24_ = _parent_index;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp25_ = _parent_size;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (!(_tmp24_ < _tmp25_)) {
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- break;
-#line 725 "DataImportJob.c"
- }
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp26_ = _parent_list;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp27_ = _parent_index;
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp28_ = gee_list_get (_tmp26_, _tmp27_);
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- parent = (gchar*) _tmp28_;
-#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp29_ = detected_htags;
-#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp30_ = parent;
-#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection), _tmp30_);
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (parent);
-#line 743 "DataImportJob.c"
- }
-#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_parent_list);
-#line 747 "DataImportJob.c"
- }
-#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (parents);
-#line 751 "DataImportJob.c"
- }
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (prepped);
-#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (src_tag);
-#line 757 "DataImportJob.c"
- }
- }
- }
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp32_ = detected_htags;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp33_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp34_ = _tmp33_;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp34_ > 0) {
-#line 769 "DataImportJob.c"
- GeeSet* _tmp35_;
- HierarchicalTagIndex* _tmp36_;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp35_ = detected_htags;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp36_ = hierarchical_tag_index_from_paths (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _hierarchical_tag_index_unref0 (_tmp31_);
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp31_ = _tmp36_;
-#line 780 "DataImportJob.c"
- } else {
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _hierarchical_tag_index_unref0 (_tmp31_);
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp31_ = NULL;
-#line 786 "DataImportJob.c"
- }
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp31_;
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (detected_htags);
-#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 794 "DataImportJob.c"
-}
-
-
-time_t
-spit_data_imports_data_import_job_get_exposure_time (SpitDataImportsDataImportJob* self)
-{
- time_t result = 0;
- time_t _tmp0_;
-#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB (self), 0);
-#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->exposure_time;
-#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp0_;
-#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 811 "DataImportJob.c"
-}
-
-
-static gchar*
-spit_data_imports_data_import_job_real_get_dest_identifier (BatchImportJob* base)
-{
- SpitDataImportsDataImportJob * self;
- gchar* result = NULL;
- SpitDataImportsDataImportSource* _tmp0_;
- gchar* _tmp1_;
-#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->import_source;
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = spit_data_imports_data_import_source_get_filename (_tmp0_);
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp1_;
-#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 832 "DataImportJob.c"
-}
-
-
-static gchar*
-spit_data_imports_data_import_job_real_get_source_identifier (BatchImportJob* base)
-{
- SpitDataImportsDataImportJob * self;
- gchar* result = NULL;
- SpitDataImportsDataImportSource* _tmp0_;
- gchar* _tmp1_;
-#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->import_source;
-#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = spit_data_imports_data_import_source_get_filename (_tmp0_);
-#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp1_;
-#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 853 "DataImportJob.c"
-}
-
-
-static gboolean
-spit_data_imports_data_import_job_real_is_directory (BatchImportJob* base)
-{
- SpitDataImportsDataImportJob * self;
- gboolean result = FALSE;
-#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = FALSE;
-#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 868 "DataImportJob.c"
-}
-
-
-static gchar*
-spit_data_imports_data_import_job_real_get_basename (BatchImportJob* base)
-{
- SpitDataImportsDataImportJob * self;
- gchar* result = NULL;
- GFile* _tmp0_;
- gchar* _tmp1_;
-#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->src_file;
-#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = g_file_get_basename (_tmp0_);
-#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp1_;
-#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 889 "DataImportJob.c"
-}
-
-
-static gchar*
-spit_data_imports_data_import_job_real_get_path (BatchImportJob* base)
-{
- SpitDataImportsDataImportJob * self;
- gchar* result = NULL;
- GFile* _tmp0_;
- GFile* _tmp1_;
- GFile* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
-#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->src_file;
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = g_file_get_parent (_tmp0_);
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp2_ = _tmp1_;
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp3_ = g_file_get_path (_tmp2_);
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp4_ = _tmp3_;
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_tmp2_);
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp4_;
-#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 921 "DataImportJob.c"
-}
-
-
-static gpointer
-_batch_import_job_ref0 (gpointer self)
-{
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return self ? batch_import_job_ref (self) : NULL;
-#line 930 "DataImportJob.c"
-}
-
-
-static void
-spit_data_imports_data_import_job_real_set_associated (BatchImportJob* base,
- BatchImportJob* associated)
-{
- SpitDataImportsDataImportJob * self;
- SpitDataImportsDataImportJob* _tmp0_;
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_if_fail (IS_BATCH_IMPORT_JOB (associated));
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (associated, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB) ? ((SpitDataImportsDataImportJob*) associated) : NULL);
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _batch_import_job_unref0 (self->priv->associated);
-#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->associated = _tmp0_;
-#line 950 "DataImportJob.c"
-}
-
-
-static gboolean
-spit_data_imports_data_import_job_real_determine_file_size (BatchImportJob* base,
- guint64* filesize,
- GFile* * file)
-{
- SpitDataImportsDataImportJob * self;
- guint64 _vala_filesize = 0ULL;
- GFile* _vala_file = NULL;
- gboolean result = FALSE;
- guint64 _tmp0_;
-#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_vala_file);
-#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _vala_file = NULL;
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->filesize;
-#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _vala_filesize = _tmp0_;
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = TRUE;
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (filesize) {
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- *filesize = _vala_filesize;
-#line 980 "DataImportJob.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (file) {
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- *file = _vala_file;
-#line 986 "DataImportJob.c"
- } else {
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_vala_file);
-#line 990 "DataImportJob.c"
- }
-#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 994 "DataImportJob.c"
-}
-
-
-static gboolean
-spit_data_imports_data_import_job_real_prepare (BatchImportJob* base,
- GFile* * file_to_import,
- gboolean* copy_to_library,
- GError** error)
-{
- SpitDataImportsDataImportJob * self;
- GFile* _vala_file_to_import = NULL;
- gboolean _vala_copy_to_library = FALSE;
- gboolean result = FALSE;
- GFile* _tmp0_;
- GFile* _tmp1_;
- SpitDataImportsDataImportSource* _tmp2_;
- SpitDataImportsImportableMediaItem* _tmp3_;
- SpitDataImportsImportableMediaItem* _tmp4_;
- gint _tmp5_;
- SpitDataImportsImportableTag** _tmp6_;
- SpitDataImportsImportableTag** _tmp7_;
- gint _tmp7__length1;
- HierarchicalTagIndex* _tmp8_;
-#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = self->priv->src_file;
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_vala_file_to_import);
-#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _vala_file_to_import = _tmp1_;
-#line 88 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _vala_copy_to_library = FALSE;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp2_ = self->priv->import_source;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp3_ = spit_data_imports_data_import_source_get_photo (_tmp2_);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp4_ = _tmp3_;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp6_ = spit_data_imports_importable_media_item_get_tags (_tmp4_, &_tmp5_);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp7_ = _tmp6_;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp7__length1 = _tmp5_;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp8_ = spit_data_imports_data_import_job_build_exclusion_index (self, _tmp7_, _tmp5_);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _hierarchical_tag_index_unref0 (self->priv->detected_htags);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->detected_htags = _tmp8_;
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_object_unref), NULL);
-#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_tmp4_);
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = TRUE;
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (file_to_import) {
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- *file_to_import = _vala_file_to_import;
-#line 1058 "DataImportJob.c"
- } else {
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_vala_file_to_import);
-#line 1062 "DataImportJob.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (copy_to_library) {
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- *copy_to_library = _vala_copy_to_library;
-#line 1068 "DataImportJob.c"
- }
-#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 1072 "DataImportJob.c"
-}
-
-
-static gboolean
-spit_data_imports_data_import_job_real_complete (BatchImportJob* base,
- MediaSource* source,
- BatchImportRoll* import_roll,
- GError** error)
-{
- SpitDataImportsDataImportJob * self;
- gboolean result = FALSE;
- LibraryPhoto* photo = NULL;
- LibraryPhoto* _tmp0_;
- LibraryPhoto* _tmp1_;
- SpitDataImportsImportableMediaItem* src_photo = NULL;
- SpitDataImportsDataImportSource* _tmp2_;
- SpitDataImportsImportableMediaItem* _tmp3_;
- HierarchicalTagIndex* _tmp4_;
- SpitDataImportsImportableTag** src_tags = NULL;
- SpitDataImportsImportableMediaItem* _tmp15_;
- gint _tmp16_;
- SpitDataImportsImportableTag** _tmp17_;
- gint src_tags_length1;
- gint _src_tags_size_;
- SpitDataImportsImportableTag** _tmp18_;
- gint _tmp18__length1;
- SpitDataImportsImportableEvent* src_event = NULL;
- SpitDataImportsImportableMediaItem* _tmp57_;
- SpitDataImportsImportableEvent* _tmp58_;
- SpitDataImportsImportableEvent* _tmp59_;
- Rating dst_rating = 0;
- SpitDataImportsImportableRating* src_rating = NULL;
- SpitDataImportsImportableMediaItem* _tmp69_;
- SpitDataImportsImportableRating* _tmp70_;
- SpitDataImportsImportableRating* _tmp71_;
- LibraryPhoto* _tmp74_;
- Rating _tmp75_;
- gchar* title = NULL;
- SpitDataImportsImportableMediaItem* _tmp76_;
- gchar* _tmp77_;
- const gchar* _tmp78_;
- time_t* date_time = NULL;
- SpitDataImportsImportableMediaItem* _tmp81_;
- time_t* _tmp82_;
- time_t* _tmp83_;
- LibraryPhoto* _tmp86_;
- ImportID _tmp87_;
-#line 95 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 95 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE);
-#line 95 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (IS_BATCH_IMPORT_ROLL (import_roll), FALSE);
-#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) source) : NULL);
-#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- photo = _tmp0_;
-#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = photo;
-#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp1_ == NULL) {
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = FALSE;
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (photo);
-#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 1140 "DataImportJob.c"
- }
-#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp2_ = self->priv->import_source;
-#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp3_ = spit_data_imports_data_import_source_get_photo (_tmp2_);
-#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_photo = _tmp3_;
-#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp4_ = self->priv->detected_htags;
-#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp4_ != NULL) {
-#line 1152 "DataImportJob.c"
- GeeCollection* paths = NULL;
- HierarchicalTagIndex* _tmp5_;
- GeeCollection* _tmp6_;
-#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp5_ = self->priv->detected_htags;
-#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp6_ = hierarchical_tag_index_get_all_paths (_tmp5_);
-#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- paths = _tmp6_;
-#line 1162 "DataImportJob.c"
- {
- GeeIterator* _path_it = NULL;
- GeeCollection* _tmp7_;
- GeeIterator* _tmp8_;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp7_ = paths;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable));
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _path_it = _tmp8_;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- while (TRUE) {
-#line 1175 "DataImportJob.c"
- GeeIterator* _tmp9_;
- gchar* path = NULL;
- GeeIterator* _tmp10_;
- gpointer _tmp11_;
- const gchar* _tmp12_;
- Tag* _tmp13_;
- Tag* _tmp14_;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp9_ = _path_it;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (!gee_iterator_next (_tmp9_)) {
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- break;
-#line 1189 "DataImportJob.c"
- }
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp10_ = _path_it;
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp11_ = gee_iterator_get (_tmp10_);
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- path = (gchar*) _tmp11_;
-#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp12_ = path;
-#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp13_ = tag_for_path (_tmp12_);
-#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp14_ = _tmp13_;
-#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_tmp14_);
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (path);
-#line 1207 "DataImportJob.c"
- }
-#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_path_it);
-#line 1211 "DataImportJob.c"
- }
-#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (paths);
-#line 1215 "DataImportJob.c"
- }
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp15_ = src_photo;
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp17_ = spit_data_imports_importable_media_item_get_tags (_tmp15_, &_tmp16_);
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tags = _tmp17_;
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tags_length1 = _tmp16_;
-#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _src_tags_size_ = src_tags_length1;
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp18_ = src_tags;
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp18__length1 = src_tags_length1;
-#line 1231 "DataImportJob.c"
- {
- SpitDataImportsImportableTag** src_tag_collection = NULL;
- gint src_tag_collection_length1 = 0;
- gint _src_tag_collection_size_ = 0;
- gint src_tag_it = 0;
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tag_collection = _tmp18_;
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tag_collection_length1 = _tmp18__length1;
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- for (src_tag_it = 0; src_tag_it < _tmp18__length1; src_tag_it = src_tag_it + 1) {
-#line 1243 "DataImportJob.c"
- SpitDataImportsImportableTag* _tmp19_;
- SpitDataImportsImportableTag* src_tag = NULL;
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp19_ = _g_object_ref0 (src_tag_collection[src_tag_it]);
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tag = _tmp19_;
-#line 1250 "DataImportJob.c"
- {
- gchar* prepped = NULL;
- SpitDataImportsImportableTag* _tmp20_;
- gint _tmp21_;
- gchar** _tmp22_;
- gchar** _tmp23_;
- gint _tmp23__length1;
- gint _tmp24_;
- gchar** _tmp25_;
- gchar** _tmp26_;
- gint _tmp26__length1;
- gchar* _tmp27_;
- gchar* _tmp28_;
- const gchar* _tmp29_;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp20_ = src_tag;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp22_ = spit_data_imports_data_import_job_build_path_components (self, _tmp20_, &_tmp21_);
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp23_ = _tmp22_;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp23__length1 = _tmp21_;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp25_ = tag_prep_tag_names (_tmp23_, _tmp21_, &_tmp24_);
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp26_ = _tmp25_;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp26__length1 = _tmp24_;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp27_ = hierarchical_tag_utilities_join_path_components (_tmp26_, _tmp24_);
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp28_ = _tmp27_;
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp26_ = (_vala_array_free (_tmp26_, _tmp26__length1, (GDestroyNotify) g_free), NULL);
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp23_ = (_vala_array_free (_tmp23_, _tmp23__length1, (GDestroyNotify) g_free), NULL);
-#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- prepped = _tmp28_;
-#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp29_ = prepped;
-#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp29_ != NULL) {
-#line 1293 "DataImportJob.c"
- const gchar* _tmp30_;
- GeeList* _tmp31_;
- GeeList* _tmp32_;
- gint _tmp33_;
- gint _tmp34_;
- gboolean _tmp35_;
- const gchar* _tmp53_;
- Tag* _tmp54_;
- Tag* _tmp55_;
- LibraryPhoto* _tmp56_;
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp30_ = prepped;
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp31_ = hierarchical_tag_utilities_enumerate_path_components (_tmp30_);
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp32_ = _tmp31_;
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp33_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp34_ = _tmp33_;
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp35_ = _tmp34_ == 1;
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_tmp32_);
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp35_) {
-#line 1320 "DataImportJob.c"
- const gchar* _tmp36_;
-#line 119 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp36_ = prepped;
-#line 119 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (g_str_has_prefix (_tmp36_, TAG_PATH_SEPARATOR_STRING)) {
-#line 1326 "DataImportJob.c"
- const gchar* _tmp37_;
- gchar* _tmp38_;
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp37_ = prepped;
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp38_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp37_);
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (prepped);
-#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- prepped = _tmp38_;
-#line 1337 "DataImportJob.c"
- }
- } else {
- GeeList* parents = NULL;
- const gchar* _tmp39_;
- GeeList* _tmp40_;
- GeeList* _tmp41_;
- gint _tmp42_;
- gint _tmp43_;
- gchar* top_level_parent = NULL;
- GeeList* _tmp44_;
- gpointer _tmp45_;
- gchar* flat_top_level_parent = NULL;
- const gchar* _tmp46_;
- gchar* _tmp47_;
- TagSourceCollection* _tmp48_;
- const gchar* _tmp49_;
-#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp39_ = prepped;
-#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp40_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp39_);
-#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- parents = _tmp40_;
-#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp41_ = parents;
-#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp42_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_COLLECTION, GeeCollection));
-#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp43_ = _tmp42_;
-#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _vala_assert (_tmp43_ > 0, "parents.size > 0");
-#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp44_ = parents;
-#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp45_ = gee_list_get (_tmp44_, 0);
-#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- top_level_parent = (gchar*) _tmp45_;
-#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp46_ = top_level_parent;
-#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp47_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp46_);
-#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- flat_top_level_parent = _tmp47_;
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp48_ = tag_global;
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp49_ = flat_top_level_parent;
-#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (tag_source_collection_exists (_tmp48_, _tmp49_, FALSE)) {
-#line 1386 "DataImportJob.c"
- const gchar* _tmp50_;
- Tag* _tmp51_;
- Tag* _tmp52_;
-#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp50_ = flat_top_level_parent;
-#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp51_ = tag_for_path (_tmp50_);
-#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp52_ = _tmp51_;
-#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- tag_promote (_tmp52_);
-#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_tmp52_);
-#line 1400 "DataImportJob.c"
- }
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (flat_top_level_parent);
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (top_level_parent);
-#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (parents);
-#line 1408 "DataImportJob.c"
- }
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp53_ = prepped;
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp54_ = tag_for_path (_tmp53_);
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp55_ = _tmp54_;
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp56_ = photo;
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- tag_attach (_tmp55_, G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_MEDIA_SOURCE, MediaSource));
-#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (_tmp55_);
-#line 1422 "DataImportJob.c"
- }
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (prepped);
-#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (src_tag);
-#line 1428 "DataImportJob.c"
- }
- }
- }
-#line 139 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp57_ = src_photo;
-#line 139 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp58_ = spit_data_imports_importable_media_item_get_event (_tmp57_);
-#line 139 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_event = _tmp58_;
-#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp59_ = src_event;
-#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp59_ != NULL) {
-#line 1442 "DataImportJob.c"
- gchar* prepped = NULL;
- SpitDataImportsImportableEvent* _tmp60_;
- gchar* _tmp61_;
- gchar* _tmp62_;
- gchar* _tmp63_;
- gchar* _tmp64_;
- const gchar* _tmp65_;
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp60_ = src_event;
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp61_ = spit_data_imports_importable_event_get_name (_tmp60_);
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp62_ = _tmp61_;
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp63_ = prepare_input_text (_tmp62_, PREPARE_INPUT_TEXT_OPTIONS_DEFAULT, -1);
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp64_ = _tmp63_;
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (_tmp62_);
-#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- prepped = _tmp64_;
-#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp65_ = prepped;
-#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp65_ != NULL) {
-#line 1468 "DataImportJob.c"
- LibraryPhoto* _tmp66_;
- ViewCollection* _tmp67_;
- const gchar* _tmp68_;
-#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp66_ = photo;
-#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp67_ = import_roll->generated_events;
-#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp68_ = prepped;
-#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, TYPE_MEDIA_SOURCE, MediaSource), _tmp67_, _tmp68_);
-#line 1480 "DataImportJob.c"
- }
-#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (prepped);
-#line 1484 "DataImportJob.c"
- }
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp69_ = src_photo;
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp70_ = spit_data_imports_importable_media_item_get_rating (_tmp69_);
-#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_rating = _tmp70_;
-#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp71_ = src_rating;
-#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (spit_data_imports_importable_rating_is_rejected (_tmp71_)) {
-#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- dst_rating = RATING_REJECTED;
-#line 1498 "DataImportJob.c"
- } else {
- SpitDataImportsImportableRating* _tmp72_;
-#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp72_ = src_rating;
-#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (spit_data_imports_importable_rating_is_unrated (_tmp72_)) {
-#line 152 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- dst_rating = RATING_UNRATED;
-#line 1507 "DataImportJob.c"
- } else {
- SpitDataImportsImportableRating* _tmp73_;
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp73_ = src_rating;
-#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- dst_rating = rating_unserialize (spit_data_imports_importable_rating_get_value (_tmp73_));
-#line 1514 "DataImportJob.c"
- }
- }
-#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp74_ = photo;
-#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp75_ = dst_rating;
-#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, TYPE_MEDIA_SOURCE, MediaSource), _tmp75_);
-#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp76_ = src_photo;
-#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp77_ = spit_data_imports_importable_media_item_get_title (_tmp76_);
-#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- title = _tmp77_;
-#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp78_ = title;
-#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp78_ != NULL) {
-#line 1533 "DataImportJob.c"
- LibraryPhoto* _tmp79_;
- const gchar* _tmp80_;
-#line 159 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp79_ = photo;
-#line 159 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp80_ = title;
-#line 159 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, TYPE_MEDIA_SOURCE, MediaSource), _tmp80_);
-#line 1542 "DataImportJob.c"
- }
-#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp81_ = src_photo;
-#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp82_ = spit_data_imports_importable_media_item_get_exposure_time (_tmp81_);
-#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- date_time = _tmp82_;
-#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp83_ = date_time;
-#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (_tmp83_ != NULL) {
-#line 1554 "DataImportJob.c"
- LibraryPhoto* _tmp84_;
- time_t* _tmp85_;
-#line 163 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp84_ = photo;
-#line 163 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp85_ = date_time;
-#line 163 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- dateable_set_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, TYPE_DATEABLE, Dateable), *_tmp85_);
-#line 1563 "DataImportJob.c"
- }
-#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp86_ = photo;
-#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp87_ = import_roll->import_id;
-#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- photo_set_import_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, TYPE_PHOTO, Photo), &_tmp87_);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = TRUE;
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (date_time);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (title);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (src_rating);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (src_event);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- src_tags = (_vala_array_free (src_tags, src_tags_length1, (GDestroyNotify) g_object_unref), NULL);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (src_photo);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (photo);
-#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 1589 "DataImportJob.c"
-}
-
-
-static gchar**
-spit_data_imports_data_import_job_build_path_components (SpitDataImportsDataImportJob* self,
- SpitDataImportsImportableTag* tag,
- int* result_length1)
-{
- gchar** result = NULL;
- GeeList* components = NULL;
- GeeLinkedList* _tmp0_;
- GeeList* _tmp12_;
- gint _tmp13_;
- gpointer* _tmp14_;
- gchar** _tmp15_;
- gint _tmp15__length1;
-#line 170 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB (self), NULL);
-#line 170 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG (tag), NULL);
-#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp0_ = gee_linked_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL);
-#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- components = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList);
-#line 1614 "DataImportJob.c"
- {
- SpitDataImportsImportableTag* current_tag = NULL;
- SpitDataImportsImportableTag* _tmp1_;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp1_ = _g_object_ref0 (tag);
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- current_tag = _tmp1_;
-#line 1622 "DataImportJob.c"
- {
- gboolean _tmp2_ = FALSE;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp2_ = TRUE;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- while (TRUE) {
-#line 1629 "DataImportJob.c"
- SpitDataImportsImportableTag* _tmp5_;
- GeeList* _tmp6_;
- SpitDataImportsImportableTag* _tmp7_;
- gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (!_tmp2_) {
-#line 1639 "DataImportJob.c"
- SpitDataImportsImportableTag* _tmp3_;
- SpitDataImportsImportableTag* _tmp4_;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp3_ = current_tag;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp4_ = spit_data_imports_importable_tag_get_parent (_tmp3_);
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (current_tag);
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- current_tag = _tmp4_;
-#line 1650 "DataImportJob.c"
- }
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp2_ = FALSE;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp5_ = current_tag;
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (!(_tmp5_ != NULL)) {
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- break;
-#line 1660 "DataImportJob.c"
- }
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp6_ = components;
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp7_ = current_tag;
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp8_ = spit_data_imports_importable_tag_get_name (_tmp7_);
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp9_ = _tmp8_;
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp10_ = hierarchical_tag_utilities_make_flat_tag_safe (_tmp9_);
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp11_ = _tmp10_;
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- gee_list_insert (_tmp6_, 0, _tmp11_);
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (_tmp11_);
-#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_free0 (_tmp9_);
-#line 1680 "DataImportJob.c"
- }
- }
-#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (current_tag);
-#line 1685 "DataImportJob.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp12_ = components;
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp14_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp13_);
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp15_ = _tmp14_;
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _tmp15__length1 = _tmp13_;
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- if (result_length1) {
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- *result_length1 = _tmp15__length1;
-#line 1699 "DataImportJob.c"
- }
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- result = _tmp15_;
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (components);
-#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- return result;
-#line 1707 "DataImportJob.c"
-}
-
-
-static void
-spit_data_imports_data_import_job_class_init (SpitDataImportsDataImportJobClass * klass)
-{
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- spit_data_imports_data_import_job_parent_class = g_type_class_peek_parent (klass);
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->finalize = spit_data_imports_data_import_job_finalize;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- g_type_class_add_private (klass, sizeof (SpitDataImportsDataImportJobPrivate));
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->get_dest_identifier = (gchar* (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_get_dest_identifier;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->get_source_identifier = (gchar* (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_get_source_identifier;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->is_directory = (gboolean (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_is_directory;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->get_basename = (gchar* (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_get_basename;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->get_path = (gchar* (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_get_path;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->set_associated = (void (*) (BatchImportJob *, BatchImportJob*)) spit_data_imports_data_import_job_real_set_associated;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->determine_file_size = (gboolean (*) (BatchImportJob *, guint64*, GFile* *)) spit_data_imports_data_import_job_real_determine_file_size;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->prepare = (gboolean (*) (BatchImportJob *, GFile* *, gboolean*, GError**)) spit_data_imports_data_import_job_real_prepare;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- ((BatchImportJobClass *) klass)->complete = (gboolean (*) (BatchImportJob *, MediaSource*, BatchImportRoll*, GError**)) spit_data_imports_data_import_job_real_complete;
-#line 1738 "DataImportJob.c"
-}
-
-
-static void
-spit_data_imports_data_import_job_instance_init (SpitDataImportsDataImportJob * self)
-{
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv = SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_PRIVATE (self);
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->associated = NULL;
-#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self->priv->detected_htags = NULL;
-#line 1751 "DataImportJob.c"
-}
-
-
-static void
-spit_data_imports_data_import_job_finalize (BatchImportJob * obj)
-{
- SpitDataImportsDataImportJob * self;
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob);
-#line 13 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _spit_data_imports_data_import_source_unref0 (self->priv->import_source);
-#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _g_object_unref0 (self->priv->src_file);
-#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _batch_import_job_unref0 (self->priv->associated);
-#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- _hierarchical_tag_index_unref0 (self->priv->detected_htags);
-#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala"
- BATCH_IMPORT_JOB_CLASS (spit_data_imports_data_import_job_parent_class)->finalize (obj);
-#line 1771 "DataImportJob.c"
-}
-
-
-/**
- * A specialized import job implementation for alien databases.
- */
-GType
-spit_data_imports_data_import_job_get_type (void)
-{
- static volatile gsize spit_data_imports_data_import_job_type_id__volatile = 0;
- if (g_once_init_enter (&spit_data_imports_data_import_job_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDataImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_data_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsDataImportJob), 0, (GInstanceInitFunc) spit_data_imports_data_import_job_instance_init, NULL };
- GType spit_data_imports_data_import_job_type_id;
- spit_data_imports_data_import_job_type_id = g_type_register_static (TYPE_BATCH_IMPORT_JOB, "SpitDataImportsDataImportJob", &g_define_type_info, 0);
- g_once_init_leave (&spit_data_imports_data_import_job_type_id__volatile, spit_data_imports_data_import_job_type_id);
- }
- return spit_data_imports_data_import_job_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);
-}
-
-
-