diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 14:35:32 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 14:35:32 +0200 |
commit | e230b6f78546827521107be23797048482c8b193 (patch) | |
tree | 948c1e77382c484819ea399bba4edcdc19cc6bf0 /plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala | |
parent | 211da5fc3048ca2b6ccee2166b0aaaade55cb84f (diff) | |
parent | 49120f48474fc8fdc2448c75d961bc238213cfac (diff) |
Update upstream source from tag 'upstream/0.28.2'
Update to upstream version '0.28.2'
with Debian dir 811236a8e9a1308bf427065dcb6270419ff4f965
Diffstat (limited to 'plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala')
-rw-r--r-- | plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala b/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala deleted file mode 100644 index afc67ec..0000000 --- a/plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala +++ /dev/null @@ -1,57 +0,0 @@ -/* 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. - */ - -namespace DataImports.FSpot.Db { - -/** - * The value object for the "photo_tags" table, representing a single database row. - */ -public class FSpotPhotoTagRow : Object { - public int64 photo_id; - public int64 tag_id; -} - -/** - * This class represents the F-Spot photo_tags table. - */ -public class FSpotPhotoTagsTable : FSpotDatabaseTable<FSpotPhotoTagRow> { - public const string TABLE_NAME = "Photo_Tags"; - - public FSpotPhotoTagsTable(Sqlite.Database db, FSpotDatabaseBehavior db_behavior) { - base(db); - set_behavior(db_behavior.get_photo_tags_behavior()); - } -} - -public class FSpotPhotoTagsV0Behavior : FSpotTableBehavior<FSpotPhotoTagRow>, Object { - private static FSpotPhotoTagsV0Behavior instance; - - private FSpotPhotoTagsV0Behavior() { - } - - public static FSpotPhotoTagsV0Behavior get_instance() { - if (instance == null) - instance = new FSpotPhotoTagsV0Behavior(); - return instance; - } - - public string get_table_name() { - return FSpotPhotoTagsTable.TABLE_NAME; - } - - public string[] list_columns() { - return { "photo_id", "tag_id" }; - } - - public void build_row(Sqlite.Statement stmt, out FSpotPhotoTagRow row, int offset = 0) { - row = new FSpotPhotoTagRow(); - row.photo_id = stmt.column_int64(offset + 0); - row.tag_id = stmt.column_int64(offset + 1); - } -} - -} - |