mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
03368e06f4
In certain configurations not lugging around a multimedia framework could be preferred.
39 lines
629 B
C++
39 lines
629 B
C++
/*
|
|
SPDX-FileCopyrightText: 2012 Tobias Koening <tokoe@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef SNAPSHOTTAKER_H
|
|
#define SNAPSHOTTAKER_H
|
|
#include "config-okular.h"
|
|
|
|
#if HAVE_PHONON
|
|
|
|
#include <phonon/videoplayer.h>
|
|
|
|
#include <QObject>
|
|
|
|
class QImage;
|
|
|
|
class SnapshotTaker : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SnapshotTaker(const QUrl &url, QObject *parent = nullptr);
|
|
~SnapshotTaker() override;
|
|
|
|
Q_SIGNALS:
|
|
void finished(const QImage &image);
|
|
|
|
private Q_SLOTS:
|
|
void stateChanged(Phonon::State, Phonon::State);
|
|
|
|
private:
|
|
Phonon::VideoPlayer *m_player;
|
|
};
|
|
|
|
#endif
|
|
#endif
|