digiKam
jalbumgenerator.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 : 2006-04-04
7  * Description : a tool to generate jAlbum image galleries
8  *
9  * Copyright (C) 2013-2019 by Andrew Goodbody <ajg zero two at elfringham dot co dot uk>
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_JALBUM_GENERATOR_H
24 #define DIGIKAM_JALBUM_GENERATOR_H
25 
26 // Qt includes
27 
28 #include <QObject>
29 
30 // Local includes
31 
32 #include "dprogresswdg.h"
33 #include "dhistoryview.h"
34 
35 using namespace Digikam;
36 
38 {
39 
40 class JAlbumSettings;
41 class JAlbumElementFunctor;
42 
47 class JAlbumGenerator : public QObject
48 {
49  Q_OBJECT
50 
51 public:
52 
53  explicit JAlbumGenerator(JAlbumSettings* const);
54  ~JAlbumGenerator() override;
55 
56  void setProgressWidgets(DHistoryView* const, DProgressWdg* const);
57 
58  bool run();
59  bool warnings() const;
60 
64  static QString webifyFileName(const QString&);
65 
66 Q_SIGNALS:
67 
73  void logWarningRequested(const QString&);
74 
75 private Q_SLOTS:
76 
77  void logWarning(const QString&);
78  void slotCancel();
79 
80 private:
81 
82  // Disable
83  explicit JAlbumGenerator(QObject*) = delete;
84 
85 private:
86 
87  class Private;
88  Private* const d;
89 
90  friend class Private;
91  friend class JAlbumElementFunctor;
92 };
93 
94 } // namespace DigikamGenericJAlbumPlugin
95 
96 #endif // DIGIKAM_JALBUM_GENERATOR_H
Definition: jalbumgenerator.h:48
static QString webifyFileName(const QString &)
Definition: jalbumsettings.h:48
Definition: dhistoryview.h:42
Definition: dprogresswdg.h:39
Definition: jalbumgenerator.cpp:49
Definition: datefolderview.cpp:43