File indexing completed on 2023-10-01 08:07:20

0001 /* ============================================================
0002  *
0003  * This file is a part of KDE project
0004  *
0005  *
0006  * Date        : 2008-12-26
0007  * Description : a kipi plugin to export images to Facebook web service
0008  *
0009  * Copyright (C) 2008-2009 by Luka Renko <lure at kubuntu dot org>
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 FBITEM_H
0024 #define FBITEM_H
0025 
0026 // Qt includes
0027 #include <QString>
0028 
0029 namespace KIPIFacebookPlugin
0030 {
0031 
0032 class FbUser
0033 {
0034 public:
0035 
0036     FbUser()
0037     {
0038         id         = 0;
0039         uploadPerm = false;
0040     }
0041 
0042     void clear()
0043     {
0044         id         = 0;
0045         name.clear();
0046         profileURL = QStringLiteral("https://www.facebook.com");
0047         uploadPerm = true;
0048     }
0049 
0050     long long id;
0051 
0052     QString   name;
0053     QString   profileURL;
0054     bool      uploadPerm;
0055 };
0056 
0057 // ---------------------------------------------------------------
0058 
0059 enum FbPrivacy
0060 {
0061     FB_ME = 0,
0062     FB_FRIENDS = 1,
0063     FB_FRIENDS_OF_FRIENDS,
0064     FB_NETWORKS,
0065     FB_EVERYONE,
0066     FB_CUSTOM
0067 };
0068 
0069 // ---------------------------------------------------------------
0070 
0071 class FbAlbum
0072 {
0073 public:
0074 
0075     FbAlbum()
0076     {
0077         privacy = FB_FRIENDS;
0078     }
0079 
0080     QString   id;
0081 
0082     QString   title;
0083     QString   description;
0084     QString   location;
0085     FbPrivacy privacy;
0086     QString   url;
0087 };
0088 
0089 // ---------------------------------------------------------------
0090 
0091 class FbPhoto
0092 {
0093 public:
0094 
0095     FbPhoto()
0096     {
0097     }
0098 
0099     QString id;
0100 
0101     QString caption;
0102     QString thumbURL;
0103     QString originalURL;
0104 };
0105 
0106 } // namespace KIPIFacebookPlugin
0107 
0108 #endif /* FBITEM_H */