File indexing completed on 2025-01-05 03:53:41

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2011-04-12
0007  * Description : A tool to export items to Rajce web service
0008  *
0009  * SPDX-FileCopyrightText: 2011      by Lukas Krejci <krejci.l at centrum dot cz>
0010  * SPDX-FileCopyrightText: 2011-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_RAJCE_ALBUM_H
0017 #define DIGIKAM_RAJCE_ALBUM_H
0018 
0019 // Qt includes
0020 
0021 #include <QDateTime>
0022 #include <QString>
0023 #include <QDebug>
0024 #include <QMetaType>
0025 
0026 namespace DigikamGenericRajcePlugin
0027 {
0028 
0029 struct RajceAlbum
0030 {
0031     RajceAlbum()
0032     {
0033         isHidden   = false;
0034         isSecure   = false;
0035         photoCount = 0;
0036         id         = 0;
0037     }
0038 
0039     bool      isHidden;
0040     bool      isSecure;
0041 
0042     unsigned  photoCount;
0043     unsigned  id;
0044 
0045     QString   name;
0046     QString   description;
0047     QString   url;
0048     QString   thumbUrl;
0049     QString   bestQualityThumbUrl;
0050 
0051     QDateTime createDate;
0052     QDateTime updateDate;
0053     QDateTime validFrom;
0054     QDateTime validTo;
0055 };
0056 
0057 } // namespace DigikamGenericRajcePlugin
0058 
0059 QTextStream& operator<<(QTextStream& str, const DigikamGenericRajcePlugin::RajceAlbum& a);
0060 QDebug operator<<(QDebug d, const DigikamGenericRajcePlugin::RajceAlbum& a);
0061 
0062 Q_DECLARE_METATYPE(DigikamGenericRajcePlugin::RajceAlbum)
0063 
0064 #endif // DIGIKAM_RAJCE_ALBUM_H