digiKam
vknewalbumdlg.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 by Roman Tsisyk <roman at tsisyk dot com>
10  * Copyright (C) 2011-2015 by Alexander Potashev <aspotashev at gmail dot com>
11  * Copyright (C) 2011-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_VK_NEW_ALBUM_DLG_H
26 #define DIGIKAM_VK_NEW_ALBUM_DLG_H
27 
28 // Qt includes
29 
30 #include <QDialog>
31 #include <QWidget>
32 #include <QString>
33 
35 {
36 
37 class VKNewAlbumDlg : public QDialog
38 {
39  Q_OBJECT
40 
41 public:
42 
44  {
45  QString title;
46  QString description;
47  int privacy;
49  };
50 
51 public:
52 
58  explicit VKNewAlbumDlg(QWidget* const parent);
59 
66  VKNewAlbumDlg(QWidget* const parent, const AlbumProperties& album);
67 
68  ~VKNewAlbumDlg() override;
69 
70  const AlbumProperties& album() const;
71 
72 private Q_SLOTS:
73 
74  void accept() override;
75 
76 private:
77 
78  void initDialog(bool editing);
79 
80 private:
81 
82  class Private;
83  Private* const d;
84 };
85 
86 } // namespace DigikamGenericVKontaktePlugin
87 
88 #endif // DIGIKAM_VK_NEW_ALBUM_DLG_H
Definition: vknewalbumdlg.h:38
~VKNewAlbumDlg() override
Definition: vknewalbumdlg.cpp:89
VKNewAlbumDlg(QWidget *const parent)
Album creation dialog.
Definition: vknewalbumdlg.cpp:73
const AlbumProperties & album() const
Definition: vknewalbumdlg.cpp:200
Definition: vkalbumchooser.cpp:52