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
30
namespace
DigikamGenericTwitterPlugin
31
{
32
33
class
TwUser
34
{
35
public
:
36
37
TwUser
()
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
78
TwAlbum
()
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
102
TwPhoto
()
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
DigikamGenericTwitterPlugin::TwAlbum
Definition:
twitteritem.h:75
DigikamGenericTwitterPlugin::TwAlbum::location
QString location
Definition:
twitteritem.h:89
DigikamGenericTwitterPlugin::TwAlbum::title
QString title
Definition:
twitteritem.h:87
DigikamGenericTwitterPlugin::TwAlbum::url
QString url
Definition:
twitteritem.h:93
DigikamGenericTwitterPlugin::TwAlbum::id
QString id
Definition:
twitteritem.h:85
DigikamGenericTwitterPlugin::TwAlbum::TwAlbum
TwAlbum()
Definition:
twitteritem.h:78
DigikamGenericTwitterPlugin::TwAlbum::description
QString description
Definition:
twitteritem.h:88
DigikamGenericTwitterPlugin::TwPhoto
Definition:
twitteritem.h:99
DigikamGenericTwitterPlugin::TwPhoto::id
QString id
Definition:
twitteritem.h:106
DigikamGenericTwitterPlugin::TwPhoto::caption
QString caption
Definition:
twitteritem.h:108
DigikamGenericTwitterPlugin::TwPhoto::originalURL
QString originalURL
Definition:
twitteritem.h:110
DigikamGenericTwitterPlugin::TwPhoto::TwPhoto
TwPhoto()
Definition:
twitteritem.h:102
DigikamGenericTwitterPlugin::TwPhoto::thumbURL
QString thumbURL
Definition:
twitteritem.h:109
DigikamGenericTwitterPlugin::TwUser
Definition:
twitteritem.h:34
DigikamGenericTwitterPlugin::TwUser::profileURL
QString profileURL
Definition:
twitteritem.h:54
DigikamGenericTwitterPlugin::TwUser::name
QString name
Definition:
twitteritem.h:53
DigikamGenericTwitterPlugin::TwUser::clear
void clear()
Definition:
twitteritem.h:43
DigikamGenericTwitterPlugin::TwUser::uploadPerm
bool uploadPerm
Definition:
twitteritem.h:55
DigikamGenericTwitterPlugin::TwUser::id
long long id
Definition:
twitteritem.h:51
DigikamGenericTwitterPlugin::TwUser::TwUser
TwUser()
Definition:
twitteritem.h:37
DigikamGenericTwitterPlugin
Definition:
twitteritem.h:31
core
dplugins
generic
webservices
twitter
twitteritem.h
Generated by
1.9.1