Debian Codegraph @

core/libs/video/player/qtmm/slidevideo.h

raw symbols SCIP
1 /* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2014-09-22
7 * Description : Slideshow video viewer based on QtMultimedia
8 *
9 * SPDX-FileCopyrightText: 2014-2025 Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15 #pragma once
16
17 // Qt includes
18
19 #include <QWidget>
20 #include <QEvent>
21 #include <QUrl>
22 #include <QMediaPlayer>
23
24 // Local includes
25
26 #include "dinfointerface.h"
27 #include "digikam_export.h"
28
29 namespace Digikam
30 {
31
32 class DIGIKAM_EXPORT SlideVideo : public QWidget
33 {
34 Q_OBJECT
35
36 public:
37
38 explicit SlideVideo(QWidget* const parent);
39 ~SlideVideo() override;
40
41 void setInfoInterface(DInfoInterface* const iface);
42 void setCurrentUrl(const QUrl& url);
43 void pause(bool);
44 void stop();
45 void forward();
46 void backward();
47
48 Q_SIGNALS:
49
50 void signalVideoLoaded(bool);
51 void signalVideoFinished();
52
53 void signalVideoPosition(qint64);
54 void signalVideoDuration(qint64);
55 void signalVideoVolume(int);
56
57 public Q_SLOTS:
58
59 void slotPositionChanged(int position);
60 void slotVolumeChanged(int volume);
61
62 private Q_SLOTS:
63
64 void slotPlayerStateChanged(QMediaPlayer::PlaybackState newState);
65 void slotMediaStatusChanged(QMediaPlayer::MediaStatus status);
66 void slotHandlePlayerError(QMediaPlayer::Error, const QString&);
67 void slotNativeSizeChanged();
68 void slotMetaDataChanged();
69
70 private:
71
72 void resizeEvent(QResizeEvent*) override;
73
74 private:
75
76 class Private;
77 Private* const d = nullptr;
78 };
79
80 } // namespace Digikam