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
33
namespace
DigikamGenericGoogleServicesPlugin
34
{
35
36
enum
GoogleService
37
{
38
GDrive
= 1,
39
GPhotoExport
,
40
GPhotoImport
41
};
42
43
// -----------------------------------------------------------
44
45
class
GSPhoto
46
{
47
public
:
48
49
GSPhoto
()
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
;
78
QUrl
originalURL
;
79
QUrl
thumbURL
;
80
QUrl
editUrl
;
81
};
82
83
// -----------------------------------------------------------
84
85
class
GSFolder
86
{
87
public
:
88
89
GSFolder
()
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
;
104
bool
canComment
;
105
bool
isWriteable
;
106
QStringList
tags
;
107
QString
url
;
108
};
109
110
}
// namespace DigikamGenericGoogleServicesPlugin
111
112
#endif
// DIGIKAM_GS_ITEM_H
DigikamGenericGoogleServicesPlugin::GSFolder
Definition:
gsitem.h:86
DigikamGenericGoogleServicesPlugin::GSFolder::GSFolder
GSFolder()
Definition:
gsitem.h:89
DigikamGenericGoogleServicesPlugin::GSFolder::title
QString title
Definition:
gsitem.h:100
DigikamGenericGoogleServicesPlugin::GSFolder::url
QString url
Definition:
gsitem.h:107
DigikamGenericGoogleServicesPlugin::GSFolder::tags
QStringList tags
Definition:
gsitem.h:106
DigikamGenericGoogleServicesPlugin::GSFolder::id
QString id
Definition:
gsitem.h:99
DigikamGenericGoogleServicesPlugin::GSFolder::canComment
bool canComment
Definition:
gsitem.h:104
DigikamGenericGoogleServicesPlugin::GSFolder::timestamp
QString timestamp
Definition:
gsitem.h:101
DigikamGenericGoogleServicesPlugin::GSFolder::location
QString location
Definition:
gsitem.h:103
DigikamGenericGoogleServicesPlugin::GSFolder::description
QString description
Definition:
gsitem.h:102
DigikamGenericGoogleServicesPlugin::GSFolder::isWriteable
bool isWriteable
Definition:
gsitem.h:105
DigikamGenericGoogleServicesPlugin::GSPhoto
Definition:
gsitem.h:46
DigikamGenericGoogleServicesPlugin::GSPhoto::id
QString id
Definition:
gsitem.h:59
DigikamGenericGoogleServicesPlugin::GSPhoto::width
QString width
Definition:
gsitem.h:73
DigikamGenericGoogleServicesPlugin::GSPhoto::thumbURL
QUrl thumbURL
Definition:
gsitem.h:79
DigikamGenericGoogleServicesPlugin::GSPhoto::gpsLon
QString gpsLon
Definition:
gsitem.h:67
DigikamGenericGoogleServicesPlugin::GSPhoto::creationTime
QString creationTime
Definition:
gsitem.h:64
DigikamGenericGoogleServicesPlugin::GSPhoto::gpsLat
QString gpsLat
Definition:
gsitem.h:68
DigikamGenericGoogleServicesPlugin::GSPhoto::canComment
bool canComment
Definition:
gsitem.h:70
DigikamGenericGoogleServicesPlugin::GSPhoto::tags
QStringList tags
Definition:
gsitem.h:71
DigikamGenericGoogleServicesPlugin::GSPhoto::title
QString title
Definition:
gsitem.h:60
DigikamGenericGoogleServicesPlugin::GSPhoto::baseUrl
QString baseUrl
Definition:
gsitem.h:77
DigikamGenericGoogleServicesPlugin::GSPhoto::description
QString description
Definition:
gsitem.h:61
DigikamGenericGoogleServicesPlugin::GSPhoto::GSPhoto
GSPhoto()
Definition:
gsitem.h:49
DigikamGenericGoogleServicesPlugin::GSPhoto::mimeType
QString mimeType
Definition:
gsitem.h:76
DigikamGenericGoogleServicesPlugin::GSPhoto::location
QString location
Definition:
gsitem.h:66
DigikamGenericGoogleServicesPlugin::GSPhoto::timestamp
QString timestamp
Definition:
gsitem.h:63
DigikamGenericGoogleServicesPlugin::GSPhoto::originalURL
QUrl originalURL
Definition:
gsitem.h:78
DigikamGenericGoogleServicesPlugin::GSPhoto::editUrl
QUrl editUrl
Definition:
gsitem.h:80
DigikamGenericGoogleServicesPlugin::GSPhoto::height
QString height
Definition:
gsitem.h:74
DigikamGenericGoogleServicesPlugin
Definition:
gdmpform.cpp:46
DigikamGenericGoogleServicesPlugin::GoogleService
GoogleService
Definition:
gsitem.h:37
DigikamGenericGoogleServicesPlugin::GPhotoExport
@ GPhotoExport
Definition:
gsitem.h:39
DigikamGenericGoogleServicesPlugin::GPhotoImport
@ GPhotoImport
Definition:
gsitem.h:40
DigikamGenericGoogleServicesPlugin::GDrive
@ GDrive
Definition:
gsitem.h:38
core
dplugins
generic
webservices
google
gsitem.h
Generated by
1.9.1