File indexing completed on 2025-01-05 03:53:29
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2013-11-18 0007 * Description : a tool to export items to Google web services 0008 * 0009 * SPDX-FileCopyrightText: 2013 by Pankaj Kumar <me at panks dot me> 0010 * SPDX-FileCopyrightText: 2013-2018 by Caulier Gilles <caulier dot gilles at gmail dot com> 0011 * SPDX-FileCopyrightText: 2018 by Thanh Trung Dinh <dinhthanhtrung1996 at gmail dot com> 0012 * 0013 * SPDX-License-Identifier: GPL-2.0-or-later 0014 * 0015 * ============================================================ */ 0016 0017 #ifndef DIGIKAM_GS_ITEM_H 0018 #define DIGIKAM_GS_ITEM_H 0019 0020 // Qt includes 0021 0022 #include <QUrl> 0023 #include <QString> 0024 0025 namespace DigikamGenericGoogleServicesPlugin 0026 { 0027 0028 enum GoogleService 0029 { 0030 GDrive = 1, 0031 GPhotoExport, 0032 GPhotoImport 0033 }; 0034 0035 // ----------------------------------------------------------- 0036 0037 class GSPhoto 0038 { 0039 public: 0040 0041 GSPhoto() 0042 : id (QLatin1String("-1")), 0043 gpsLon (QLatin1String("")), 0044 gpsLat (QLatin1String("")), 0045 canComment (true) 0046 { 0047 } 0048 0049 public: 0050 0051 QString id; 0052 QString title; 0053 QString description; 0054 0055 QString timestamp; 0056 QString creationTime; 0057 0058 QString location; 0059 QString gpsLon; 0060 QString gpsLat; 0061 0062 bool canComment; 0063 QStringList tags; 0064 0065 QString width; 0066 QString height; 0067 0068 QString mimeType; 0069 QString baseUrl; 0070 QUrl originalURL; 0071 QUrl thumbURL; 0072 QUrl editUrl; 0073 }; 0074 0075 // ----------------------------------------------------------- 0076 0077 class GSFolder 0078 { 0079 public: 0080 0081 GSFolder() 0082 : id (QLatin1String("-1")), 0083 title (QLatin1String("<auto-create>")), 0084 canComment (true), 0085 isWriteable (true) 0086 { 0087 } 0088 0089 public: 0090 0091 QString id; 0092 QString title; 0093 QString timestamp; 0094 QString description; 0095 QString location; 0096 bool canComment; 0097 bool isWriteable; 0098 QStringList tags; 0099 QString url; 0100 }; 0101 0102 } // namespace DigikamGenericGoogleServicesPlugin 0103 0104 #endif // DIGIKAM_GS_ITEM_H