2014-11-19 02:23:05 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2012 by Tobias Koening <tokoe@kde.org> *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef SNAPSHOTTAKER_H
|
|
|
|
#define SNAPSHOTTAKER_H
|
|
|
|
|
2016-03-31 06:40:57 +00:00
|
|
|
#include <KMediaPlayer>
|
2014-11-19 02:23:05 +00:00
|
|
|
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
|
2019-05-23 00:08:45 +00:00
|
|
|
#include <QImage>
|
2014-11-19 02:23:05 +00:00
|
|
|
|
|
|
|
class SnapshotTaker : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
SnapshotTaker( const QString &url, QObject *parent = 0 );
|
|
|
|
~SnapshotTaker();
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
|
|
|
void finished( const QImage &image );
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
2016-03-31 06:40:57 +00:00
|
|
|
void stateChanged(bool paused);
|
2014-11-19 02:23:05 +00:00
|
|
|
|
|
|
|
private:
|
2016-03-31 06:40:57 +00:00
|
|
|
KMediaPlayer *m_player;
|
2014-11-19 02:23:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|