File indexing completed on 2025-01-19 03:53:14
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2018-06-29 0007 * Description : a tool to export images to Twitter social network 0008 * 0009 * SPDX-FileCopyrightText: 2018 by Tarek Talaat <tarektalaat93 at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_TWITTER_ITEM_H 0016 #define DIGIKAM_TWITTER_ITEM_H 0017 0018 // Qt includes 0019 0020 #include <QString> 0021 0022 namespace DigikamGenericTwitterPlugin 0023 { 0024 0025 class TwUser 0026 { 0027 public: 0028 0029 TwUser() 0030 : id (0), 0031 uploadPerm(false) 0032 { 0033 } 0034 0035 void clear() 0036 { 0037 id = 0; 0038 name.clear(); 0039 profileURL = QLatin1String("https://www.facebook.com"); 0040 uploadPerm = true; 0041 } 0042 0043 long long id; 0044 0045 QString name; 0046 QString profileURL; 0047 bool uploadPerm; 0048 }; 0049 0050 // --------------------------------------------------------------- 0051 0052 /* 0053 enum TWPrivacy 0054 { 0055 FB_ME = 0, 0056 FB_FRIENDS = 1, 0057 FB_FRIENDS_OF_FRIENDS, 0058 FB_NETWORKS, 0059 FB_EVERYONE, 0060 FB_CUSTOM 0061 }; 0062 */ 0063 0064 // --------------------------------------------------------------- 0065 0066 class TwAlbum 0067 { 0068 public: 0069 0070 TwAlbum() 0071 /* 0072 : privacy = FB_FRIENDS; 0073 */ 0074 { 0075 } 0076 0077 QString id; 0078 0079 QString title; 0080 QString description; 0081 QString location; 0082 /* 0083 FbPrivacy privacy; 0084 */ 0085 QString url; 0086 }; 0087 0088 // --------------------------------------------------------------- 0089 0090 class TwPhoto 0091 { 0092 public: 0093 0094 TwPhoto() 0095 { 0096 } 0097 0098 QString id; 0099 0100 QString caption; 0101 QString thumbURL; 0102 QString originalURL; 0103 }; 0104 0105 } // namespace DigikamGenericTwitterPlugin 0106 0107 #endif // DIGIKAM_TWITTER_ITEM_H