digiKam
gsitem.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2013-11-18
7  * Description : a tool to export items to Google web services
8  *
9  * Copyright (C) 2013 by Pankaj Kumar <me at panks dot me>
10  * Copyright (C) 2013-2018 by Caulier Gilles <caulier dot gilles at gmail dot com>
11  * Copyright (C) 2018 by Thanh Trung Dinh <dinhthanhtrung1996 at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_GS_ITEM_H
26 #define DIGIKAM_GS_ITEM_H
27 
28 // Qt includes
29 
30 #include <QUrl>
31 #include <QString>
32 
34 {
35 
37 {
38  GDrive = 1,
41 };
42 
43 // -----------------------------------------------------------
44 
45 class GSPhoto
46 {
47 public:
48 
50  : id (QLatin1String("-1")),
51  gpsLon (QLatin1String("")),
52  gpsLat (QLatin1String("")),
53  canComment (true)
54  {
55  }
56 
57 public:
58 
59  QString id;
60  QString title;
61  QString description;
62 
63  QString timestamp;
64  QString creationTime;
65 
66  QString location;
67  QString gpsLon;
68  QString gpsLat;
69 
70  bool canComment;
71  QStringList tags;
72 
73  QString width;
74  QString height;
75 
76  QString mimeType;
77  QString baseUrl;
79  QUrl thumbURL;
80  QUrl editUrl;
81 };
82 
83 // -----------------------------------------------------------
84 
85 class GSFolder
86 {
87 public:
88 
90  : id (QLatin1String("-1")),
91  title (QLatin1String("<auto-create>")),
92  canComment (true),
93  isWriteable (true)
94  {
95  }
96 
97 public:
98 
99  QString id;
100  QString title;
101  QString timestamp;
102  QString description;
103  QString location;
106  QStringList tags;
107  QString url;
108 };
109 
110 } // namespace DigikamGenericGoogleServicesPlugin
111 
112 #endif // DIGIKAM_GS_ITEM_H
QString title
Definition: gsitem.h:100
QString url
Definition: gsitem.h:107
QStringList tags
Definition: gsitem.h:106
QString id
Definition: gsitem.h:99
bool canComment
Definition: gsitem.h:104
QString timestamp
Definition: gsitem.h:101
QString location
Definition: gsitem.h:103
QString description
Definition: gsitem.h:102
bool isWriteable
Definition: gsitem.h:105
QString id
Definition: gsitem.h:59
QString width
Definition: gsitem.h:73
QUrl thumbURL
Definition: gsitem.h:79
QString gpsLon
Definition: gsitem.h:67
QString creationTime
Definition: gsitem.h:64
QString gpsLat
Definition: gsitem.h:68
bool canComment
Definition: gsitem.h:70
QStringList tags
Definition: gsitem.h:71
QString title
Definition: gsitem.h:60
QString baseUrl
Definition: gsitem.h:77
QString description
Definition: gsitem.h:61
QString mimeType
Definition: gsitem.h:76
QString location
Definition: gsitem.h:66
QString timestamp
Definition: gsitem.h:63
QUrl originalURL
Definition: gsitem.h:78
QUrl editUrl
Definition: gsitem.h:80
QString height
Definition: gsitem.h:74
Definition: gdmpform.cpp:46
GoogleService
Definition: gsitem.h:37
@ GPhotoExport
Definition: gsitem.h:39
@ GPhotoImport
Definition: gsitem.h:40
@ GDrive
Definition: gsitem.h:38