digiKam
Loading...
Searching...
No Matches
wsitem.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 : 2018-07-26
7 * Description : common items needed for web services
8 *
9 * SPDX-FileCopyrightText: 2018 by Thanh Trung Dinh <dinhthanhtrung1996 at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QString>
20#include <QStringList>
21
22// Local includes
23
24#include "digikam_export.h"
25
26namespace Digikam
27{
28
29class DIGIKAM_EXPORT WSAlbum
30{
31
32public:
33
34 WSAlbum() = default;
35
41 void setBaseAlbum(const WSAlbum& album)
42 {
43 id = album.id;
44 parentID = album.parentID;
45 isRoot = album.isRoot;
46 title = album.title;
47 description = album.description;
48 location = album.location;
49 url = album.url;
50 uploadable = album.uploadable;
51 }
52
53 QString id;
54 QString parentID;
55 bool isRoot = true;
56
57 QString title;
58 QString description;
59 QString location;
60 QString url;
61 bool uploadable = true;
62};
63
69class DIGIKAM_EXPORT AlbumSimplified
70{
71
72public:
73
74 AlbumSimplified() = default;
75
76 explicit AlbumSimplified(const QString& title)
77 : title(title)
78 {
79 }
80
81 explicit AlbumSimplified(const QString& title, bool uploadable)
82 : title (title),
83 uploadable(uploadable)
84 {
85 }
86
87public:
88
89 QString title;
90 QStringList childrenIDs;
91 bool uploadable = true;
92};
93
94} // namespace Digikam
Definition wsitem.h:70
AlbumSimplified(const QString &title)
Definition wsitem.h:76
QString title
Definition wsitem.h:89
QStringList childrenIDs
Definition wsitem.h:90
AlbumSimplified(const QString &title, bool uploadable)
Definition wsitem.h:81
Definition wsitem.h:30
QString title
Definition wsitem.h:57
WSAlbum()=default
void setBaseAlbum(const WSAlbum &album)
Definition wsitem.h:41
bool uploadable
Definition wsitem.h:61
QString description
Definition wsitem.h:58
QString parentID
Definition wsitem.h:54
QString location
Definition wsitem.h:59
QString url
Definition wsitem.h:60
bool isRoot
Definition wsitem.h:55
QString id
Definition wsitem.h:53
Definition datefolderview.cpp:34