digiKam
twitteritem.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2018-06-29
7  * Description : a tool to export images to Twitter social network
8  *
9  * Copyright (C) 2018 by Tarek Talaat <tarektalaat93 at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_TWITTER_ITEM_H
24 #define DIGIKAM_TWITTER_ITEM_H
25 
26  // Qt includes
27 
28 #include <QString>
29 
31 {
32 
33 class TwUser
34 {
35 public:
36 
38  : id (0),
39  uploadPerm(false)
40  {
41  }
42 
43  void clear()
44  {
45  id = 0;
46  name.clear();
47  profileURL = QLatin1String("https://www.facebook.com");
48  uploadPerm = true;
49  }
50 
51  long long id;
52 
53  QString name;
54  QString profileURL;
55  bool uploadPerm;
56 };
57 
58 // ---------------------------------------------------------------
59 
60 /*
61 enum TWPrivacy
62 {
63  FB_ME = 0,
64  FB_FRIENDS = 1,
65  FB_FRIENDS_OF_FRIENDS,
66  FB_NETWORKS,
67  FB_EVERYONE,
68  FB_CUSTOM
69 };
70 */
71 
72 // ---------------------------------------------------------------
73 
74 class TwAlbum
75 {
76 public:
77 
79 /*
80  : privacy = FB_FRIENDS;
81 */
82  {
83  }
84 
85  QString id;
86 
87  QString title;
88  QString description;
89  QString location;
90 /*
91  FbPrivacy privacy;
92 */
93  QString url;
94 };
95 
96 // ---------------------------------------------------------------
97 
98 class TwPhoto
99 {
100 public:
101 
103  {
104  }
105 
106  QString id;
107 
108  QString caption;
109  QString thumbURL;
110  QString originalURL;
111 };
112 
113 } // namespace DigikamGenericTwitterPlugin
114 
115 #endif // DIGIKAM_TWITTER_ITEM_H
Definition: twitteritem.h:75
QString location
Definition: twitteritem.h:89
QString title
Definition: twitteritem.h:87
QString url
Definition: twitteritem.h:93
QString id
Definition: twitteritem.h:85
TwAlbum()
Definition: twitteritem.h:78
QString description
Definition: twitteritem.h:88
Definition: twitteritem.h:99
QString id
Definition: twitteritem.h:106
QString caption
Definition: twitteritem.h:108
QString originalURL
Definition: twitteritem.h:110
TwPhoto()
Definition: twitteritem.h:102
QString thumbURL
Definition: twitteritem.h:109
Definition: twitteritem.h:34
QString profileURL
Definition: twitteritem.h:54
QString name
Definition: twitteritem.h:53
void clear()
Definition: twitteritem.h:43
bool uploadPerm
Definition: twitteritem.h:55
long long id
Definition: twitteritem.h:51
TwUser()
Definition: twitteritem.h:37
Definition: twitteritem.h:31