digiKam
slideshowplugin.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-07-30
7  * Description : a plugin to render slideshow.
8  *
9  * Copyright (C) 2018-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2020 by Minh Nghia Duong <minhnghiaduong997 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_SLIDESHOW_PLUGIN_H
25 #define DIGIKAM_SLIDESHOW_PLUGIN_H
26 
27 // Local includes
28 
29 #include "dplugingeneric.h"
30 #include "iteminfolist.h"
31 
32 #define DPLUGIN_IID "org.kde.digikam.plugin.generic.SlideShow"
33 
34 using namespace Digikam;
35 
37 {
38 
39 class SlideShowSettings;
40 
42 {
43  Q_OBJECT
44  Q_PLUGIN_METADATA(IID DPLUGIN_IID)
45  Q_INTERFACES(Digikam::DPluginGeneric)
46 
47 public:
48 
49  explicit SlideShowPlugin(QObject* const parent = nullptr);
50  ~SlideShowPlugin() override;
51 
52  QString name() const override;
53  QString iid() const override;
54  QIcon icon() const override;
55  QString details() const override;
56  QString description() const override;
57  QList<DPluginAuthor> authors() const override;
58 
59  void setup(QObject* const) override;
60 
61  void addConnectionSlideEnd(QObject* const obj);
62 
63 private Q_SLOTS:
64 
65  void slotMenuSlideShow();
66  void slotMenuSlideShowAll();
67  void slotMenuSlideShowSelection();
68  void slotMenuSlideShowRecursive();
69  void slotShowRecursive(const QList<QUrl>& imageList);
70  void slotShowManual();
71 
72 private:
73 
74  void slideshow(SlideShowSettings* const settings,
75  bool autoPlayEnabled = true,
76  const QUrl& startFrom = QUrl());
77 };
78 
79 } // namespace DigikamGenericSlideShowPlugin
80 
81 #endif // DIGIKAM_SLIDESHOW_PLUGIN_H
Definition: slideshowplugin.h:42
Definition: slideshowsettings.h:52
Definition: dplugingeneric.h:42
Definition: piwigotalker.h:48
Definition: slideshowloader.cpp:70
Definition: datefolderview.cpp:43
#define DPLUGIN_IID
Definition: slideshowplugin.h:32