File indexing completed on 2023-09-24 08:19:50

0001 /* ============================================================
0002  *
0003  * This file is a part of KDE project
0004  *
0005  *
0006  * Date        : 2005-07-07
0007  * Description : a kipi plugin to export images to Flickr web service
0008  *
0009  * Copyright (C) 2005-2008 by Vardhman Jain <vardhman at gmail dot com>
0010  *
0011  * This program is free software; you can redistribute it
0012  * and/or modify it under the terms of the GNU General
0013  * Public License as published by the Free Software Foundation;
0014  * either version 2, or (at your option) any later version.
0015  *
0016  * This program is distributed in the hope that it will be useful,
0017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0019  * GNU General Public License for more details.
0020  *
0021  * ============================================================ */
0022 
0023 #ifndef FLICKRITEM_H
0024 #define FLICKRITEM_H
0025 
0026 // Qt includes
0027 
0028 #include <QStringList>
0029 #include <QString>
0030 
0031 // Local includes
0032 
0033 #include "flickrlist.h"
0034 
0035 namespace KIPIFlickrPlugin
0036 {
0037 
0038 class GPhoto
0039 {
0040 
0041 public:
0042 
0043     GPhoto()
0044     {
0045         is_public  = false;
0046         is_private = false;
0047         is_family  = false;
0048         ref_num    = -1;
0049     }
0050 
0051     bool        is_public;
0052     bool        is_private;
0053     bool        is_family;
0054 
0055     int         ref_num;
0056 
0057     QStringList tags;
0058     QString     title;
0059     QString     description;
0060 
0061 /*
0062     int         album_num;
0063     QString     caption;
0064     QString     thumbName;
0065     QString     albumURL;
0066 */
0067 };
0068 
0069 // -------------------------------------------------------------
0070 
0071 class FPhotoInfo
0072 {
0073 
0074 public:
0075 
0076     FPhotoInfo()
0077     {
0078         is_public    = false;
0079         is_family    = false;
0080         is_friend    = false;
0081         safety_level = FlickrList::SAFE;
0082         content_type = FlickrList::PHOTO;
0083         size         = 0;
0084     }
0085 
0086     bool                    is_public;
0087     bool                    is_friend;
0088     bool                    is_family;
0089 
0090     QString                 title;
0091     QString                 description;
0092     qlonglong               size;
0093     QStringList             tags;
0094 
0095     FlickrList::SafetyLevel safety_level;
0096     FlickrList::ContentType content_type;
0097 };
0098 
0099 // -------------------------------------------------------------
0100 
0101 class GAlbum
0102 {
0103 
0104 public:
0105 
0106     GAlbum()
0107     {
0108         ref_num        = -1;
0109         parent_ref_num = -1;
0110 
0111         add            = false;
0112         write          = false;
0113         del_item       = false;
0114         del_alb        = false;
0115         create_sub     = false;
0116     }
0117 
0118     bool    add;
0119     bool    write;
0120     bool    del_item;
0121     bool    del_alb;
0122     bool    create_sub;
0123 
0124     int     ref_num;
0125     int     parent_ref_num;
0126 
0127     QString name;
0128     QString parentName;
0129     QString title;
0130     QString summary;
0131     QString baseurl;
0132 };
0133 
0134 // -------------------------------------------------------------
0135 
0136 class FPhotoSet
0137 {
0138 
0139 public:
0140 
0141     FPhotoSet()
0142     {
0143         id = QStringLiteral("-1");
0144     }
0145 
0146     QString id;
0147     QString primary;    //="2483"
0148     QString secret;     //="abcdef"
0149     QString server;
0150     QString photos;
0151     QString title;
0152     QString description;
0153 };
0154 
0155 } // namespace KIPIFlickrPlugin
0156 
0157 #endif /* FLICKRITEM_H */