digiKam
fbitem.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 : 2008-12-26
7  * Description : a tool to export items to Facebook web service
8  *
9  * Copyright (C) 2008-2009 by Luka Renko <lure at kubuntu dot org>
10  * Copyright (C) 2008-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_FB_ITEM_H
25 #define DIGIKAM_FB_ITEM_H
26 
27 // Qt includes
28 
29 #include <QString>
30 
31 // Local includes
32 
33 #include "wsitem.h"
34 
35 using namespace Digikam;
36 
38 {
39 
40 class FbUser
41 {
42 public:
43 
45  {
46  uploadPerm = false;
47  }
48 
49  void clear()
50  {
51  id.clear();
52  name.clear();
53  profileURL = QLatin1String("https://www.facebook.com");
54  uploadPerm = true;
55  }
56 
57  QString id;
58 
59  QString name;
60  QString profileURL;
61  bool uploadPerm;
62 };
63 
64 // ---------------------------------------------------------------
65 
67 {
68  FB_ME = 0,
71 // FB_NETWORKS, //NETWORK is deprecated in latest version of Graph API
73  FB_CUSTOM
74 };
75 
76 // ---------------------------------------------------------------
77 
78 class FbAlbum: public WSAlbum
79 {
80 public:
81 
82  explicit FbAlbum()
83  : WSAlbum()
84  {
85  privacy = FB_FRIENDS;
86  }
87 
88  explicit FbAlbum(const WSAlbum& baseAlbum)
89  : WSAlbum(baseAlbum)
90  {
91  privacy = FB_FRIENDS;
92  }
93 
95 };
96 
97 // ---------------------------------------------------------------
98 
99 class FbPhoto
100 {
101 public:
102 
104  {
105  }
106 
107  QString id;
108 
109  QString caption;
110  QString thumbURL;
111  QString originalURL;
112 };
113 
114 } // namespace DigikamGenericFaceBookPlugin
115 
116 #endif // DIGIKAM_FB_ITEM_H
FbAlbum()
Definition: fbitem.h:82
FbAlbum(const WSAlbum &baseAlbum)
Definition: fbitem.h:88
FbPrivacy privacy
Definition: fbitem.h:94
QString caption
Definition: fbitem.h:109
QString originalURL
Definition: fbitem.h:111
QString thumbURL
Definition: fbitem.h:110
FbPhoto()
Definition: fbitem.h:103
QString id
Definition: fbitem.h:107
void clear()
Definition: fbitem.h:49
bool uploadPerm
Definition: fbitem.h:61
FbUser()
Definition: fbitem.h:44
QString id
Definition: fbitem.h:57
QString name
Definition: fbitem.h:59
QString profileURL
Definition: fbitem.h:60
Definition: wsitem.h:39
Definition: fbitem.h:38
FbPrivacy
Definition: fbitem.h:67
@ FB_FRIENDS
Definition: fbitem.h:69
@ FB_FRIENDS_OF_FRIENDS
Definition: fbitem.h:70
@ FB_ME
Definition: fbitem.h:68
@ FB_EVERYONE
Definition: fbitem.h:72
@ FB_CUSTOM
Definition: fbitem.h:73
Definition: datefolderview.cpp:43