1 /***************************************************************************
2 * Copyright (C) 2012 by Tobias Koening <tokoe@kde.org> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef SNAPSHOTTAKER_H
11 #define SNAPSHOTTAKER_H
14 #include <KIO/PreviewJob>
19 class SnapshotTaker : public QObject
24 SnapshotTaker( const KUrl &url, QObject *parent, const QSize &size );
28 void finished( const QImage &image );
31 void slotPreview(const KFileItem& item, const QPixmap &preview);
32 void slotFailed(const KFileItem& item);
35 KIO::PreviewJob *m_job;
36 QStringList m_plugins;
39 #endif // SNAPSHOTTAKER_H