digiKam
vkontakte_albuminfo.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 : 2011-02-19
7
* Description : a tool to export images to VKontakte web service
8
*
9
* Copyright (C) 2011-2015 by Alexander Potashev <aspotashev at gmail dot com>
10
* Copyright (C) 2011-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_VKONTAKTE_ALBUMINFO_H
25
#define DIGIKAM_VKONTAKTE_ALBUMINFO_H
26
27
// Qt includes
28
29
#include <QJsonObject>
30
#include <QSharedDataPointer>
31
32
namespace
Vkontakte
33
{
34
35
// https://vk.com/dev/photos.getAlbums
36
class
AlbumInfo
37
{
38
public
:
39
40
enum
41
{
42
PRIVACY_UNKNOWN = -1,
43
PRIVACY_PUBLIC = 0,
44
PRIVACY_FRIENDS = 1,
45
PRIVACY_FRIENDS_OF_FRIENDS = 2,
46
PRIVACY_PRIVATE = 3
47
};
48
49
public
:
50
51
AlbumInfo();
52
AlbumInfo(
const
AlbumInfo& other);
53
explicit
AlbumInfo(
const
QJsonObject& jsonData);
54
~AlbumInfo();
55
56
AlbumInfo& operator=(
const
AlbumInfo& other);
57
58
bool
isEmpty()
const
;
59
60
int
aid()
const
;
61
QString title()
const
;
62
QString description()
const
;
63
67
int
size()
const
;
68
69
int
privacy()
const
;
70
int
commentPrivacy()
const
;
71
72
private
:
73
74
class
Private;
75
QSharedDataPointer<Private> d;
76
};
77
78
}
// namespace Vkontakte
79
80
#endif
// DIGIKAM_VKONTAKTE_ALBUMINFO_H
core
dplugins
generic
webservices
vkontakte
backend
vkontakte_albuminfo.h
Generated by
1.9.1