File indexing completed on 2025-01-19 03:52:57

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2005-07-07
0007  * Description : a tool to export images to Flickr web service
0008  *
0009  * SPDX-FileCopyrightText: 2005-2008 by Vardhman Jain <vardhman at gmail dot com>
0010  * SPDX-FileCopyrightText: 2013-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_FLICKR_ITEM_H
0017 #define DIGIKAM_FLICKR_ITEM_H
0018 
0019 // Qt includes
0020 
0021 #include <QStringList>
0022 #include <QString>
0023 
0024 // Local includes
0025 
0026 #include "flickrlist.h"
0027 
0028 namespace DigikamGenericFlickrPlugin
0029 {
0030 
0031 class FPhotoInfo
0032 {
0033 
0034 public:
0035 
0036     FPhotoInfo()
0037       : is_public   (false),
0038         is_friend   (false),
0039         is_family   (false),
0040         size        (0),
0041         safety_level(FlickrList::SAFE),
0042         content_type(FlickrList::PHOTO)
0043     {
0044     }
0045 
0046     bool                    is_public;
0047     bool                    is_friend;
0048     bool                    is_family;
0049 
0050     QString                 title;
0051     QString                 description;
0052     qlonglong               size;
0053     QStringList             tags;
0054 
0055     FlickrList::SafetyLevel safety_level;
0056     FlickrList::ContentType content_type;
0057 };
0058 
0059 // -------------------------------------------------------------
0060 
0061 class FPhotoSet
0062 {
0063 
0064 public:
0065 
0066     FPhotoSet()
0067       : id(QLatin1String("-1"))
0068     {
0069     }
0070 
0071     QString id;
0072     QString primary;    ///< "2483"
0073     QString secret;     ///< "abcdef"
0074     QString server;
0075     QString photos;
0076     QString title;
0077     QString description;
0078 };
0079 
0080 } // namespace DigikamGenericFlickrPlugin
0081 
0082 #endif // DIGIKAM_FLICKR_ITEM_H