kde-extraapps/okular/ui/snapshottaker.h
Ivailo Monev 91e0bf2ce0 okular: copyrighting snapshot taker to me
nothing left from the original code logic

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-28 05:53:07 +02:00

39 lines
1.2 KiB
C++

/***************************************************************************
* Copyright (C) 2022 by Ivailo Monev <xakepa10@gmail.com> *
* *
* 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
#include <KUrl>
#include <KIO/PreviewJob>
#include <QObject>
#include <QPixmap>
class SnapshotTaker : public QObject
{
Q_OBJECT
public:
SnapshotTaker( const KUrl &url, QObject *parent, const QSize &size );
~SnapshotTaker();
Q_SIGNALS:
void finished( const QImage &image );
private Q_SLOTS:
void slotPreview(const KFileItem& item, const QPixmap &preview);
void slotFailed(const KFileItem& item);
private:
KIO::PreviewJob *m_job;
QStringList m_plugins;
};
#endif // SNAPSHOTTAKER_H