digiKam
vkontakte_createalbumjob.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_CREATEALBUMJOB_H
25 #define DIGIKAM_VKONTAKTE_CREATEALBUMJOB_H
26 
27 // Local includes
28 
29 #include "vkontakte_jobs.h"
30 #include "vkontakte_albuminfo.h"
31 
32 namespace Vkontakte
33 {
34 
35 class CreateAlbumJob : public VkontakteJob
36 {
37  Q_OBJECT
38 
39 public:
40 
41  explicit CreateAlbumJob(const QString& accessToken,
42  const QString& title,
43  const QString& description = QString(),
44  int privacy = AlbumInfo::PRIVACY_UNKNOWN,
45  int comment_privacy = AlbumInfo::PRIVACY_UNKNOWN);
46  ~CreateAlbumJob() override;
47 
48  AlbumInfo album() const;
49 
50 protected:
51 
52  void handleData(const QJsonValue& data) override;
53 
54 private:
55 
56  // Disable
57  CreateAlbumJob(QObject*) = delete;
58 
59 private:
60 
61  class Private;
62  Private* const d;
63 };
64 
65 } // namespace Vkontakte
66 
67 #endif // DIGIKAM_VKONTAKTE_CREATEALBUMJOB_H