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
37
namespace
DigikamGenericFaceBookPlugin
38
{
39
40
class
FbUser
41
{
42
public
:
43
44
FbUser
()
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
66
enum
FbPrivacy
67
{
68
FB_ME
= 0,
69
FB_FRIENDS
= 1,
70
FB_FRIENDS_OF_FRIENDS
,
71
// FB_NETWORKS, //NETWORK is deprecated in latest version of Graph API
72
FB_EVERYONE
,
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
94
FbPrivacy
privacy
;
95
};
96
97
// ---------------------------------------------------------------
98
99
class
FbPhoto
100
{
101
public
:
102
103
FbPhoto
()
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
DigikamGenericFaceBookPlugin::FbAlbum
Definition:
fbitem.h:79
DigikamGenericFaceBookPlugin::FbAlbum::FbAlbum
FbAlbum()
Definition:
fbitem.h:82
DigikamGenericFaceBookPlugin::FbAlbum::FbAlbum
FbAlbum(const WSAlbum &baseAlbum)
Definition:
fbitem.h:88
DigikamGenericFaceBookPlugin::FbAlbum::privacy
FbPrivacy privacy
Definition:
fbitem.h:94
DigikamGenericFaceBookPlugin::FbPhoto
Definition:
fbitem.h:100
DigikamGenericFaceBookPlugin::FbPhoto::caption
QString caption
Definition:
fbitem.h:109
DigikamGenericFaceBookPlugin::FbPhoto::originalURL
QString originalURL
Definition:
fbitem.h:111
DigikamGenericFaceBookPlugin::FbPhoto::thumbURL
QString thumbURL
Definition:
fbitem.h:110
DigikamGenericFaceBookPlugin::FbPhoto::FbPhoto
FbPhoto()
Definition:
fbitem.h:103
DigikamGenericFaceBookPlugin::FbPhoto::id
QString id
Definition:
fbitem.h:107
DigikamGenericFaceBookPlugin::FbUser
Definition:
fbitem.h:41
DigikamGenericFaceBookPlugin::FbUser::clear
void clear()
Definition:
fbitem.h:49
DigikamGenericFaceBookPlugin::FbUser::uploadPerm
bool uploadPerm
Definition:
fbitem.h:61
DigikamGenericFaceBookPlugin::FbUser::FbUser
FbUser()
Definition:
fbitem.h:44
DigikamGenericFaceBookPlugin::FbUser::id
QString id
Definition:
fbitem.h:57
DigikamGenericFaceBookPlugin::FbUser::name
QString name
Definition:
fbitem.h:59
DigikamGenericFaceBookPlugin::FbUser::profileURL
QString profileURL
Definition:
fbitem.h:60
Digikam::WSAlbum
Definition:
wsitem.h:39
DigikamGenericFaceBookPlugin
Definition:
fbitem.h:38
DigikamGenericFaceBookPlugin::FbPrivacy
FbPrivacy
Definition:
fbitem.h:67
DigikamGenericFaceBookPlugin::FB_FRIENDS
@ FB_FRIENDS
Definition:
fbitem.h:69
DigikamGenericFaceBookPlugin::FB_FRIENDS_OF_FRIENDS
@ FB_FRIENDS_OF_FRIENDS
Definition:
fbitem.h:70
DigikamGenericFaceBookPlugin::FB_ME
@ FB_ME
Definition:
fbitem.h:68
DigikamGenericFaceBookPlugin::FB_EVERYONE
@ FB_EVERYONE
Definition:
fbitem.h:72
DigikamGenericFaceBookPlugin::FB_CUSTOM
@ FB_CUSTOM
Definition:
fbitem.h:73
Digikam
Definition:
datefolderview.cpp:43
wsitem.h
core
dplugins
generic
webservices
facebook
fbitem.h
Generated by
1.9.1