1
/* ============================================================
2
* Authors: Gilles Caulier <caulier dot gilles at kdemail dot net>
4
* Description : digiKam KIO preview extractor interface
6
* Copyright 2006 by Gilles Caulier
8
* This program is free software; you can redistribute it
9
* and/or modify it under the terms of the GNU General
10
* Public License as published by the Free Software Foundation;
11
* either version 2, or (at your option)
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* ============================================================ */
21
#ifndef IMAGEPREVIEWJOB_H
22
#define IMAGEPREVIEWJOB_H
35
class ImagePreviewJobPriv;
37
class ImagePreviewJob : public KIO::Job
43
ImagePreviewJob(const KURL& url, int size, bool exifRotate=false);
48
void signalImagePreview(const KURL& url, const QImage& preview);
49
void signalCompleted();
50
void signalFailed(const KURL& url);
54
void getImagePreview();
59
void slotResult(KIO::Job *job);
60
void slotImagePreviewData(KIO::Job *job, const QByteArray &data);
64
ImagePreviewJobPriv *d;
67
} // namespace Digikam
69
#endif /* IMAGEPREVIEWJOB_H */