File indexing completed on 2025-03-09 03:52:09

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2003-01-31
0007  * Description : a presentation tool.
0008  *
0009  * SPDX-FileCopyrightText: 2006-2009 by Valerio Fuoglio <valerio dot fuoglio at gmail dot com>
0010  * SPDX-FileCopyrightText: 2009      by Andi Clemens <andi dot clemens at googlemail dot com>
0011  * SPDX-FileCopyrightText: 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
0012  * SPDX-FileCopyrightText: 2012-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0013  *
0014  * SPDX-License-Identifier: GPL-2.0-or-later
0015  *
0016  * ============================================================ */
0017 
0018 #ifndef DIGIKAM_PRESENTATION_MNGR_H
0019 #define DIGIKAM_PRESENTATION_MNGR_H
0020 
0021 // Qt includes
0022 
0023 #include <QObject>
0024 #include <QList>
0025 #include <QUrl>
0026 
0027 // Local includes
0028 
0029 #include "dplugingeneric.h"
0030 #include "dinfointerface.h"
0031 #include "presentationdlg.h"
0032 
0033 using namespace Digikam;
0034 
0035 namespace DigikamGenericPresentationPlugin
0036 {
0037 
0038 class PresentationContainer;
0039 
0040 class PresentationMngr : public QObject
0041 {
0042     Q_OBJECT
0043 
0044 public:
0045 
0046     explicit PresentationMngr(QObject* const parent, DInfoInterface* const iface);
0047     ~PresentationMngr() override;
0048 
0049     void addFiles(const QList<QUrl>& urls);
0050     void showConfigDialog();
0051 
0052     void setPlugin(DPlugin* const plugin);
0053 
0054 private Q_SLOTS:
0055 
0056     void slotSlideShow();
0057 
0058 private:
0059 
0060     DPlugin*               m_plugin;
0061     PresentationDlg*       m_dialog;
0062     PresentationContainer* m_sharedData;
0063 };
0064 
0065 } // namespace DigikamGenericPresentationPlugin
0066 
0067 #endif // DIGIKAM_PRESENTATION_MNGR_H